diff options
author | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-30 22:20:36 +0200 |
---|---|---|
committer | Michele Scuttari <michele.scuttari@outlook.com> | 2022-08-30 22:21:55 +0200 |
commit | 039b969b32b64b64123dce30dd28ec4e343d893f (patch) | |
tree | 2e3764eb215056ebd3aeb607b82c3c807bcbc38c /mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp | |
parent | 349e5bd24e72ebc568c0d171cc9f3aca2674a1db (diff) | |
download | llvm-039b969b32b64b64123dce30dd28ec4e343d893f.zip llvm-039b969b32b64b64123dce30dd28ec4e343d893f.tar.gz llvm-039b969b32b64b64123dce30dd28ec4e343d893f.tar.bz2 |
Revert "[MLIR] Update pass declarations to new autogenerated files"
This reverts commit 2be8af8f0e0780901213b6fd3013a5268ddc3359.
Diffstat (limited to 'mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp')
-rw-r--r-- | mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp b/mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp index e579f27..df6df15 100644 --- a/mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp +++ b/mlir/lib/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.cpp @@ -7,18 +7,12 @@ //===----------------------------------------------------------------------===// #include "mlir/Conversion/ArithmeticToLLVM/ArithmeticToLLVM.h" - +#include "../PassDetail.h" #include "mlir/Conversion/LLVMCommon/ConversionTarget.h" #include "mlir/Conversion/LLVMCommon/VectorPattern.h" #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/IR/TypeUtilities.h" -#include "mlir/Pass/Pass.h" - -namespace mlir { -#define GEN_PASS_DEF_CONVERTARITHMETICTOLLVMPASS -#include "mlir/Conversion/Passes.h.inc" -} // namespace mlir using namespace mlir; @@ -321,9 +315,8 @@ CmpFOpLowering::matchAndRewrite(arith::CmpFOp op, OpAdaptor adaptor, namespace { struct ConvertArithmeticToLLVMPass - : public impl::ConvertArithmeticToLLVMPassBase< - ConvertArithmeticToLLVMPass> { - using ConvertArithmeticToLLVMPassBase::ConvertArithmeticToLLVMPassBase; + : public ConvertArithmeticToLLVMBase<ConvertArithmeticToLLVMPass> { + ConvertArithmeticToLLVMPass() = default; void runOnOperation() override { LLVMConversionTarget target(getContext()); @@ -396,3 +389,7 @@ void mlir::arith::populateArithmeticToLLVMConversionPatterns( >(converter); // clang-format on } + +std::unique_ptr<Pass> mlir::arith::createConvertArithmeticToLLVMPass() { + return std::make_unique<ConvertArithmeticToLLVMPass>(); +} |