llvm-project/lld/test/wasm
Thomas Lively f3b4f99007 [WebAssembly] Remove uses of ThreadModel
Summary:
In the clang UI, replaces -mthread-model posix with -matomics as the
source of truth on threading. In the backend, replaces
-thread-model=posix with the atomics target feature, which is now
collected on the WebAssemblyTargetMachine along with all other used
features. These collected features will also be used to emit the
target features section in the future.

The default configuration for the backend is thread-model=posix and no
atomics, which was previously an invalid configuration. This change
makes the default valid because the thread model is ignored.

A side effect of this change is that objects are never emitted with
passive segments. It will instead be up to the linker to decide
whether sections should be active or passive based on whether atomics
are used in the final link.

Reviewers: aheejin, sbc100, dschuff

Subscribers: mehdi_amini, jgravelle-google, hiraditya, sunfish, steven_wu, dexonsmith, rupprecht, jfb, jdoerfert, cfe-commits, llvm-commits

Tags: #clang, #llvm

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

llvm-svn: 355112
2019-02-28 18:39:08 +00:00
..
Inputs [WebAssembly] Don't generate invalid modules when function signatures mismatch 2019-02-20 23:19:31 +00:00
lto [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
alias.ll [WebAssembly] Instruction renaming 2019-01-08 06:25:55 +00:00
archive-export.ll [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
archive-weak-undefined.ll [WebAssembly] Refactor handling of weak undefined functions. NFC. 2019-02-07 22:42:16 +00:00
archive.ll [WebAssembly] Changed objdump output to offsets instead of indices. 2019-01-17 18:30:35 +00:00
call-indirect.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
comdats.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
compress-relocs.ll [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
conflict.test [WebAssembly] Check function signatures by default 2018-05-05 01:23:07 +00:00
custom-sections.ll [WebAssembly] Remove final -wasm component of target triple. NFC. 2018-05-10 17:59:41 +00:00
cxx-mangling.ll [WebAssembly] Refactor handling of weak undefined functions. NFC. 2019-02-07 22:42:16 +00:00
data-layout.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
data-segment-merging.ll [WebAssembly] Group rodata into a single output segment 2018-08-08 18:02:55 +00:00
debug-removed-fn.ll [WebAssembly] Move .debug_line section address of dead function outside section range 2018-09-24 23:50:55 +00:00
debuginfo.test Update for an llvm-dwarfdump change in output 2018-12-12 18:46:43 +00:00
demangle.ll [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
driver.ll [WebAssembly] Remove final -wasm component of target triple. NFC. 2018-05-10 17:59:41 +00:00
entry-signature.ll [WebAssembly] Allow signautre of entry function to be flexible 2018-05-14 23:01:16 +00:00
entry.ll [WebAssembly] Allow signautre of entry function to be flexible 2018-05-14 23:01:16 +00:00
event-section.ll [WebAssembly] Add support for the event section 2018-12-08 06:17:43 +00:00
export-all.ll [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
export-table.test [WebAssembly] Instruction renaming 2019-01-08 06:25:55 +00:00
export.ll [WebAssembly] Honor WASM_SYMBOL_EXPORT symbol flag 2019-02-07 01:53:50 +00:00
fatal-warnings.ll [WebAssembly] Use wasm-ld rather than lld with -flavor in tests. NFC. 2019-02-05 16:53:33 +00:00
function-imports-first.ll [WebAssembly] Remove final -wasm component of target triple. NFC. 2018-05-10 17:59:41 +00:00
function-imports.ll [WebAssembly] Remove final -wasm component of target triple. NFC. 2018-05-10 17:59:41 +00:00
function-index.test [WebAssembly] Check function signatures by default 2018-05-05 01:23:07 +00:00
gc-imports.ll [WebAssembly] Only mark non-hidden symbols as live if they are also defined 2018-06-21 15:00:00 +00:00
gc-sections.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
import-memory.test [WebAssembly] Support creation and import of shared memories 2018-11-06 17:59:32 +00:00
import-module.ll [WebAssembly] Support imports from custom module names 2019-02-01 02:29:57 +00:00
import-names.ll [WebAssembly] Fix imported function symbol names that differ from their import names in the .o format 2019-02-07 22:00:48 +00:00
import-table.test [WebAssembly] Instruction renaming 2019-01-08 06:25:55 +00:00
init-fini.ll [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
invalid-stack-size.test [WebAssembly] Check function signatures by default 2018-05-05 01:23:07 +00:00
lit.local.cfg
load-undefined.test [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
local-symbols.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
locals-duplicate.test [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
many-functions.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
reloc-addend.ll [WebAssembly] Update relocation naming to match llvm change. NFC. 2019-02-04 17:49:33 +00:00
relocatable.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
responsefile.test Fix wasm responsefile lld test on Windows 2018-06-14 19:59:22 +00:00
shared.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
signature-mismatch-export.ll [WebAssembly] Don't generate invalid modules when function signatures mismatch 2019-02-20 23:19:31 +00:00
signature-mismatch-weak.ll [WebAssembly] Remove duplicate function. NFC. 2018-11-01 01:08:37 +00:00
signature-mismatch.ll [WebAssembly] Don't generate invalid modules when function signatures mismatch 2019-02-20 23:19:31 +00:00
stack-first.test [WebAssembly] Check function signatures by default 2018-05-05 01:23:07 +00:00
stack-pointer.ll [WebAssembly] Update relocation naming to match llvm change. NFC. 2019-02-04 17:49:33 +00:00
strip-all.test [WedAssembly] Add -s and -S alias for --strip-all and --strip-debug 2018-10-31 19:30:43 +00:00
strip-debug.test [WedAssembly] Add -s and -S alias for --strip-all and --strip-debug 2018-10-31 19:30:43 +00:00
symbol-type-mismatch.ll [WebAssembly] Update to match llvm changes 2018-05-14 22:42:33 +00:00
trace-symbol.ll [WebAssembly] Implement --trace and --trace-symbol 2019-02-06 02:35:18 +00:00
trace.test [wasm-ld] Fix wasm trace test to use %t for temporary files. 2019-02-06 04:49:46 +00:00
undefined-entry.test [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
undefined-weak-call.ll [WebAssembly] Refactor handling of weak undefined functions. NFC. 2019-02-07 22:42:16 +00:00
undefined.ll [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
version.ll [WebAssembly] Remove final -wasm component of target triple. NFC. 2018-05-10 17:59:41 +00:00
visibility-hidden.ll [WebAssembly] Add --[no]-export-dynamic to replace --export-default 2018-09-27 21:06:25 +00:00
weak-alias-overide.ll [WebAssembly] Instruction renaming 2019-01-08 06:25:55 +00:00
weak-alias.ll [WebAssembly] Update relocation naming to match llvm change. NFC. 2019-02-04 17:49:33 +00:00
weak-symbols.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
weak-undefined.ll [WebAssembly] Instruction renaming 2019-01-08 06:25:55 +00:00
whole-archive.test [WebAssembly] Add support for --whole-archive. 2018-07-23 23:51:19 +00:00