[Mlir-commits] [mlir] [mlir] [vector] Add linearization pattern for vector.create_mask (PR #138214)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon May 12 19:53:52 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
index 4844549a6..669a7bab5 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
@@ -496,8 +496,8 @@ struct LinearizeVectorCreateMask final
auto maskSize = rewriter.createOrFold<mlir::arith::AndIOp>(
loc, rewriter.getIndexType(), isNonZeroIndex, secondOperand);
- auto newMask = rewriter.create<mlir::vector::CreateMaskOp>(
- loc, dstTy, maskSize);
+ auto newMask =
+ rewriter.create<mlir::vector::CreateMaskOp>(loc, dstTy, maskSize);
rewriter.replaceOp(createMaskOp, newMask);
return success();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/138214
More information about the Mlir-commits
mailing list