[Mlir-commits] [mlir] Support polynomial attributes with floating point coefficients (PR #91137)
Jeremy Kun
llvmlistbot at llvm.org
Tue May 7 13:45:18 PDT 2024
================
@@ -123,19 +145,20 @@ def Polynomial_RingAttr : Polynomial_Attr<"Ring", "ring"> {
let parameters = (ins
"Type": $coefficientType,
OptionalParameter<"::mlir::IntegerAttr">: $coefficientModulus,
- OptionalParameter<"::mlir::polynomial::PolynomialAttr">: $polynomialModulus,
+ OptionalParameter<"::mlir::polynomial::IntPolynomialAttr">: $polynomialModulus,
OptionalParameter<"::mlir::IntegerAttr">: $primitiveRoot
);
-
+ let assemblyFormat = "`<` struct(params) `>`";
let builders = [
AttrBuilder<
----------------
j2kun wrote:
Fixed in 1230b731e68c
https://github.com/llvm/llvm-project/pull/91137
More information about the Mlir-commits
mailing list