From 039b969b32b64b64123dce30dd28ec4e343d893f Mon Sep 17 00:00:00 2001 From: Michele Scuttari Date: Tue, 30 Aug 2022 22:20:36 +0200 Subject: Revert "[MLIR] Update pass declarations to new autogenerated files" This reverts commit 2be8af8f0e0780901213b6fd3013a5268ddc3359. --- .../ControlFlowToLLVM/ControlFlowToLLVM.cpp | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp') diff --git a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp index b5e435b..8901270 100644 --- a/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp +++ b/mlir/lib/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h" - +#include "../PassDetail.h" #include "mlir/Conversion/LLVMCommon/ConversionTarget.h" #include "mlir/Conversion/LLVMCommon/Pattern.h" #include "mlir/Conversion/LLVMCommon/VectorPattern.h" @@ -21,16 +21,10 @@ #include "mlir/Dialect/LLVMIR/LLVMDialect.h" #include "mlir/IR/BuiltinOps.h" #include "mlir/IR/PatternMatch.h" -#include "mlir/Pass/Pass.h" #include "mlir/Transforms/DialectConversion.h" #include "llvm/ADT/StringRef.h" #include -namespace mlir { -#define GEN_PASS_DEF_CONVERTCONTROLFLOWTOLLVMPASS -#include "mlir/Conversion/Passes.h.inc" -} // namespace mlir - using namespace mlir; #define PASS_NAME "convert-cf-to-llvm" @@ -201,10 +195,9 @@ void mlir::cf::populateControlFlowToLLVMConversionPatterns( namespace { /// A pass converting MLIR operations into the LLVM IR dialect. -struct ConvertControlFlowToLLVMPass - : public impl::ConvertControlFlowToLLVMPassBase< - ConvertControlFlowToLLVMPass> { - using ConvertControlFlowToLLVMPassBase::ConvertControlFlowToLLVMPassBase; +struct ConvertControlFlowToLLVM + : public ConvertControlFlowToLLVMBase { + ConvertControlFlowToLLVM() = default; /// Run the dialect converter on the module. void runOnOperation() override { @@ -224,3 +217,7 @@ struct ConvertControlFlowToLLVMPass } }; } // namespace + +std::unique_ptr mlir::cf::createConvertControlFlowToLLVMPass() { + return std::make_unique(); +} -- cgit v1.1