@@ -1340,18 +1340,18 @@ LogicalResult ConvertSetDefaultDeviceOpToGpuRuntimeCallPattern::matchAndRewrite(
1340
1340
}
1341
1341
1342
1342
template <typename T>
1343
- static Value genConstInt32From (OpBuilder &builder, Location loc, T TValue ) {
1343
+ static Value genConstInt32From (OpBuilder &builder, Location loc, T tValue ) {
1344
1344
Type llvmInt32Type = builder.getIntegerType (32 );
1345
1345
return builder.create <LLVM::ConstantOp>(loc, llvmInt32Type,
1346
- static_cast <int32_t >(TValue ));
1346
+ static_cast <int32_t >(tValue ));
1347
1347
}
1348
1348
1349
1349
template <typename T>
1350
- static Value genConstFloat32From (OpBuilder &builder, Location loc, T TValue ) {
1350
+ static Value genConstFloat32From (OpBuilder &builder, Location loc, T tValue ) {
1351
1351
Type llvmFloat32Type = builder.getF32Type ();
1352
1352
return builder.create <LLVM::ConstantOp>(
1353
1353
loc, llvmFloat32Type,
1354
- builder.getF32FloatAttr (static_cast <float >(TValue )));
1354
+ builder.getF32FloatAttr (static_cast <float >(tValue )));
1355
1355
}
1356
1356
1357
1357
LogicalResult ConvertCreateDnTensorOpToGpuRuntimeCallPattern::matchAndRewrite (
@@ -1629,7 +1629,7 @@ LogicalResult ConvertSpMMBufferSizeOpToGpuRuntimeCallPattern::matchAndRewrite(
1629
1629
auto stream = adaptor.getAsyncDependencies ().front ();
1630
1630
Value bufferSize;
1631
1631
if (is2To4Sparsity (op.getSpmatA ())) {
1632
- auto prune_flag =
1632
+ auto pruneFlag =
1633
1633
genConstInt32From (rewriter, loc, get2To4PruneFlag (op.getSpmatA ()));
1634
1634
auto computeType = genConstInt32From (
1635
1635
rewriter, loc, getCuSparseLtDataTypeFrom (adaptor.getComputeType ()));
@@ -1641,7 +1641,7 @@ LogicalResult ConvertSpMMBufferSizeOpToGpuRuntimeCallPattern::matchAndRewrite(
1641
1641
.create (loc, rewriter,
1642
1642
{bufferSize, modeA, modeB, adaptor.getSpmatA (),
1643
1643
adaptor.getDnmatB (), adaptor.getDnmatC (), computeType,
1644
- prune_flag , stream})
1644
+ pruneFlag , stream})
1645
1645
.getResult ();
1646
1646
1647
1647
auto bufferSizePtr1 = rewriter.create <LLVM::GEPOp>(
0 commit comments