[Mlir-commits] [mlir] [mlir][llvm] Fix verifier for const int and dense (PR #74340)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 4 08:59:59 PST 2023
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 bbd2b08b95fe76bea138c1b03c1cd42ed3ee04df ee0a857ab3fb2e93e51d56d565d29e79f7cdcb67 -- mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
index 705788d237..29bb88b2a7 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -2559,7 +2559,8 @@ LogicalResult LLVM::ConstantOp::verify() {
}
if (auto splatAttr = dyn_cast<SplatElementsAttr>(getValue())) {
if (!getType().isa<VectorType>() && !getType().isa<LLVM::LLVMArrayType>() &&
- !getType().isa<LLVM::LLVMFixedVectorType>() && !getType().isa<LLVM::LLVMScalableVectorType>())
+ !getType().isa<LLVM::LLVMFixedVectorType>() &&
+ !getType().isa<LLVM::LLVMScalableVectorType>())
return emitOpError() << "expected vector or array type";
}
return success();
``````````
</details>
https://github.com/llvm/llvm-project/pull/74340
More information about the Mlir-commits
mailing list