Skip to content

Commit 6ac80a7

Browse files
committed
Apply clang-tidy fixes for readability-identifier-naming in GPUToLLVMConversion.cpp (NFC)
1 parent 5919425 commit 6ac80a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,18 +1340,18 @@ LogicalResult ConvertSetDefaultDeviceOpToGpuRuntimeCallPattern::matchAndRewrite(
13401340
}
13411341

13421342
template <typename T>
1343-
static Value genConstInt32From(OpBuilder &builder, Location loc, T TValue) {
1343+
static Value genConstInt32From(OpBuilder &builder, Location loc, T tValue) {
13441344
Type llvmInt32Type = builder.getIntegerType(32);
13451345
return builder.create<LLVM::ConstantOp>(loc, llvmInt32Type,
1346-
static_cast<int32_t>(TValue));
1346+
static_cast<int32_t>(tValue));
13471347
}
13481348

13491349
template <typename T>
1350-
static Value genConstFloat32From(OpBuilder &builder, Location loc, T TValue) {
1350+
static Value genConstFloat32From(OpBuilder &builder, Location loc, T tValue) {
13511351
Type llvmFloat32Type = builder.getF32Type();
13521352
return builder.create<LLVM::ConstantOp>(
13531353
loc, llvmFloat32Type,
1354-
builder.getF32FloatAttr(static_cast<float>(TValue)));
1354+
builder.getF32FloatAttr(static_cast<float>(tValue)));
13551355
}
13561356

13571357
LogicalResult ConvertCreateDnTensorOpToGpuRuntimeCallPattern::matchAndRewrite(
@@ -1629,7 +1629,7 @@ LogicalResult ConvertSpMMBufferSizeOpToGpuRuntimeCallPattern::matchAndRewrite(
16291629
auto stream = adaptor.getAsyncDependencies().front();
16301630
Value bufferSize;
16311631
if (is2To4Sparsity(op.getSpmatA())) {
1632-
auto prune_flag =
1632+
auto pruneFlag =
16331633
genConstInt32From(rewriter, loc, get2To4PruneFlag(op.getSpmatA()));
16341634
auto computeType = genConstInt32From(
16351635
rewriter, loc, getCuSparseLtDataTypeFrom(adaptor.getComputeType()));
@@ -1641,7 +1641,7 @@ LogicalResult ConvertSpMMBufferSizeOpToGpuRuntimeCallPattern::matchAndRewrite(
16411641
.create(loc, rewriter,
16421642
{bufferSize, modeA, modeB, adaptor.getSpmatA(),
16431643
adaptor.getDnmatB(), adaptor.getDnmatC(), computeType,
1644-
prune_flag, stream})
1644+
pruneFlag, stream})
16451645
.getResult();
16461646

16471647
auto bufferSizePtr1 = rewriter.create<LLVM::GEPOp>(

0 commit comments

Comments
 (0)