[Mlir-commits] [mlir] [mlir][polynomial] fix polynomial.constant syntax in docstrings (PR #92818)
Jeremy Kun
llvmlistbot at llvm.org
Mon May 20 17:02:57 PDT 2024
================
@@ -286,10 +286,10 @@ def Polynomial_ConstantOp : Op<Polynomial_Dialect, "constant", [Pure]> {
```mlir
#poly = #polynomial.int_polynomial<x**1024 - 1>
#ring = #polynomial.ring<coefficientType=i32, coefficientModulus=65536:i32, polynomialModulus=#poly>
- %0 = polynomial.constant #polynomial.int_polynomial<1 + x**2> : !polynomial.polynomial<#ring>
+ %0 = polynomial.constant {value=#polynomial.int_polynomial<1 + x**2>} : !polynomial.polynomial<#ring>
----------------
j2kun wrote:
Reverted the original commit and added f6276fe2d81a883676cfc24de152c0f16afdc16d which shows the typed variant. I actually like this approach much better, but couldn't figure it out how to make it work on my first attempt. Thanks for the push to get it working.
https://github.com/llvm/llvm-project/pull/92818
More information about the Mlir-commits
mailing list