[flang-commits] [flang] [flang] Add a MLIRToLLVMPassPipeline callbacks for plugins (PR #212195)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Thu Sep 24 05:58:14 PDT 2026


================
@@ -132,6 +132,17 @@ void addLLVMDialectToLLVMPass(mlir::PassManager &pm, llvm::raw_ostream &output);
 /// Use inliner extension point callback to register the default inliner pass.
 void registerDefaultInlinerPass(MLIRToLLVMPassPipelineConfig &config);
 
+/// Register a callback that augments the MLIRToLLVMPassPipelineConfig before
+/// the frontend builds the pipeline. Use this to add passes at the pipeline
+/// extension points from a plugin. Call from a static initializer; callbacks
+/// run in registration order.
----------------
tarunprabhu wrote:

nit: This sounds a bit clearer to me. WDYT?

```suggestion
/// the frontend builds the pipeline. Call this from a static initializer in a
/// plugin to add passes at the pipeline extension points The callbacks are run
/// in registration order.
```

https://github.com/llvm/llvm-project/pull/212195


More information about the flang-commits mailing list