[llvm] [NewPM][CodeGen] add TargetPassConfig like API (PR #70906)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 21 17:19:36 PST 2023
================
@@ -134,7 +167,19 @@ template <typename DerivedT> class CodeGenPassBuilder {
}
PassInstrumentationCallbacks *getPassInstrumentationCallbacks() const {
- return PIC;
+ static PassInstrumentationCallbacks PseudoPIC;
+ return PIC ? PIC : &PseudoPIC;
----------------
paperchalice wrote:
Currently this method is referenced by `disablePass`, which is used by several backends (AMDGPU, NVPTX, SPRIV and WASM).
https://github.com/llvm/llvm-project/pull/70906
More information about the llvm-commits
mailing list