[Mlir-commits] [mlir] 3224cf8 - Apply clang-tidy fixes for llvm-qualified-auto in DecomposeLinalgOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Fri Sep 2 06:44:54 PDT 2022
Author: Mehdi Amini
Date: 2022-09-02T13:44:25Z
New Revision: 3224cf8b31f1b5bcc156b5ce63e1fcec1a6c305f
URL: https://github.com/llvm/llvm-project/commit/3224cf8b31f1b5bcc156b5ce63e1fcec1a6c305f
DIFF: https://github.com/llvm/llvm-project/commit/3224cf8b31f1b5bcc156b5ce63e1fcec1a6c305f.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in DecomposeLinalgOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp b/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
index b69f2db648f4..192927f14a68 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
@@ -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);
More information about the Mlir-commits
mailing list