[Mlir-commits] [mlir] [mlir][polynomial] verify from_tensor coeff type (PR #93243)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 30 11:00:54 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 cc2fafa1788908f69366821a04407083f770483e 3cf04e4cc22debffa4e83e0e7427dd46c64ff54c -- 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 ea83db4fdd..3117721a94 100644
--- a/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
+++ b/mlir/lib/Dialect/Polynomial/IR/PolynomialOps.cpp
@@ -170,9 +170,9 @@ static LogicalResult verifyNTTOp(Operation *op, RingAttr ring,
     if (!isPrimitiveNthRootOfUnity(rootValue, rootDegree, cmod)) {
       return op->emitOpError()
              << "provided root " << rootValue.getZExtValue()
-             << " is not a primitive root " << "of unity mod "
-             << cmod.getZExtValue() << ", with the specified degree "
-             << rootDegree.getZExtValue();
+             << " is not a primitive root "
+             << "of unity mod " << cmod.getZExtValue()
+             << ", with the specified degree " << rootDegree.getZExtValue();
     }
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list