[Mlir-commits] [mlir] [MLIR] Add sincos op to math dialect (PR #160772)
Ivan Butygin
llvmlistbot at llvm.org
Thu Sep 25 13:53:05 PDT 2025
Hardcode84 wrote:
> What do we think of the assembly format math.sincos %f : f32 -> f32, f32? I know we could omit the -> and everything after with a custom assembly format, but I couldn't get the ODS to do that. Open to suggestions.
I think you can do `AllTypesMatch<["operand", "sin", "cos"]>` and then `let assemblyFormat = "$operand (`fastmath` `` $fastmath^)? attr-dict `:` type($operand)";` should work
https://github.com/llvm/llvm-project/pull/160772
More information about the Mlir-commits
mailing list