[Mlir-commits] [mlir] andrzej/prevent arith cst scalable (PR #86178)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Mar 21 12:10:01 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 73302d3ca4c59db9ddd963d132ba07eb6e2f23e7 0fac9f0b8a76d5517b7b193b7ccc684c214806f8 -- mlir/lib/Dialect/Arith/IR/ArithOps.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
index b600f9cea7..d1d0fe08c8 100644
--- a/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+++ b/mlir/lib/Dialect/Arith/IR/ArithOps.cpp
@@ -195,7 +195,8 @@ LogicalResult arith::ConstantOp::verify() {
   auto vecType = dyn_cast<VectorType>(type);
   auto val = dyn_cast<DenseElementsAttr>(getValue());
   if ((vecType && val) && vecType.isScalable() && !val.isSplat())
-        return emitOpError("using elements attribute to initialize a scalable vector");
+    return emitOpError(
+        "using elements attribute to initialize a scalable vector");
   return success();
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/86178


More information about the Mlir-commits mailing list