[flang-commits] [flang] [flang] Added extension point callbacks to default FIR optimizer pipeline. (PR #90674)
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Wed May 1 04:40:33 PDT 2024
================
@@ -232,12 +232,27 @@ inline void addExternalNameConversionPass(
});
}
+// Use inliner extension point callback to register the default inliner pass.
+inline void registerDefaultInlinerPass(MLIRToLLVMPassPipelineConfig &config) {
+ config.registerFIRInlinerCallback(
+ [](mlir::PassManager &pm, llvm::OptimizationLevel level) {
+ llvm::StringMap<mlir::OpPassManager> pipelines;
+ // The default inliner pass adds the canonicalizer pass with the default
+ // configuration. Create the inliner pass with tco config.
----------------
kiranchandramohan wrote:
If both the flang driver and tco register the pass, can you either mention both the flang driver and tco or drop that line?
https://github.com/llvm/llvm-project/pull/90674
More information about the flang-commits
mailing list