[PATCH] D57713: [WebAssembly] Make disassembler always emit most canonical name.
Wouter van Oortmerssen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 4 14:15:38 PST 2019
aardappel created this revision.
aardappel added reviewers: dschuff, tlively.
Herald added subscribers: llvm-commits, aheejin, jgravelle-google, sbc100.
Herald added a project: LLVM.
There are a few instructions that all map to the same opcode, so
when disassembling, we have to pick one. That was just the first one
before (the except_ref variant in the case of "call"), now it is the
one marked as IsCanonical in tablegen, or failing that, the shortest
name (which is typically the "canonical" one).
Also introduced a canonical "end" instruction for this purpose.
Repository:
rL LLVM
https://reviews.llvm.org/D57713
Files:
lib/Target/WebAssembly/WebAssemblyInstrCall.td
lib/Target/WebAssembly/WebAssemblyInstrControl.td
lib/Target/WebAssembly/WebAssemblyInstrFormats.td
lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
test/MC/Disassembler/WebAssembly/wasm.txt
test/MC/WebAssembly/objdump.s
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57713.185158.patch
Type: text/x-patch
Size: 8842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190204/5eb564a3/attachment.bin>
More information about the llvm-commits
mailing list