[Mlir-commits] [mlir] 9a2a6a7 - Apply clang-tidy fixes for readability-identifier-naming in Utils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Jan 17 08:52:25 PST 2024


Author: Mehdi Amini
Date: 2024-01-17T08:51:41-08:00
New Revision: 9a2a6a728ae0397584fcfb8b2919970d1128e7f5

URL: https://github.com/llvm/llvm-project/commit/9a2a6a728ae0397584fcfb8b2919970d1128e7f5
DIFF: https://github.com/llvm/llvm-project/commit/9a2a6a728ae0397584fcfb8b2919970d1128e7f5.diff

LOG: Apply clang-tidy fixes for readability-identifier-naming in Utils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/GPU/TransformOps/Utils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
index 02a61ed74d6291..cc3be7da11e0f5 100644
--- a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
+++ b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
@@ -55,9 +55,9 @@ static Value buildLinearId(RewriterBase &rewriter, Location loc,
              llvm::dbgs() << "\n");
   assert(originalBasisOfr.size() == 3 && "expected 3 sizes");
   IndexType indexType = rewriter.getIndexType();
-  AffineExpr tx, ty, tz, BDX, BDY;
+  AffineExpr tx, ty, tz, bdx, bdy;
   bindDims(rewriter.getContext(), tx, ty, tz);
-  bindSymbols(rewriter.getContext(), BDX, BDY);
+  bindSymbols(rewriter.getContext(), bdx, bdy);
   SmallVector<OpFoldResult> vals{
       rewriter.create<ThreadOrBlockIdOp>(loc, indexType, Dimension::x)
           .getResult(),
@@ -67,7 +67,7 @@ static Value buildLinearId(RewriterBase &rewriter, Location loc,
           .getResult(),
       originalBasisOfr[0], originalBasisOfr[1]};
   OpFoldResult ofr = affine::makeComposedFoldedAffineApply(
-      rewriter, loc, tx + ty * BDX + tz * BDX * BDY, vals);
+      rewriter, loc, tx + ty * bdx + tz * bdx * bdy, vals);
   return getValueOrCreateConstantIndexOp(rewriter, loc, ofr);
 }
 


        


More information about the Mlir-commits mailing list