-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Report pass name when -llvm-verify-each reports breakage #71447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update the string reported to include the pass name of last pass when running verifier after each pass.
@aeubanks Can you be a reviewer for this PR? Thanks. |
code looks good, but I'd like a test like how we test -print-on-crash with we should have a module pass and a function pass that intentionally break the IR, then run those in the test |
Thanks for the suggestion on testing. I wasn't sure how to create a test that was intended to crash. Let me look into the tests you mention. |
Adds a testing pass that intentionally creates IR that will trigger a verification failure to test that -verify-each generates an appropriate error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg with name change suggestion
llvm/lib/Passes/PassBuilder.cpp
Outdated
|
||
// A pass for testing message reporting of -verify-each failures. | ||
// DO NOT USE THIS EXCEPT FOR TESTING! | ||
class TriggerVerifyEachFailurePass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rename this to TriggerVerifierErrorPass
/trigger-verifier-error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'll update it.
thanks! |
@aeubanks Thanks for merging this. |
Update the string reported to include the pass name of last pass when running verifier after each pass.