[Mlir-commits] [mlir] [mlir][complex] Integer overflow flag in complex dialect ops (PR #90823)
Mehdi Amini
llvmlistbot at llvm.org
Tue May 21 20:16:19 PDT 2024
================
@@ -24,21 +24,24 @@ class Complex_Op<string mnemonic, list<Trait> traits = []>
// one result, all of which must be complex numbers of the same type.
class ComplexArithmeticOp<string mnemonic, list<Trait> traits = []> :
Complex_Op<mnemonic, traits # [Pure, SameOperandsAndResultType,
- Elementwise, DeclareOpInterfaceMethods<ArithFastMathInterface>]> {
- let arguments = (ins Complex<AnyFloat>:$lhs, Complex<AnyFloat>:$rhs, DefaultValuedAttr<
- Arith_FastMathAttr, "::mlir::arith::FastMathFlags::none">:$fastmath);
+ Elementwise, DeclareOpInterfaceMethods<ArithFastMathInterface>, DeclareOpInterfaceMethods<ArithIntegerOverflowFlagsInterface>]> {
+ let arguments = (ins Complex<AnyFloat>:$lhs, Complex<AnyFloat>:$rhs,
+ DefaultValuedAttr<Arith_FastMathAttr, "::mlir::arith::FastMathFlags::none">:$fastmath,
----------------
joker-eph wrote:
```suggestion
let arguments = (ins
Complex<AnyFloat>:$lhs,
Complex<AnyFloat>:$rhs,
DefaultValuedAttr<Arith_FastMathAttr, "::mlir::arith::FastMathFlags::none">:$fastmath,
```
Nit: formatting
https://github.com/llvm/llvm-project/pull/90823
More information about the Mlir-commits
mailing list