Apply clang-tidy fixes for llvm-qualified-auto in DecomposeLinalgOps.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Mon, 29 Aug 2022 10:48:50 +0000 (10:48 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 2 Sep 2022 13:44:25 +0000 (13:44 +0000)
mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp

index b69f2db..192927f 100644 (file)
@@ -162,7 +162,7 @@ DecomposeLinalgOp::createPeeledGenericOp(GenericOp genericOp,
     // map and result type that correspond to the yielded value.
 
     Optional<unsigned> resultNumber;
-    for (auto user : scalarOpResult.getUsers()) {
+    for (auto *user : scalarOpResult.getUsers()) {
       if (auto yieldOp = dyn_cast<YieldOp>(user)) {
         // Find the first use of the `scalarOpResult` in the yield op.
         for (OpOperand &yieldOperand : yieldOp->getOpOperands()) {
@@ -301,7 +301,7 @@ DecomposeLinalgOp::matchAndRewrite(GenericOp genericOp,
                                                 body->getOperations());
 
   Operation *peeledScalarOperation = &(*peeledGenericOpBody->begin());
-  auto yieldOp = residualGenericOpBody->getTerminator();
+  auto *yieldOp = residualGenericOpBody->getTerminator();
   {
     // Yield all the result of the peeled scalar operation.
     OpBuilder::InsertionGuard g(rewriter);