[llvm] [TLI] Add support for hypot libcall. (PR #113724)

Kenji Mouri / 毛利 研二 via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 09:36:09 PDT 2024


================
@@ -367,6 +369,8 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
       TLI.setUnavailable(LibFunc_fmaxf);
       TLI.setUnavailable(LibFunc_fmin);
       TLI.setUnavailable(LibFunc_fminf);
+      TLI.setAvailableWithName(LibFunc_hypot, "_hypot");
+      TLI.setAvailableWithName(LibFunc_hypotf, "_hypotf");
----------------
MouriNaruto wrote:

I have tried to write the test and hope it can pass the CI.

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


More information about the llvm-commits mailing list