1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/test
Derek Schuff 26aab3499f [WebAssembly] Emit type signatures for declared functions
Under emscripten, C code can take the address of a function implemented
in Javascript (which is exposed via an import in wasm). Because imports
do not have linear memory address in wasm, we need to generate a thunk
to be the target of the indirect call; it call the import directly.

To make this possible, LLVM needs to emit the type signatures for these
functions, because they may not be called directly or referred to other
than where the address is taken.

This uses s new .s directive (.functype) which specifies the signature.

Differential Revision: http://reviews.llvm.org/D20891

Re-apply r271599 but instead of bailing with an error when a declared
function has multiple returns, replace it with a pointer argument. Also
add the test case I forgot to 'git add' last time around.

llvm-svn: 271703
2016-06-03 18:34:36 +00:00
..
Analysis Revert "Claim NoAlias if two GEPs index different fields of the same struct" 2016-06-01 18:55:32 +00:00
Assembler IR: Allow multiple global metadata attachments with the same type. 2016-06-01 01:17:57 +00:00
Bindings
Bitcode
BugPoint
CodeGen [WebAssembly] Emit type signatures for declared functions 2016-06-03 18:34:36 +00:00
DebugInfo [codeview] Add basic record type translation 2016-06-03 15:58:20 +00:00
Examples
ExecutionEngine
Feature Update the stack coloring pass to remove lifetime intrinsics in the optnone/opt-bisect skip case. 2016-05-27 22:56:49 +00:00
FileCheck Fix windows build bot failure 2016-05-28 00:03:35 +00:00
Instrumentation [esan|cfrag] Instrument GEP instr for struct field access. 2016-06-03 02:33:04 +00:00
Integer
JitListener
LibDriver
Linker ValueMapper: fix assertion when null-mapping a constant for linking metadata 2016-05-28 17:26:03 +00:00
LTO
MC [test/AMDGPU] Square-braced-syntax for registers: add macro test/example. 2016-06-03 14:41:17 +00:00
Object [mips] Remove CPU-only triples from llvm-objdump commands. 2016-06-03 10:22:22 +00:00
ObjectYAML [yaml2obj] Sort MachO LinkEdit write operations based on offset 2016-06-03 16:58:05 +00:00
Other [PM] Schedule InstSimplify after late LICM run, to clean up LCSSA nodes. 2016-06-02 22:14:26 +00:00
SymbolRewriter
TableGen
ThinLTO/X86 [ThinLTO] Resolve LinkOnceAny 2016-05-26 14:16:52 +00:00
tools [sancov] Disable these tests if there is no X86 backend 2016-06-03 18:07:32 +00:00
Transforms [InstCombine] look through bitcasts to find selects 2016-06-03 14:42:07 +00:00
Unit
Verifier [IR] Disallow loading and storing unsized types 2016-06-01 16:13:10 +00:00
YAMLParser
.clang-format
CMakeLists.txt [cmake] Fix builds with LLVM_ENABLE_PIC=0 2016-06-02 16:29:07 +00:00
lit.cfg
lit.site.cfg.in
TestRunner.sh