[llvm] [TLI] Add support for hypot libcall. (PR #113724)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 20:25: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 don't think this test shows both of these call names are recognized. It would kind of work if any of the checks showed that _hypotf was emitted from what was originally a _hypot
https://github.com/llvm/llvm-project/pull/113724
More information about the llvm-commits
mailing list