aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2023-06-07 10:24:07 -0700
committerDerek Schuff <dschuff@chromium.org>2023-06-07 10:45:39 -0700
commit5f6f8a8e255dfc5f2a1ab74b7112a8ce31ab6cf7 (patch)
tree0debf952fb3b0792369224e6be960a8b1acbc342 /llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
parenta4845eaf2e9aa18dd900d7cbeff4e5ff52e4b50e (diff)
downloadllvm-5f6f8a8e255dfc5f2a1ab74b7112a8ce31ab6cf7.zip
llvm-5f6f8a8e255dfc5f2a1ab74b7112a8ce31ab6cf7.tar.gz
llvm-5f6f8a8e255dfc5f2a1ab74b7112a8ce31ab6cf7.tar.bz2
[WebAssembly] Add ldexp{,f,l} libcall signatures
llvm.ldexp.* intrinsics were recently added to LLVM, which means wasm now needs to know the signatures of the corresponding libcalls. Differential Revision: https://reviews.llvm.org/D152385 Fixes: #63164
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
index 3ca43e6..09ab007 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
@@ -245,6 +245,9 @@ struct RuntimeLibcallSignatureTable {
Table[RTLIB::FMAX_F32] = f32_func_f32_f32;
Table[RTLIB::FMAX_F64] = f64_func_f64_f64;
Table[RTLIB::FMAX_F128] = i64_i64_func_i64_i64_i64_i64;
+ Table[RTLIB::LDEXP_F32] = f32_func_f32_i32;
+ Table[RTLIB::LDEXP_F64] = f64_func_f64_i32;
+ Table[RTLIB::LDEXP_F128] = i64_i64_func_i64_i64_i32;
// Conversion
// All F80 and PPCF128 routines are unsupported.