Skip to content

Commit a1163d8

Browse files
authored
[NVPTX][NFC] Rename hasAAFeatures() (#127990)
This patch renames hasAAFeatures() to hasArchAccelFeatures() and updates its usages in tablegen files. Signed-off-by: Durgadoss R <[email protected]>
1 parent 50fcb74 commit a1163d8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

llvm/lib/Target/NVPTX/NVPTXInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def hasLDU : Predicate<"Subtarget->hasLDU()">;
142142
def hasPTXASUnreachableBug : Predicate<"Subtarget->hasPTXASUnreachableBug()">;
143143
def noPTXASUnreachableBug : Predicate<"!Subtarget->hasPTXASUnreachableBug()">;
144144
def hasOptEnabled : Predicate<"TM.getOptLevel() != CodeGenOptLevel::None">;
145-
def hasAcceleratedFeatures : Predicate<"Subtarget->hasAAFeatures()">;
145+
def hasArchAccelFeatures : Predicate<"Subtarget->hasArchAccelFeatures()">;
146146

147147
def doF32FTZ : Predicate<"useF32FTZ()">;
148148
def doNoF32FTZ : Predicate<"!useF32FTZ()">;

llvm/lib/Target/NVPTX/NVPTXIntrinsics.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7566,7 +7566,7 @@ multiclass SET_MAXNREG<string Action, Intrinsic Intr> {
75667566
def : NVPTXInst<(outs), (ins i32imm:$reg_count),
75677567
"setmaxnreg." # Action # ".sync.aligned.u32 $reg_count;",
75687568
[(Intr timm:$reg_count)]>,
7569-
Requires<[hasAcceleratedFeatures, hasSM<90>, hasPTX<80>]>;
7569+
Requires<[hasArchAccelFeatures, hasSM<90>, hasPTX<80>]>;
75707570
}
75717571

75727572
defm INT_SET_MAXNREG_INC : SET_MAXNREG<"inc", int_nvvm_setmaxnreg_inc_sync_aligned_u32>;

llvm/lib/Target/NVPTX/NVPTXSubtarget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ class NVPTXSubtarget : public NVPTXGenSubtargetInfo {
125125
unsigned int getSmVersion() const { return getFullSmVersion() / 10; }
126126
// GPUs with "a" suffix have include architecture-accelerated features that
127127
// are supported on the specified architecture only, hence such targets do not
128-
// follow the onion layer model. hasAAFeatures() allows distinguishing such
129-
// GPU variants from the base GPU architecture.
128+
// follow the onion layer model. hasArchAccelFeatures() allows
129+
// distinguishing such GPU variants from the base GPU architecture.
130130
// - 0 represents base GPU model,
131131
// - non-zero value identifies particular architecture-accelerated variant.
132-
bool hasAAFeatures() const { return getFullSmVersion() % 10; }
132+
bool hasArchAccelFeatures() const { return getFullSmVersion() % 10; }
133133

134134
// If the user did not provide a target we default to the `sm_30` target.
135135
std::string getTargetName() const {

0 commit comments

Comments
 (0)