diff options
author | River Riddle <riddleriver@gmail.com> | 2022-02-28 14:25:39 -0800 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2022-03-01 12:10:04 -0800 |
commit | 1f971e23f089c640d5a7df1e78572fe4d8bb1d0b (patch) | |
tree | b15950a37c29d2d8dba981e5976e90e1d9cafe9b /mlir/lib/Conversion/VectorToLLVM | |
parent | 23aa5a744666b281af807b1f598f517bf0d597cb (diff) |
[mlir] Trim a huge number of unnecessary dependencies on the Func dialect
The Func has a large number of legacy dependencies carried over from the old
Standard dialect, which was pervasive and contained a large number of varied
operations. With the split of the standard dialect and its demise, a lot of lingering
dead dependencies have survived to the Func dialect. This commit removes a
large majority of then, greatly reducing the dependence surface area of the
Func dialect.
Diffstat (limited to 'mlir/lib/Conversion/VectorToLLVM')
-rw-r--r-- | mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | 1 | ||||
-rw-r--r-- | mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp index 99bb415d65e7..697b7a8d8786 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp @@ -10,7 +10,6 @@ #include "mlir/Conversion/LLVMCommon/VectorPattern.h" #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" -#include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/LLVMIR/FunctionCallUtils.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/Dialect/MemRef/IR/MemRef.h" diff --git a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp index cc4581318a81..16d57efc5858 100644 --- a/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp +++ b/mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVMPass.cpp @@ -88,7 +88,6 @@ void LowerVectorToLLVMPass::runOnOperation() { LLVMConversionTarget target(getContext()); target.addLegalDialect<arith::ArithmeticDialect>(); target.addLegalDialect<memref::MemRefDialect>(); - target.addLegalDialect<func::FuncDialect>(); target.addLegalOp<UnrealizedConversionCastOp>(); if (armNeon) { // TODO: we may or may not want to include in-dialect lowering to |