-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Tablegen] Add keyword dump
.
#68793
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
[Tablegen] Add keyword dump
.
#68793
Conversation
The keyword is intended for debugging purpose. It prints a message to stderr. This patch is based on code originally written by Adam Nemet, and on the feedback received by the reviewers in https://reviews.llvm.org/D157492.
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.
Acked, modulo some minor nits and a suggestion.
Typo in the title: "keywork"
Added a comment to the place were we could make repr look recursively into a list.
dump
.dump
.
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.
LGTM but please wait for others.
Oh! Don't forget to add a ReleaseNote! |
I prepared a separate patch for both |
* `dump`, added in llvm#68793 * `!repr`, added in llvm#68716 The keyword `assert` was missing, so I have added that too.
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.
LGTM, with a few nits/suggestions.
✅ With the latest revision this PR passed the C/C++ code formatter. |
The text is inspired by the similar items in of `assert` keyword.
I like this a lot - it can get nasty if someone start using dump statements across layers of class/multiclass indirection.
If this is OK with you, I will create an issue and link it to this PR. |
@Artem-B - gentle ping, I'd like to get a final blessing from you. Francesco |
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.
LGTM, with one suggestion for the docs.
…ators. (#68897) * `dump`, added in llvm/llvm-project#68793 * `!repr`, added in llvm/llvm-project#68716 The keyword `assert` was missing, so I have added that too.
…#68897) * `dump`, added in llvm/llvm-project#68793 * `!repr`, added in llvm/llvm-project#68716 The keyword `assert` was missing, so I have added that too.
The keyword is intended for debugging purpose. It prints a message to stderr.
This patch is based on code originally written by Adam Nemet, and on the feedback received by the reviewers in
https://reviews.llvm.org/D157492.