Skip to content

Commit ee1bcf7

Browse files
authored
AMDGPI: Rename HasExpOrExportInsts to HasExportInsts. NFC (#84252)
1 parent 96813de commit ee1bcf7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

llvm/lib/Target/AMDGPU/AMDGPU.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,7 @@ def D16PreservesUnusedBits :
18811881
def LDSRequiresM0Init : Predicate<"Subtarget->ldsRequiresM0Init()">;
18821882
def NotLDSRequiresM0Init : Predicate<"!Subtarget->ldsRequiresM0Init()">;
18831883

1884-
def HasExpOrExportInsts : Predicate<"Subtarget->hasExpOrExportInsts()">,
1884+
def HasExportInsts : Predicate<"Subtarget->hasExportInsts()">,
18851885
AssemblerPredicate<(all_of (not FeatureGFX90AInsts))>;
18861886

18871887
def HasInterpInsts : Predicate<"Subtarget->hasInterpInsts()">,

llvm/lib/Target/AMDGPU/EXPInstructions.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ class EXP_Real_Row<string pseudo, int subtarget, string name = "exp", EXP_Pseudo
5858

5959
// DONE variants have mayLoad = 1.
6060
// ROW variants have an implicit use of M0.
61-
let SubtargetPredicate = HasExpOrExportInsts in {
61+
let SubtargetPredicate = HasExportInsts in {
6262
def EXP : EXP_Pseudo<0, 0>;
6363
def EXP_DONE : EXP_Pseudo<0, 1>;
6464
def EXP_ROW : EXP_Pseudo<1, 0>;
6565
def EXP_ROW_DONE : EXP_Pseudo<1, 1>;
66-
} // let SubtargetPredicate = HasExpOrExportInsts
66+
} // let SubtargetPredicate = HasExportInsts
6767

6868
//===----------------------------------------------------------------------===//
6969
// SI, VI, GFX10.
@@ -117,7 +117,7 @@ multiclass EXP_Real_gfx11 {
117117
multiclass VEXPORT_Real_gfx12 {
118118
defvar ps = !cast<EXP_Pseudo>(NAME);
119119
def _gfx12 : EXP_Real_Row<NAME, SIEncodingFamily.GFX12, "export">,
120-
EXPe_Row, MnemonicAlias<"exp", "export">, Requires<[isGFX12Plus, HasExpOrExportInsts]> {
120+
EXPe_Row, MnemonicAlias<"exp", "export">, Requires<[isGFX12Plus, HasExportInsts]> {
121121
let AssemblerPredicate = isGFX12Only;
122122
let DecoderNamespace = "GFX12";
123123
let row = ps.row;

llvm/lib/Target/AMDGPU/GCNSubtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
648648
// BUFFER/FLAT/GLOBAL_ATOMIC_ADD/MIN/MAX_F64
649649
bool hasBufferFlatGlobalAtomicsF64() const { return hasGFX90AInsts(); }
650650

651-
bool hasExpOrExportInsts() const {
651+
bool hasExportInsts() const {
652652
return !hasGFX940Insts();
653653
}
654654

llvm/lib/Target/AMDGPU/SOPInstructions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ let SubtargetPredicate = isGFX10Plus in {
17051705
} // End SubtargetPredicate = isGFX10Plus
17061706

17071707
let SubtargetPredicate = isGFX11Plus in {
1708-
let OtherPredicates = [HasExpOrExportInsts] in
1708+
let OtherPredicates = [HasExportInsts] in
17091709
def S_WAIT_EVENT : SOPP_Pseudo<"s_wait_event", (ins s16imm:$simm16),
17101710
"$simm16"> {
17111711
let hasSideEffects = 1;
@@ -1738,7 +1738,7 @@ let OtherPredicates = [HasImageInsts] in {
17381738
SOPP_Pseudo<"s_wait_bvhcnt", (ins s16imm:$simm16), "$simm16",
17391739
[(int_amdgcn_s_wait_bvhcnt timm:$simm16)]>;
17401740
} // End OtherPredicates = [HasImageInsts].
1741-
let OtherPredicates = [HasExpOrExportInsts] in
1741+
let OtherPredicates = [HasExportInsts] in
17421742
def S_WAIT_EXPCNT :
17431743
SOPP_Pseudo<"s_wait_expcnt", (ins s16imm:$simm16), "$simm16",
17441744
[(int_amdgcn_s_wait_expcnt timm:$simm16)]>;

0 commit comments

Comments
 (0)