-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU][MC] Improve error message for missing dim operand #96588
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1089,7 +1089,7 @@ def exp_vm : NamedBitOperand<"vm", "ExpVM">; | |
def FORMAT : CustomOperand<i8>; | ||
|
||
def DMask : NamedIntOperand<i16, "dmask">; | ||
def Dim : CustomOperand<i8>; | ||
def Dim : CustomOperand<i8, 1>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you comment the parameter name here? I have to look to see what this does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean like /OperandName=/ not exposition before the definition There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also can call it true instead of 1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated comment as suggested. |
||
|
||
def dst_sel : SDWAOperand<"dst_sel", "SDWADstSel">; | ||
def src0_sel : SDWAOperand<"src0_sel", "SDWASrc0Sel">; | ||
|
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.
Can we avoid this hardcoded switch of specific opcodes?
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.
It seems this can be done by checking the boolean
AMDGPU::getMIMGBaseOpcode(Opc)->BVH
. See latest commit.