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

Kenji Mouri / 毛利 研二 via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 22:13:53 PDT 2024


================
@@ -300,6 +300,7 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
       TLI.setUnavailable(LibFunc_expf);
       TLI.setUnavailable(LibFunc_floorf);
       TLI.setUnavailable(LibFunc_fmodf);
+      TLI.setUnavailable(LibFunc_hypotf);
----------------
MouriNaruto wrote:

According to page 191 of https://web.archive.org/web/20200909074736if_/https://www.pdf-archive.com/2014/10/02/ansi-iso-9899-1990-1/ansi-iso-9899-1990-1.pdf, it seems the C89 doesn't have the C math functions with ’f‘ and 'l' suffixes.

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


More information about the llvm-commits mailing list