[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 14:20:48 PDT 2024


kiranchandramohan wrote:

> Thanks Kiran for the feedback. Could you please clarify what you mean by statically vs dynamically registering callbacks?

By dynamic I meant something like what is done with the pass-plugin option. This allows to load a pass from a shared object file during compilation and need not be statically listed in the upstream or downstream source code of the compiler.
https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fpass-plugin
https://medium.com/@mshockwave/writing-pass-instrument-for-llvm-newpm-f17c57d3369f
https://reviews.llvm.org/D129156

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


More information about the flang-commits mailing list