Skip to content

Commit addda68

Browse files
authored
AMDGPU: Rename HasVinterInsts to HasVINTERPEncoding, NFC (#84535)
1 parent 99118c8 commit addda68

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPU.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ def NotLDSRequiresM0Init : Predicate<"!Subtarget->ldsRequiresM0Init()">;
18841884
def HasExportInsts : Predicate<"Subtarget->hasExportInsts()">,
18851885
AssemblerPredicate<(all_of (not FeatureGFX90AInsts))>;
18861886

1887-
def HasInterpInsts : Predicate<"Subtarget->hasInterpInsts()">,
1887+
def HasVINTERPEncoding : Predicate<"Subtarget->hasVINTERPEncoding()">,
18881888
AssemblerPredicate<(all_of FeatureGFX11Insts)>;
18891889

18901890
def HasDSAddTid : Predicate<"Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9">,

llvm/lib/Target/AMDGPU/GCNSubtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
652652
return !hasGFX940Insts();
653653
}
654654

655-
bool hasInterpInsts() const {
655+
bool hasVINTERPEncoding() const {
656656
return GFX11Insts;
657657
}
658658

llvm/lib/Target/AMDGPU/VINTERPInstructions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class VOP3_VINTERP_F16 <list<ValueType> ArgVT> : VOPProfile<ArgVT> {
105105
// VINTERP Pseudo Instructions
106106
//===----------------------------------------------------------------------===//
107107

108-
let SubtargetPredicate = HasInterpInsts in {
108+
let SubtargetPredicate = HasVINTERPEncoding in {
109109

110110
let Uses = [M0, EXEC, MODE] in {
111111
def V_INTERP_P10_F32_inreg : VINTERP_Pseudo <"v_interp_p10_f32", VOP3_VINTERP_F32>;
@@ -123,7 +123,7 @@ def V_INTERP_P2_RTZ_F16_F32_inreg :
123123
VINTERP_Pseudo <"v_interp_p2_rtz_f16_f32", VOP3_VINTERP_F16<[f16, f32, f32, f32]>>;
124124
} // Uses = [M0, EXEC]
125125

126-
} // SubtargetPredicate = HasInterpInsts.
126+
} // SubtargetPredicate = HasVINTERPEncoding.
127127

128128
class VInterpF32Pat <SDPatternOperator op, Instruction inst> : GCNPat <
129129
(f32 (op

0 commit comments

Comments
 (0)