-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU] Remove Base_MUBUF_Real_Atomic_gfx11. NFC. #83994
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2301,7 +2301,8 @@ class MUBUF_Real_gfx11<bits<8> op, MUBUF_Pseudo ps, | |
string real_name = ps.Mnemonic> : | ||
Base_MUBUF_Real_gfx6_gfx7_gfx10_gfx11<ps, SIEncodingFamily.GFX11, real_name> { | ||
let Inst{12} = !if(ps.has_slc, cpol{CPolBit.SLC}, ?); | ||
let Inst{13} = !if(ps.has_dlc, cpol{CPolBit.DLC}, ps.dlc_value); | ||
// In GFX11 dlc is applicable to all loads/stores/atomics. | ||
let Inst{13} = !if(!or(ps.mayLoad, ps.mayStore), cpol{CPolBit.DLC}, ps.dlc_value); | ||
let Inst{14} = !if(ps.has_glc, cpol{CPolBit.GLC}, ps.glc_value); | ||
let Inst{25-18} = op; | ||
let Inst{53} = ps.tfe; | ||
|
@@ -2311,12 +2312,6 @@ class MUBUF_Real_gfx11<bits<8> op, MUBUF_Pseudo ps, | |
let DecoderNamespace = "GFX11"; | ||
} | ||
|
||
class Base_MUBUF_Real_Atomic_gfx11<bits<8> op, MUBUF_Pseudo ps, | ||
string real_name> : | ||
MUBUF_Real_gfx11<op, ps, real_name> { | ||
let Inst{13} = cpol{CPolBit.DLC}; | ||
} | ||
|
||
class Base_MUBUF_Real_gfx6_gfx7_gfx10<bits<7> op, MUBUF_Pseudo ps, int ef> : | ||
Base_MUBUF_Real_gfx6_gfx7_gfx10_gfx11<ps, ef> { | ||
let Inst{12} = ps.offen; | ||
|
@@ -2499,7 +2494,7 @@ multiclass MUBUF_Real_AllAddr_gfx11_gfx12_Renamed<bits<8> op, string real_name> | |
|
||
class MUBUF_Real_Atomic_gfx11_impl<bits<8> op, string ps_name, | ||
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. Looks like the next thing to get rid of? 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. Yes, I am working on a larger patch to remove some useless |
||
string real_name> : | ||
Base_MUBUF_Real_Atomic_gfx11<op, !cast<MUBUF_Pseudo>(ps_name), real_name>; | ||
MUBUF_Real_gfx11<op, !cast<MUBUF_Pseudo>(ps_name), real_name>; | ||
|
||
class MUBUF_Real_Atomic_gfx12_impl<bits<8> op, string ps_name, | ||
string real_name> : | ||
|
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.
This could perhaps use some further cleanup. The confusion is that has_dlc is a field in the pseudo, but in fact whether an instruction "has dlc" is different on different subtargets: