Skip to content
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

[NVPTX][NFC] Use unsigned for all custom printmethods #66069

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

ldrumm
Copy link
Contributor

@ldrumm ldrumm commented Sep 12, 2023

We were using a mix of unsigned and signed ints in the various PTX asm printers. All calls from tablgen use a non-negative immediate, so either will work, but when doing arithmetic on the return value from getNumOperands, or calling getOperand, it makes sense to keep everything unsigned.

Copy link
Member

@Artem-B Artem-B left a comment

Choose a reason for hiding this comment

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

LGTM.

We were using a mix of unsigned and signed ints in the various PTX asm
printers. All calls from tablgen use a non-negative immediate, so either
will work, but when doing arithmetic on the return value from
`getNumOperands`, or calling `getOperand`, it makes sense to keep
everything unsigned.
@ldrumm ldrumm merged commit 8248388 into llvm:main Sep 13, 2023
1 of 2 checks passed
@ldrumm ldrumm deleted the nvptx-unsigned-print-operand branch September 13, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants