[llvm] [Instrumentation] Support verifying machine function (PR #90931)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 21:14:42 PDT 2024


================
@@ -1486,6 +1486,12 @@ void VerifyInstrumentation::registerCallbacks(
                                          "\"{0}\", compilation aborted!",
                                          P));
           }
+
+          // TODO: Use complete MachineVerifierPass.
+          if (auto *MF = unwrapIR<MachineFunction>(IR)) {
+            dbgs() << "Verifying machine function " << MF->getName() << '\n';
----------------
aeubanks wrote:

logging should be under `DebugLogging`

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


More information about the llvm-commits mailing list