Skip to content

Commit 86cccb5

Browse files
committed
fix comment
1 parent fe4f480 commit 86cccb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ struct AAAMDGPUClusterDims
13231323
/// This function should return true if the type of the \p AA is
13241324
/// AAAMDGPUClusterDims.
13251325
static bool classof(const AbstractAttribute *AA) {
1326-
return (AA->getIdAddr() == &ID);
1326+
return AA->getIdAddr() == &ID;
13271327
}
13281328

13291329
virtual const AMDGPU::ClusterDimsAttr &getClusterDims() const = 0;
@@ -1358,7 +1358,7 @@ struct AAAMDGPUClusterDimsFunction : public AAAMDGPUClusterDims {
13581358
return "unknown";
13591359
if (Attr.isNoCluster())
13601360
return "no";
1361-
if (Attr.isVariableedDims())
1361+
if (Attr.isVariableDims())
13621362
return "variable";
13631363
return Attr.to_string();
13641364
}

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ class ClusterDimsAttr {
18271827

18281828
bool isFixedDims() const { return getKind() == Kind::FixedDims; }
18291829

1830-
bool isVariableedDims() const { return getKind() == Kind::VariableDims; }
1830+
bool isVariableDims() const { return getKind() == Kind::VariableDims; }
18311831

18321832
void setUnknown() { *this = ClusterDimsAttr(Kind::Unknown); }
18331833

0 commit comments

Comments
 (0)