Skip to content

[TableGen] Add PrintError family overload that take a print function #107333

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

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

jurahul
Copy link
Contributor

@jurahul jurahul commented Sep 5, 2024

Add PrintError and family overload that accepts a print function. This avoids constructing potentially long strings for passing into these print functions.

@jurahul jurahul force-pushed the tablegen_print_error_enhancements branch from 8b259c0 to d77449f Compare September 5, 2024 00:34
@jurahul jurahul marked this pull request as ready for review September 5, 2024 04:19
@jurahul jurahul force-pushed the tablegen_print_error_enhancements branch from d77449f to ebbb869 Compare September 5, 2024 15:26
@jurahul jurahul requested a review from topperc September 5, 2024 15:27
@jurahul jurahul force-pushed the tablegen_print_error_enhancements branch from ebbb869 to 1c93805 Compare September 5, 2024 21:51
@jurahul
Copy link
Contributor Author

jurahul commented Sep 6, 2024

I removed the use of formatv() in the new code as it was simple enough to not warrant the need of formatv().

Copy link
Contributor

@tmatheson-arm tmatheson-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Add PrintError and family overload that accepts a print function.
This avoids constructing potentially long strings for passing into
these print functions.
@jurahul jurahul force-pushed the tablegen_print_error_enhancements branch from 1c93805 to 452c646 Compare September 6, 2024 13:51
@jurahul
Copy link
Contributor Author

jurahul commented Sep 6, 2024

I also removed the "OpNo -= NumResults" refactor.

@jurahul jurahul merged commit 0ceffd3 into llvm:main Sep 7, 2024
8 checks passed
@jurahul jurahul deleted the tablegen_print_error_enhancements branch September 7, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants