[WebAssembly] Update MC for bulk memory
authorThomas Lively <tlively@google.com>
Tue, 19 Feb 2019 22:56:19 +0000 (22:56 +0000)
committerThomas Lively <tlively@google.com>
Tue, 19 Feb 2019 22:56:19 +0000 (22:56 +0000)
commit2e1504091e2b6e949290b4792224c4b833acda99
treeb579df67b6a3b560a5520fea45f235e069588e3b
parent8eade092497e17ad1cfbb1a7c3d9156686b229cc
[WebAssembly] Update MC for bulk memory

Summary:
Rename MemoryIndex to InitFlags and implement logic for determining
data segment layout in ObjectYAML and MC. Also adds a "passive" flag
for the .section assembler directive although this cannot be assembled
yet because the assembler does not support data sections.

Reviewers: sbc100, aardappel, aheejin, dschuff

Subscribers: jgravelle-google, hiraditya, sunfish, rupprecht, llvm-commits

Tags: #llvm

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

llvm-svn: 354397
43 files changed:
lld/test/wasm/call-indirect.ll
lld/test/wasm/comdats.ll
lld/test/wasm/data-layout.ll
lld/test/wasm/gc-sections.ll
lld/test/wasm/init-fini.ll
lld/test/wasm/local-symbols.ll
lld/test/wasm/locals-duplicate.test
lld/test/wasm/lto/used.ll
lld/test/wasm/many-functions.ll
lld/test/wasm/relocatable.ll
lld/test/wasm/shared.ll
lld/test/wasm/weak-symbols.ll
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/include/llvm/MC/MCSectionWasm.h
llvm/include/llvm/ObjectYAML/WasmYAML.h
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/MC/MCParser/WasmAsmParser.cpp
llvm/lib/MC/MCSectionWasm.cpp
llvm/lib/MC/WasmObjectWriter.cpp
llvm/lib/Object/WasmObjectFile.cpp
llvm/lib/ObjectYAML/WasmYAML.cpp
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
llvm/test/CodeGen/WebAssembly/global.ll
llvm/test/CodeGen/WebAssembly/vtable.ll
llvm/test/MC/WebAssembly/bss.ll
llvm/test/MC/WebAssembly/comdat.ll
llvm/test/MC/WebAssembly/debug-info.ll
llvm/test/MC/WebAssembly/explicit-sections.ll
llvm/test/MC/WebAssembly/external-data.ll
llvm/test/MC/WebAssembly/external-func-address.ll
llvm/test/MC/WebAssembly/global-ctor-dtor.ll
llvm/test/MC/WebAssembly/init-flags.ll [new file with mode: 0644]
llvm/test/MC/WebAssembly/reloc-data.ll
llvm/test/MC/WebAssembly/unnamed-data.ll
llvm/test/MC/WebAssembly/weak-alias.ll
llvm/test/ObjectYAML/wasm/data_section.yaml
llvm/test/ObjectYAML/wasm/linking_section.yaml
llvm/test/tools/llvm-nm/wasm/exports.yaml
llvm/test/tools/llvm-nm/wasm/local-symbols.ll
llvm/test/tools/llvm-nm/wasm/weak-symbols.yaml
llvm/test/tools/llvm-objdump/WebAssembly/relocations.test
llvm/tools/obj2yaml/wasm2yaml.cpp
llvm/tools/yaml2obj/yaml2wasm.cpp