forked from OSchip/llvm-project
e4825975d8
It uses the MC framework and the tablegen matcher to do the heavy lifting. Can handle both explicit and implicit locals (-disable-wasm-explicit-locals). Comes with a small regression test. This is a first basic implementation that can parse most llvm .s output and round-trips most instructions succesfully, but in order to keep the commit small, does not address all issues. There are a fair number of mismatches between what MC / assembly matcher think a "CPU" should look like and what WASM provides, some already have workarounds in this commit (e.g. the way it deals with register operands) and some that require further work. Some of that further work may involve changing what the Disassembler outputs (and what s2wasm parses), so are probably best left to followups. Some known things missing: - Many directives are ignored and not emitted. - Vararg calls are parsed but extra args not emitted. - Loop signatures are likely incorrect. - $drop= is not emitted. - Disassembler does not output SIMD types correctly, so assembler can't test them. Patch by Wouter van Oortmerssen Differential Revision: https://reviews.llvm.org/D44329 llvm-svn: 328028 |
||
---|---|---|
.. | ||
array-fill.ll | ||
basic-assembly.s | ||
blockaddress.ll | ||
bss.ll | ||
comdat.ll | ||
custom-code-section.ll | ||
debug-info.ll | ||
explicit-sections.ll | ||
external-data.ll | ||
external-func-address.ll | ||
file-headers.ll | ||
func-address.ll | ||
global-ctor-dtor.ll | ||
libcall.ll | ||
lit.local.cfg | ||
reloc-code.ll | ||
reloc-data.ll | ||
sections.ll | ||
stack-ptr.ll | ||
unnamed-data.ll | ||
visibility.ll | ||
weak-alias.ll | ||
weak.ll |