[llvm] [Instrumentation] Support verifying machine function (PR #90931)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 23:34:00 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';
+ verifyMachineFunction("", *MF);
----------------
paperchalice wrote:
Extended `TriggerVerifierErrorPass` now.
https://github.com/llvm/llvm-project/pull/90931
More information about the llvm-commits
mailing list