File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 23
23
24
24
// / Configuriation for the MLIR to LLVM pass pipeline.
25
25
struct MLIRToLLVMPassPipelineConfig {
26
- MLIRToLLVMPassPipelineConfig (llvm::OptimizationLevel level) {
26
+ explicit MLIRToLLVMPassPipelineConfig (llvm::OptimizationLevel level) {
27
27
OptLevel = level;
28
- StackArrays = false ;
29
- Underscoring = true ;
30
- LoopVersioning = false ;
31
- DebugInfo = llvm::codegenoptions::NoDebugInfo;
32
28
}
33
29
llvm::OptimizationLevel OptLevel; // /< optimisation level
34
- bool StackArrays; // /< convert memory allocations to alloca.
35
- bool Underscoring; // /< add underscores to function names.
36
- bool LoopVersioning; // /< Run the version loop pass.
37
- llvm::codegenoptions::DebugInfoKind DebugInfo; // /< Debug info generation.
30
+ bool StackArrays = false ; // /< convert memory allocations to alloca.
31
+ bool Underscoring = true ; // /< add underscores to function names.
32
+ bool LoopVersioning = false ; // /< Run the version loop pass.
33
+ llvm::codegenoptions::DebugInfoKind DebugInfo =
34
+ llvm::codegenoptions::NoDebugInfo; // /< Debug info generation.
38
35
};
39
36
40
37
struct OffloadModuleOpts {
Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ static mlir::LogicalResult convertFortranSourceToMLIR(
368
368
pm.addPass (std::make_unique<Fortran::lower::VerifierPass>());
369
369
370
370
// Add O2 optimizer pass pipeline.
371
- fir::createDefaultFIROptimizerPassPipeline (pm, llvm::OptimizationLevel::O2);
371
+ fir::createDefaultFIROptimizerPassPipeline (
372
+ pm, MLIRToLLVMPassPipelineConfig (llvm::OptimizationLevel::O2));
372
373
}
373
374
374
375
if (mlir::succeeded (pm.run (mlirModule))) {
You can’t perform that action at this time.
0 commit comments