[Mlir-commits] [mlir] 35f48ed - Apply clang-tidy fixes for llvm-qualified-auto in VectorTransforms.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Thu Apr 14 02:42:55 PDT 2022
Author: Mehdi Amini
Date: 2022-04-14T09:42:37Z
New Revision: 35f48edb91fff12e52373dd48cea2133ce52f37f
URL: https://github.com/llvm/llvm-project/commit/35f48edb91fff12e52373dd48cea2133ce52f37f
DIFF: https://github.com/llvm/llvm-project/commit/35f48edb91fff12e52373dd48cea2133ce52f37f.diff
LOG: Apply clang-tidy fixes for llvm-qualified-auto in VectorTransforms.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
index dd008056bb5fb..3312095a62e61 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1039,7 +1039,7 @@ struct ReorderCastOpsOnBroadcast
Type castResTy = getElementTypeOrSelf(op->getResult(0));
if (auto vecTy = bcastOp.getSourceType().dyn_cast<VectorType>())
castResTy = VectorType::get(vecTy.getShape(), castResTy);
- auto castOp =
+ auto *castOp =
rewriter.create(op->getLoc(), op->getName().getIdentifier(),
bcastOp.getSource(), castResTy, op->getAttrs());
rewriter.replaceOpWithNewOp<vector::BroadcastOp>(
@@ -1079,7 +1079,7 @@ struct ReorderCastOpsOnTranspose
auto castResTy = transpOp.getVectorType();
castResTy = VectorType::get(castResTy.getShape(),
getElementTypeOrSelf(op->getResult(0)));
- auto castOp =
+ auto *castOp =
rewriter.create(op->getLoc(), op->getName().getIdentifier(),
transpOp.getVector(), castResTy, op->getAttrs());
rewriter.replaceOpWithNewOp<vector::TransposeOp>(
More information about the Mlir-commits
mailing list