OSDN Git Service

[WebAssembly] Define a table of function signatures for runtime library calls.
authorDan Gohman <dan433584@gmail.com>
Wed, 22 Feb 2017 18:34:16 +0000 (18:34 +0000)
committerDan Gohman <dan433584@gmail.com>
Wed, 22 Feb 2017 18:34:16 +0000 (18:34 +0000)
commit2be1878c67ccc7da52bf7fa57f0e39eaf6e3aec9
tree8b4ca5f80e73798da2b2902b84c81dd390182b43
parente2af082e44e87b5f3a7fa7c3e6e0ae27ca349674
[WebAssembly] Define a table of function signatures for runtime library calls.

LLVM CodeGen emits references to external symbols that are never declared in
LLVM IR level, so they have no declared signature. However, WebAssembly requires
all functions be declared with signatures. This patch adds a table for providing
signatures for known runtime libcalls that will be used in subsequent patches to
emit declarations for such functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/CMakeLists.txt
lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp [new file with mode: 0644]
lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.h [new file with mode: 0644]