[llvm] Enable exp10 libcall on linux (PR #68736)

Paul T Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 08:25:35 PST 2024


================
@@ -562,12 +562,9 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T,
     // or we have a reasonable detection strategy, we cannot use exp10 reliably
     // on Linux.
     //
-    // Fall through to disable all of them.
-    [[fallthrough]];
-  default:
-    TLI.setUnavailable(LibFunc_exp10);
-    TLI.setUnavailable(LibFunc_exp10f);
-    TLI.setUnavailable(LibFunc_exp10l);
+    TLI.setAvailableWithName(LibFunc_exp10, "__exp10");
+    TLI.setAvailableWithName(LibFunc_exp10f, "__exp10f");
----------------
pogo59 wrote:

exp10l?

Is this a fully-covered switch? (no longer has a default case)

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


More information about the llvm-commits mailing list