[llvm] [Instrumentation] Support MachineFunction in ChangeReporter (PR #80946)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 23:41:11 PDT 2024


================
@@ -409,6 +435,10 @@ template <typename T>
 void ChangeReporter<T>::handleInvalidatedPass(StringRef PassID) {
   assert(!BeforeStack.empty() && "Unexpected empty stack encountered.");
 
+  // Prepare to process the next MIR.
+  if (PassID == FreeMachineFunctionPass::name())
----------------
paperchalice wrote:

Let before/after pass handle MIR now, but still print all available MIRs when `print-module-scope` is on.

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


More information about the llvm-commits mailing list