[Mlir-commits] [mlir] Support polynomial attributes with floating point coefficients (PR #91137)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun May 5 11:10:31 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 7e59223ac4b045178c287a56154113d5989572f4 bf5da2ae01e7efa0415db06625809b8f96aee77c -- mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h b/mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h
index 5705deeadf..2b3f0e105c 100644
--- a/mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h
+++ b/mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h
@@ -56,7 +56,8 @@ public:
   }
 
   virtual bool isMonic() const = 0;
-  virtual void coefficientToString(llvm::SmallString<16> &coeffString) const = 0;
+  virtual void
+  coefficientToString(llvm::SmallString<16> &coeffString) const = 0;
 
   template <typename T>
   friend ::llvm::hash_code hash_value(const MonomialBase<T> &arg);
diff --git a/mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp b/mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp
index 9d0d38ba92..42e678fad0 100644
--- a/mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp
+++ b/mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp
@@ -35,7 +35,6 @@ FailureOr<PolyT> fromMonomialsImpl(ArrayRef<MonomialT> monomials) {
   return PolyT(monomialsCopy);
 }
 
-
 FailureOr<IntPolynomial>
 IntPolynomial::fromMonomials(ArrayRef<IntMonomial> monomials) {
   return fromMonomialsImpl<IntPolynomial, IntMonomial>(monomials);

``````````

</details>


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


More information about the Mlir-commits mailing list