Skip to content

Commit

Permalink
[AMDGPU] Rename a DS class template argument. NFC.
Browse files Browse the repository at this point in the history
The name hasGDS better reflects what it is used for.
  • Loading branch information
jayfoad committed Feb 26, 2024
1 parent c4e9463 commit d41615e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/Target/AMDGPU/DSInstructions.td
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

//===----------------------------------------------------------------------===//
Expand All @@ -1228,15 +1228,15 @@ 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,
string real_name> {
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]>;
}
Expand Down

0 comments on commit d41615e

Please sign in to comment.