diff options
author | Akash Banerjee <akash.banerjee@amd.com> | 2025-08-20 18:18:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-20 17:18:30 +0000 |
commit | d69ccded4ff14644245990e4ecc4f96e9610dd3d (patch) | |
tree | f9d2cb36f42e70f9f8c3fcba2139a54fbab4af3b /llvm/test/CodeGen/WebAssembly | |
parent | 65de318d186c815f43b892aa20b98c50f22ab6fe (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
This PR adds support for complex power operations (`cpow`) in the
`ComplexToROCDLLibraryCalls` conversion pass, specifically targeting
AMDGPU architectures. The implementation optimises complex
exponentiation by using mathematical identities and special-case
handling for small integer powers.
- Force lowering to `complex.pow` operations for the `amdgcn-amd-amdhsa`
target instead of using library calls
- Convert `complex.pow(z, w)` to `complex.exp(w * complex.log(z))` using
mathematical identity
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly')
0 files changed, 0 insertions, 0 deletions