Initial support for wasm object file format
Support for the wasm binary format in the following tools:
- obj2yaml
- yaml2obj
- llvm-readobj
- llvm-objdump
- llvm-size
Paths
| Differential D25590
Add initial support for WebAssembly binary format AbandonedPublic Authored by sbc100 on Oct 13 2016, 7:20 PM.
Details
Diff Detail
Event Timelinesbc100 updated this object. Herald added subscribers: modocache, mgorny, beanz and 2 others. · View Herald TranscriptOct 13 2016, 7:20 PM
sbc100 marked 15 inline comments as done. sbc100 edited edge metadata. Comment ActionsAdd objdump support sunfish edited edge metadata. Comment ActionsCool! This looks like a great start!
This revision is now accepted and ready to land.Oct 20 2016, 12:11 PM
sbc100 marked 2 inline comments as done. sbc100 edited edge metadata. Comment ActionsParse all non-code sections.
Comment Actions
All spec tests can now be round-tripped to YAML
Bigcheese edited edge metadata. Comment ActionsThis patch is a bit too big. I'd prefer if you picked one of the tools and did that first. llvm-objdump is a good place to start.
This revision now requires changes to proceed.Oct 29 2016, 8:24 PM sbc100 edited edge metadata. sbc100 marked 10 inline comments as done. Comment Actions
Comment Actions Closing in favor of https://reviews.llvm.org/D26172
Revision Contents
Diff 75974 include/llvm/Object/Binary.h
include/llvm/Object/ObjectFile.h
include/llvm/Object/Wasm.h
include/llvm/ObjectYAML/ObjectYAML.h
include/llvm/ObjectYAML/WasmYAML.h
include/llvm/Support/FileSystem.h
include/llvm/Support/Wasm.h
lib/Object/Binary.cpp
lib/Object/CMakeLists.txt
lib/Object/ObjectFile.cpp
lib/Object/SymbolicFile.cpp
lib/Object/WasmObjectFile.cpp
lib/ObjectYAML/CMakeLists.txt
lib/ObjectYAML/ObjectYAML.cpp
lib/ObjectYAML/WasmYAML.cpp
lib/Support/Path.cpp
test/ObjectYAML/Wasm/data_section.yaml
test/ObjectYAML/Wasm/elem_section.yaml
test/ObjectYAML/Wasm/export_section.yaml
test/ObjectYAML/Wasm/function_section.yaml
test/ObjectYAML/Wasm/header.yaml
test/ObjectYAML/Wasm/header_invalid_version.yaml
test/ObjectYAML/Wasm/import_section.yaml
test/ObjectYAML/Wasm/memory_section.yaml
test/ObjectYAML/Wasm/table_section.yaml
test/ObjectYAML/Wasm/type_section.yaml
test/tools/llvm-objdump/wasm.txt
test/tools/llvm-readobj/file-headers.test
test/tools/llvm-readobj/sections.test
tools/llvm-nm/llvm-nm.cpp
tools/llvm-objdump/CMakeLists.txt
tools/llvm-objdump/WasmDump.cpp
tools/llvm-objdump/llvm-objdump.h
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-readobj/CMakeLists.txt
tools/llvm-readobj/MachODumper.cpp
tools/llvm-readobj/ObjDumper.h
tools/llvm-readobj/WasmDumper.cpp
tools/llvm-readobj/llvm-readobj.cpp
tools/obj2yaml/CMakeLists.txt
tools/obj2yaml/coff2yaml.cpp
tools/obj2yaml/obj2yaml.h
tools/obj2yaml/obj2yaml.cpp
tools/obj2yaml/wasm2yaml.cpp
tools/yaml2obj/CMakeLists.txt
tools/yaml2obj/yaml2obj.h
tools/yaml2obj/yaml2obj.cpp
tools/yaml2obj/yaml2wasm.cpp
|
implement->implements