[Mlir-commits] [mlir] [mlir][polynomial] use typed attributes for polynomial.constant op (PR #92818)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue May 21 15:53:36 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 0da1a6ceb595fa91e3af20bf7f304ba275526f3c 431bf8af1e851d8261e50a06413bf9955dafa97d -- mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp b/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
index 38e7db85a1..d0a25fd928 100644
--- a/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
+++ b/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
@@ -218,8 +218,9 @@ ParseResult ConstantOp::parse(OpAsmParser &parser, OperationState &result) {
// In the worst case, still accept the verbose versions.
TypedIntPolynomialAttr typedIntPolyAttr;
- OptionalParseResult res = parser.parseOptionalAttribute<TypedIntPolynomialAttr>(
- typedIntPolyAttr, "value", result.attributes);
+ OptionalParseResult res =
+ parser.parseOptionalAttribute<TypedIntPolynomialAttr>(
+ typedIntPolyAttr, "value", result.attributes);
if (res.has_value() && succeeded(res.value())) {
result.addTypes(typedIntPolyAttr.getType());
return success();
``````````
</details>
https://github.com/llvm/llvm-project/pull/92818
More information about the Mlir-commits
mailing list