[llvm] [NewPM][CodeGen] add TargetPassConfig like API (PR #70906)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 23:40:24 PST 2023


================
@@ -134,7 +167,19 @@ template <typename DerivedT> class CodeGenPassBuilder {
   }
 
   PassInstrumentationCallbacks *getPassInstrumentationCallbacks() const {
-    return PIC;
+    static PassInstrumentationCallbacks PseudoPIC;
+    return PIC ? PIC : &PseudoPIC;
----------------
aeubanks wrote:

why is this necessary?

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


More information about the llvm-commits mailing list