-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] Only try DecoderTables for the current subtarget. NFCI. #82992
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -527,7 +527,7 @@ multiclass MIMG_NoSampler_Src_Helper <mimgopc op, string asm, | |
let ssamp = 0 in { | ||
if op.HAS_GFX10M then { | ||
def _V1 : MIMG_NoSampler_Helper <op, asm, dst_rc, VGPR_32, | ||
!if(enableDisasm, "GFX10", "")>; | ||
!if(enableDisasm, "GFX8", "")>; | ||
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. This is fixing a mistake that was previously harmless because we tried all namespaces on all subtargets. |
||
if !not(ExtendedImageInst) then | ||
def _V1_gfx90a : MIMG_NoSampler_Helper_gfx90a <op, asm, dst_rc, VGPR_32, | ||
!if(enableDisasm, "GFX90A", "")>; | ||
|
@@ -754,7 +754,7 @@ multiclass MIMG_Store_Addr_Helper <mimgopc op, string asm, | |
let ssamp = 0 in { | ||
if op.HAS_GFX10M then { | ||
def _V1 : MIMG_Store_Helper <op, asm, data_rc, VGPR_32, | ||
!if(enableDisasm, "GFX10", "")>; | ||
!if(enableDisasm, "GFX8", "")>; | ||
let hasPostISelHook = 1 in | ||
def _V1_gfx90a : MIMG_Store_Helper_gfx90a <op, asm, data_rc, VGPR_32, | ||
!if(enableDisasm, "GFX90A", "")>; | ||
|
@@ -1298,7 +1298,7 @@ multiclass MIMG_Sampler_Src_Helper <mimgopc op, string asm, | |
if op.HAS_GFX10M then { | ||
def _V # addr.NumWords | ||
: MIMG_Sampler_Helper <op, asm, dst_rc, addr.RegClass, | ||
!if(!and(enableDisasm, addr.Disassemble), "GFX10", "")>; | ||
!if(!and(enableDisasm, addr.Disassemble), "GFX8", "")>; | ||
if !not(ExtendedImageInst) then | ||
def _V # addr.NumWords # _gfx90a | ||
: MIMG_Sampler_gfx90a <op, asm, dst_rc, addr.RegClass, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Historical wart: namespace "GFX8" is used for lots of instructions that are shared with GFX9. Perhaps it should be renamed to "GFX8GFX9" or split into a shared part and a GFX8-only part. But I didn't want to touch that in this patch.
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 think it would be better to have a common table for all sub targets with a shared encoding. That looks more like normal cpu targets, where you can emit instructions that will just fault on unsupported CPUs. Really we probably should be using different top level targets for each major encoding change