[llvm] d41615e - [AMDGPU] Rename a DS class template argument. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 05:33:38 PST 2024
Author: Jay Foad
Date: 2024-02-26T13:33:28Z
New Revision: d41615e91a108bd1ae41361be97c569691ab9ebb
URL: https://github.com/llvm/llvm-project/commit/d41615e91a108bd1ae41361be97c569691ab9ebb
DIFF: https://github.com/llvm/llvm-project/commit/d41615e91a108bd1ae41361be97c569691ab9ebb.diff
LOG: [AMDGPU] Rename a DS class template argument. NFC.
The name hasGDS better reflects what it is used for.
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 9ff74d99583047..780479a3885bd3 100644
--- a/llvm/lib/Target/AMDGPU/DSInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSInstructions.td
@@ -1203,7 +1203,7 @@ def : GCNPat <
class Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<bits<8> op, DS_Pseudo ps, int ef,
string opName = ps.Mnemonic,
- bit hasGFX12Enc = 0>
+ bit hasGDS = true>
: DS_Real<ps, opName>, SIMCInstr <ps.Mnemonic, ef> {
let Inst{7-0} = !if(ps.has_offset0, offset0, 0);
@@ -1216,7 +1216,7 @@ class Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<bits<8> op, DS_Pseudo ps, int ef,
let Inst{55-48} = !if(ps.has_data1, data1{7-0}, 0);
let Inst{63-56} = !if(ps.has_vdst, vdst{7-0}, 0);
- let gds = !if(hasGFX12Enc, 0, ?);
+ let gds = !if(hasGDS, ?, 0);
}
//===----------------------------------------------------------------------===//
@@ -1228,7 +1228,7 @@ let AssemblerPredicate = isGFX12Plus, DecoderNamespace = "GFX12" in {
defvar ps = !cast<DS_Pseudo>(NAME);
def _gfx12 :
Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<op, ps, SIEncodingFamily.GFX12,
- ps.Mnemonic, 1>;
+ ps.Mnemonic, /*hasGDS=*/false>;
}
multiclass DS_Real_Renamed_gfx12<bits<8> op, DS_Pseudo backing_pseudo,
@@ -1236,7 +1236,7 @@ let AssemblerPredicate = isGFX12Plus, DecoderNamespace = "GFX12" in {
def _gfx12 :
Base_DS_Real_gfx6_gfx7_gfx10_gfx11_gfx12<op, backing_pseudo,
SIEncodingFamily.GFX12,
- real_name, 1>,
+ real_name, /*hasGDS=*/false>,
MnemonicAlias<backing_pseudo.Mnemonic, real_name>,
Requires<[isGFX12Plus]>;
}
More information about the llvm-commits
mailing list