[llvm] [CodeGen][Pass] Add `TargetPassBuilder` (PR #137290)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 01:06:03 PDT 2025
optimisan wrote:
`injectBefore` and `disablePass` methods are independent of `addPass` calls which is nice.
But there are no virtual methods, so are we removing distinct phases (like `addPreEmitPasses()`) completely and only using `injectBefore()` now?
If we don't want overrides (virtual/CRTP) we could add "phase marker" passes (that are dummy passes like `ISelPrepareBegin()`) to be used with injectBefore.
https://github.com/llvm/llvm-project/pull/137290
More information about the llvm-commits
mailing list