aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorKenji Mouri / 毛利 研二 <Mouri_Naruto@Outlook.com>2024-10-31 01:34:32 +0800
committerGitHub <noreply@github.com>2024-10-30 10:34:32 -0700
commitfeb2d867fac3b6339c169fff97ddf0716fce6f0a (patch)
treeb7a54ab020593b59d03d27eeb5fca006da342c3e /llvm/lib/Transforms/Utils/BuildLibCalls.cpp
parentb94762d5a7fbf883707c4018dbf43d7525a06e12 (diff)
downloadllvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.zip
llvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.tar.gz
llvm-feb2d867fac3b6339c169fff97ddf0716fce6f0a.tar.bz2
[TLI] Add support for hypot libcall. (#113724)
This patch adds basic support for `hypot`. Constant folding support will be submitted in a subsequent patch. Related issue: https://github.com/llvm/llvm-project/issues/113711 Note: It's my first time contributing to the LLVM with encouragement from one of my friends, @fawdlstty. I learned a lot from https://github.com/llvm/llvm-project/pull/99611, and thanks for that. Kenji Mouri
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 5fd4fd7..e039457 100644
--- a/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -1215,6 +1215,9 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
case LibFunc_fmod:
case LibFunc_fmodf:
case LibFunc_fmodl:
+ case LibFunc_hypot:
+ case LibFunc_hypotf:
+ case LibFunc_hypotl:
case LibFunc_isascii:
case LibFunc_isdigit:
case LibFunc_labs: