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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 08:29:44 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");
----------------
arsenm wrote:

Needs tests with the nonstandard name 

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


More information about the llvm-commits mailing list