[llvm] [flang][rt] Attempt to support some complex pow on the device (PR #135741)

Valentin Clement バレンタイン クレメン via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 16:00:11 PDT 2025


================
@@ -65,21 +66,23 @@ template <typename C, typename I> C tgpowi(C base, I exp) {
 #ifndef _MSC_VER
 // With most compilers, C complex is implemented as a builtin type that may have
 // specific ABI requirements
-extern "C" float _Complex RTNAME(cpowi)(float _Complex base, std::int32_t exp) {
+extern "C" RT_API_ATTRS CppTypeFor<TypeCategory::Complex, 4> RTNAME(cpowi)(
+    CppTypeFor<TypeCategory::Complex, 4> base, std::int32_t exp) {
----------------
clementval wrote:

Oh right! I missed that part. Thanks. I'll gonna keep a look on that. 

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


More information about the llvm-commits mailing list