|
13 | 13 | #include "clang/AST/ASTContext.h" |
14 | 14 | #include "clang/CIR/Dialect/Passes.h" |
15 | 15 |
|
16 | | -#include "CIRGenModule.h" |
17 | 16 | #include "mlir/IR/BuiltinOps.h" |
18 | 17 | #include "mlir/Pass/Pass.h" |
19 | 18 | #include "mlir/Pass/PassManager.h" |
|
25 | 24 | namespace cir { |
26 | 25 | mlir::LogicalResult runCIRToCIRPasses( |
27 | 26 | mlir::ModuleOp theModule, mlir::MLIRContext *mlirCtx, |
28 | | - clang::CIRGen::CIRGenModule &cgm, clang::ASTContext &astCtx, |
29 | | - bool enableVerifier, bool enableLifetime, llvm::StringRef lifetimeOpts, |
30 | | - bool enableIdiomRecognizer, llvm::StringRef idiomRecognizerOpts, |
31 | | - bool enableLibOpt, llvm::StringRef libOptOpts, |
32 | | - std::string &passOptParsingFailure, bool enableCIRSimplify, bool flattenCIR, |
33 | | - bool emitMLIR, bool enableCallConvLowering, bool enableMem2Reg) { |
| 27 | + clang::ASTContext &astCtx, bool enableVerifier, bool enableLifetime, |
| 28 | + llvm::StringRef lifetimeOpts, bool enableIdiomRecognizer, |
| 29 | + llvm::StringRef idiomRecognizerOpts, bool enableLibOpt, |
| 30 | + llvm::StringRef libOptOpts, std::string &passOptParsingFailure, |
| 31 | + bool enableCIRSimplify, bool flattenCIR, bool emitMLIR, |
| 32 | + bool enableCallConvLowering, bool enableMem2Reg) { |
34 | 33 |
|
35 | 34 | llvm::TimeTraceScope scope("CIR To CIR Passes"); |
36 | 35 |
|
@@ -74,7 +73,7 @@ mlir::LogicalResult runCIRToCIRPasses( |
74 | 73 | if (enableCIRSimplify) |
75 | 74 | pm.addPass(mlir::createCIRSimplifyPass()); |
76 | 75 |
|
77 | | - pm.addPass(mlir::createLoweringPreparePass(&astCtx, cgm)); |
| 76 | + pm.addPass(mlir::createLoweringPreparePass(&astCtx)); |
78 | 77 |
|
79 | 78 | if (flattenCIR || enableMem2Reg) |
80 | 79 | mlir::populateCIRPreLoweringPasses(pm, enableCallConvLowering); |
|
0 commit comments