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

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 10:18:42 PST 2024


================
@@ -448,6 +477,11 @@ template <typename T> void TextChangeReporter<T>::handleInitialIR(Any IR) {
   M->print(Out, nullptr);
 }
 
+template <typename T>
+void TextChangeReporter<T>::handleInitialMIR(const MachineFunction *IR) {
+  // For simplicity, don't print the initial MIR.
----------------
aeubanks wrote:

add the reason that it's likely that the MIR doesn't initially exist

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


More information about the llvm-commits mailing list