[flang-commits] [flang] [mlir] [MLIR] Add cpow support in ComplexToROCDLLibraryCalls (PR #153183)

Akash Banerjee via flang-commits flang-commits at lists.llvm.org
Mon Aug 18 09:26:59 PDT 2025


================
@@ -1625,15 +1647,19 @@ static constexpr MathOperation mathOperations[] = {
      genFuncType<Ty::Real<16>, Ty::Real<16>, Ty::Integer<8>>,
      genMathOp<mlir::math::FPowIOp>},
     {"pow", RTNAME_STRING(cpowi),
----------------
TIFitis wrote:

I see, I'll look into it if that's a possibility. But I guess this is a workaround at the moment for lib functions that are not available on the GPU. mlir/lib/Conversion/MathToROCDL/MathToROCDL.cpp also does something similar by converting things to ROCDL calls.

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


More information about the flang-commits mailing list