[llvm] d6a6de0 - [AMDGPU] Use AMDGPUMnemonicAlias in DS_Real_gfx13 (NFC) (#217912)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 00:21:36 PDT 2026
Author: Ketan Roy
Date: 2026-09-08T09:21:31+02:00
New Revision: d6a6de09cce9d0e08821a9aa15a0cbcb0889bb37
URL: https://github.com/llvm/llvm-project/commit/d6a6de09cce9d0e08821a9aa15a0cbcb0889bb37
DIFF: https://github.com/llvm/llvm-project/commit/d6a6de09cce9d0e08821a9aa15a0cbcb0889bb37.diff
LOG: [AMDGPU] Use AMDGPUMnemonicAlias in DS_Real_gfx13 (NFC) (#217912)
Emit an AMDGPUMnemonicAlias in DS_Real_gfx13 so it carries the
PredicateControl fields.
NFC: 46 gfx13 aliases gain the PredicateControl fields at their
defaults; Predicates is unchanged on all of them.
Added:
Modified:
llvm/lib/Target/AMDGPU/DSInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td
index 22dbb84ac1d8a..62dba320306f5 100644
--- a/llvm/lib/Target/AMDGPU/DSInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSInstructions.td
@@ -1454,13 +1454,15 @@ multiclass DS_Real_gfx12<bits<8> op,
multiclass DS_Real_gfx13<bits<8> op,
DS_Pseudo ps = !cast<DS_Pseudo>(NAME),
string name = !tolower(NAME)> {
- let AssemblerPredicate = isGFX13Only, DecoderNamespace = "GFX13" in
- def _gfx13 :
- Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12_gfx13<op, ps,
- SIEncodingFamily.GFX13,
- name, /*hasGDS=*/false>;
- if !ne(ps.Mnemonic, name) then
- def : MnemonicAlias<ps.Mnemonic, name>, Requires<[isGFX13Only]>;
+ let AssemblerPredicate = isGFX13Only in {
+ let DecoderNamespace = "GFX13" in
+ def _gfx13 :
+ Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12_gfx13<op, ps,
+ SIEncodingFamily.GFX13,
+ name, /*hasGDS=*/false>;
+ if !ne(ps.Mnemonic, name) then
+ def : AMDGPUMnemonicAlias<ps.Mnemonic, name>;
+ } // End AssemblerPredicate
}
// Helper to avoid repeating the pseudo-name if we only need to set
More information about the llvm-commits
mailing list