This is an archive of the discontinued LLVM Phabricator instance.

MachineFunction: Add verify method that accepts LiveIntervals
ClosedPublic

Authored by arsenm on Sep 13 2022, 9:07 AM.

Details

Reviewers
qcolombet
MatzeB
Summary

This version can be used without a PassManager

Diff Detail

Event Timeline

arsenm created this revision.Sep 13 2022, 9:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 9:07 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
arsenm requested review of this revision.Sep 13 2022, 9:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 9:07 AM
Herald added a subscriber: wdng. · View Herald Transcript
MatzeB accepted this revision.Sep 13 2022, 1:29 PM

Good idea. LGTM

llvm/lib/CodeGen/MachineVerifier.cpp
91–92

Maybe just drop this constructor and the PASS member and instead add logic to MachineVerifierPass::runOnMachineFunction to query the analyses?

(as a suggestion, I don't mind too much if we don't do it in this diff).

This revision is now accepted and ready to land.Sep 13 2022, 1:29 PM