[llvm] [TLI] Add support for hypot libcall. (PR #113724)
Kenji Mouri / 毛利 研二 via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 23:18:36 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:
OK. I will remove these nonstandard names first because I need to learn something before adding these nonstandard names.
Here is an off-topic question: Can you give me some suggestions for testing the nonstandard names? (I searched for tests for _copysign and _copysignf and tried to write tests like that, but it seems not good.) Thanks if you can give me some suggestions.
https://github.com/llvm/llvm-project/pull/113724
More information about the llvm-commits
mailing list