summaryrefslogtreecommitdiff
path: root/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-12-20 19:45:05 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-12-20 20:25:01 +0000
commit02b6fb218e44490f3ea1597e35df1b1b66c6b869 (patch)
tree64123cc6af2a17d765e5908f403f0f16bd52f407 /mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
parent3e5b1b77d554797d4305037334a220fe9bc633ab (diff)
Fix clang-tidy issues in mlir/ (NFC)
Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D115956
Diffstat (limited to 'mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp')
-rw-r--r--mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp b/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
index 7243c2516a3d..f3547e580501 100644
--- a/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
+++ b/mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
@@ -259,8 +259,8 @@ void AffineLoopToGpuConverter::createLaunch(AffineForOp rootForOp,
// from 0 to N with step 1. Therefore, loop induction variables are replaced
// with (gpu-thread/block-id * S) + LB.
builder.setInsertionPointToStart(&launchOp.body().front());
- auto lbArgumentIt = lbs.begin();
- auto stepArgumentIt = steps.begin();
+ auto *lbArgumentIt = lbs.begin();
+ auto *stepArgumentIt = steps.begin();
for (auto en : llvm::enumerate(ivs)) {
Value id =
en.index() < numBlockDims
@@ -640,7 +640,7 @@ ParallelToGpuLaunchLowering::matchAndRewrite(ParallelOp parallelOp,
} else if (op == launchOp.getOperation()) {
// Found our sentinel value. We have finished the operations from one
// nesting level, pop one level back up.
- auto parent = rewriter.getInsertionPoint()->getParentOp();
+ auto *parent = rewriter.getInsertionPoint()->getParentOp();
rewriter.setInsertionPointAfter(parent);
leftNestingScope = true;
seenSideeffects = false;