aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorc8ef <c8ef@outlook.com>2024-10-29 10:08:38 +0800
committerGitHub <noreply@github.com>2024-10-29 10:08:38 +0800
commit0c1c37bfbed08c9d4e414a10f46cbed9a3e4c870 (patch)
tree3c4d344803f2562d93467c98acca352f07a0412b /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parent6128ff6630762310f6ae4eb61adda02cb4ad5260 (diff)
downloadllvm-0c1c37bfbed08c9d4e414a10f46cbed9a3e4c870.zip
llvm-0c1c37bfbed08c9d4e414a10f46cbed9a3e4c870.tar.gz
llvm-0c1c37bfbed08c9d4e414a10f46cbed9a3e4c870.tar.bz2
[TLI] Add support for the `tgamma` libcall. (#113791)
This patch adds the `tgamma` libcall.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/BuildLibCalls.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
index 1332360..5fd4fd7 100644
--- a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -1179,6 +1179,9 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
case LibFunc_erf:
case LibFunc_erff:
case LibFunc_erfl:
+ case LibFunc_tgamma:
+ case LibFunc_tgammaf:
+ case LibFunc_tgammal:
case LibFunc_exp:
case LibFunc_expf:
case LibFunc_expl: