Skip to content

Commit 5e2dc00

Browse files
committed
fixups
1 parent 6e215d8 commit 5e2dc00

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ struct ArgUseChecker : PtrUseVisitor<ArgUseChecker> {
507507
// Storing the pointer escapes it.
508508
if (U->get() == SI.getValueOperand())
509509
return PI.setEscapedAndAborted(&SI);
510-
// Writes to the pointer are UB w/ __gid_constant__, but do not force a
510+
// Writes to the pointer are UB w/ __grid_constant__, but do not force a
511511
// copy.
512512
if (!IsGridConstant)
513513
return PI.setAborted(&SI);

llvm/lib/Target/NVPTX/NVPTXSubtarget.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class NVPTXSubtarget : public NVPTXGenSubtargetInfo {
9494
bool hasDotInstructions() const {
9595
return SmVersion >= 61 && PTXVersion >= 50;
9696
}
97-
bool hasCvtaParam() const {
98-
return SmVersion >= 70 && PTXVersion >= 77;
99-
}
97+
bool hasCvtaParam() const { return SmVersion >= 70 && PTXVersion >= 77; }
10098
unsigned int getFullSmVersion() const { return FullSmVersion; }
10199
unsigned int getSmVersion() const { return getFullSmVersion() / 10; }
102100
// GPUs with "a" suffix have include architecture-accelerated features that

0 commit comments

Comments
 (0)