[all-commits] [llvm/llvm-project] 91a14d: Support polynomial attributes with floating point ...
Jeremy Kun via All-commits
all-commits at lists.llvm.org
Mon May 13 09:47:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91a14dbf825b79ff143d1b16124763a4a80facab
https://github.com/llvm/llvm-project/commit/91a14dbf825b79ff143d1b16124763a4a80facab
Author: Jeremy Kun <jkun at google.com>
Date: 2024-05-13 (Mon, 13 May 2024)
Changed paths:
M mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.h
M mlir/include/mlir/Dialect/Polynomial/IR/Polynomial.td
M mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp
M mlir/lib/Dialect/Polynomial/IR/PolynomialAttributes.cpp
M mlir/test/Dialect/Polynomial/attributes.mlir
M mlir/test/Dialect/Polynomial/ops.mlir
M mlir/test/Dialect/Polynomial/ops_errors.mlir
M mlir/test/Dialect/Polynomial/types.mlir
Log Message:
-----------
Support polynomial attributes with floating point coefficients (#91137)
In summary:
- `Monomial` -> `MonomialBase` with two inheriting `IntMonomial` and
`FloatMonomial` for the different coefficient types
- `Polynomial` -> `PolynomialBase` with `IntPolynomial` and
`FloatPolynomial` inheriting
- `PolynomialAttr` -> `IntPolynomialAttr`, and new `FloatPolynomialAttr`
attribute, both of which may be input to `polynomial.constant`
- Refactoring common parts of attribute parsers.
---------
Co-authored-by: Jeremy Kun <j2kun at users.noreply.github.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list