[PATCH] D11776: WebAssembly: textual emission uses expected opcode names

JF Bastien jfb at chromium.org
Wed Aug 5 13:36:18 PDT 2015


jfb created this revision.
jfb added a reviewer: sunfish.
jfb added a subscriber: llvm-commits.
Herald added a subscriber: jfb.

WebAssembly's tablegen instructions have the names WebAssembly expects, but by LLVM convention they're uppercase and suffixed with their type after an underscore. Leave the C++ code that way, but print outt he names WebAssembly expects (lowercase, no type). We could teach tablegen to do this later, maybe by using `!cast<string>(node)` in the .td files.

http://reviews.llvm.org/D11776

Files:
  lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  test/CodeGen/WebAssembly/integer32.ll
  test/CodeGen/WebAssembly/integer64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11776.31390.patch
Type: text/x-patch
Size: 11654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150805/8e6f3638/attachment.bin>


More information about the llvm-commits mailing list