llvm-project/llvm/test
Sam Clegg 492f752969 [WebAssembly] Initial implementation of PIC code generation
This change implements lowering of references global symbols in PIC
mode.

This change implements lowering of global references in PIC mode using a
new @GOT reference type. @GOT references can be used with function or
data symbol names combined with the get_global instruction. In this case
the linker will insert the wasm global that stores the address of the
symbol (either in memory for data symbols or in the wasm table for
function symbols).

For now I'm continuing to use the R_WASM_GLOBAL_INDEX_LEB relocation
type for this type of reference which means that this relocation type
can refer to either a global or a function or data symbol. We could
choose to introduce specific relocation types for GOT entries in the
future.  See the current dynamic linking proposal:

https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md

Differential Revision: https://reviews.llvm.org/D54647

llvm-svn: 357022
2019-03-26 19:46:15 +00:00
..
Analysis IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
Assembler IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
Bindings [Go / ASAN] Disable Go bindings for ASAN tests. 2019-03-08 22:34:33 +00:00
Bitcode [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags 2019-03-19 13:49:03 +00:00
BugPoint
CodeGen [WebAssembly] Initial implementation of PIC code generation 2019-03-26 19:46:15 +00:00
DebugInfo [pdb] Add -type-stats and sort stats by descending size 2019-03-22 21:22:13 +00:00
Demangle
Examples Fix a think-o in the disable-kaleidoscope-tests-on-windows predicate of r354646. 2019-02-22 03:56:50 +00:00
ExecutionEngine [yaml2obj]Allow explicit symbol indexes in relocations and emit error for bad names 2019-03-12 17:00:25 +00:00
Feature
FileCheck [FileCheck]Remove assertions that prevent matching an empty string at file start before CHECK-NEXT/SAME 2019-03-12 15:37:34 +00:00
Instrumentation IR: Support parsing numeric block ids, and emit them in textual output. 2019-03-22 18:27:13 +00:00
Integer
JitListener
LTO [Linker] Fix crash handling appending linkage 2019-03-20 19:20:07 +00:00
Linker
MC [WebAssembly] Initial implementation of PIC code generation 2019-03-26 19:46:15 +00:00
MachineVerifier [AMDGPU] Add support for immediate operand for S_ENDPGM 2019-03-12 09:52:58 +00:00
Object [DWARF] Refactor RelocVisitor and fix computation of SHT_RELA-typed relocation entries 2019-03-22 02:43:11 +00:00
ObjectYAML [WebAssembly] Target features section 2019-03-20 20:26:45 +00:00
Other Resubmit r356511 "[TailCallElim] Add tailcall elimination pass to LTO pipelines" 2019-03-20 19:08:18 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TableGen] Let list elements have a trailing comma 2019-03-26 11:16:01 +00:00
ThinLTO/X86 [ThinLTO] Restructure AliasSummary to contain ValueInfo of Aliasee 2019-03-15 15:11:38 +00:00
Transforms [InstCombine] Add tests for ssubo X, C -> saddo X, -C; NFC 2019-03-26 18:05:43 +00:00
Unit
Verifier Remove immarg from llvm.expect 2019-03-17 23:16:18 +00:00
YAMLParser
tools [llvm] Reapply "Prevent duplicate files in debug line header in dwarf 5." 2019-03-26 18:53:23 +00:00
.clang-format
CMakeLists.txt [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00