[Mlir-commits] [mlir] [mlir][SPIR-V] Add ComplexToSPIRV lowering for complex.sin/cos (PR #231873)

Igor Wodiany llvmlistbot at llvm.org
Thu Oct 29 04:51:02 PDT 2026


IgWod wrote:

So last time I did complex math was a while back, so this is based on Google, but it seems instead of expanding into `exp` you could use `sinh` and `cosh` that are both available in SPIR-V. So for sin you can do something like sin(a)cosh(b) + icos(a)sinh(b). Please verify but that would greatly simplify the code.

https://github.com/llvm/llvm-project/pull/231873


More information about the Mlir-commits mailing list