[Mlir-commits] [mlir] [mlir][vector] Update syntax and representation of insert/extract_strided_slice (PR #101850)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Aug 3 14:13:26 PDT 2024
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 0dcada94bb1ae79f0edd91013038098c62a96b3b bfb9af9c68d4cb2ecb0174a33c69e9d0b26293ea --extensions cpp -- mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp mlir/lib/Dialect/Arith/Transforms/IntNarrowing.cpp mlir/lib/Dialect/Vector/IR/VectorOps.cpp mlir/lib/Dialect/Vector/Transforms/LowerVectorScan.cpp mlir/lib/Dialect/Vector/Transforms/VectorDropLeadUnitDim.cpp mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index dda6b91617..d55508e610 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -2911,13 +2911,13 @@ Attribute StridedSliceAttr::parse(AsmParser &parser, Type attrType) {
}
offsets.push_back(offset);
if (succeeded(parser.parseOptionalComma())) {
- if (parser.parseCommaSeparatedList(
- AsmParser::Delimiter::None, [&]() -> ParseResult {
- if (parser.parseInteger(offset))
- return failure();
- offsets.push_back(offset);
- return success();
- })) {
+ if (parser.parseCommaSeparatedList(AsmParser::Delimiter::None,
+ [&]() -> ParseResult {
+ if (parser.parseInteger(offset))
+ return failure();
+ offsets.push_back(offset);
+ return success();
+ })) {
return {};
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/101850
More information about the Mlir-commits
mailing list