[llvm] [TLI] Add support for hypot libcall. (PR #113724)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 19:37:31 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:
I would assume it would be a matter of writing optimization tests like this that use the nonstandard names.
Alternatively, we should expand the llvm-tli-checker tests. Currently it just handles ps4, but we should have baseline tests for all the other platforms
https://github.com/llvm/llvm-project/pull/113724
More information about the llvm-commits
mailing list