WebAssembly: textual emission uses expected opcode names
authorJF Bastien <jfb@google.com>
Fri, 7 Aug 2015 01:57:03 +0000 (01:57 +0000)
committerJF Bastien <jfb@google.com>
Fri, 7 Aug 2015 01:57:03 +0000 (01:57 +0000)
commit6d2f2ee4aba2296f9ead1993eec2b293fd7e31d7
tree2288fcbc50a1f7c7993a04b76baebae75bd003d0
parent9baa291a86096780b529d27a5b504d50e7649108
WebAssembly: textual emission uses expected opcode names

Summary: 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.

Reviewers: sunfish

Subscribers: jfb, llvm-commits

Differential Revision: http://reviews.llvm.org/D11776

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
test/CodeGen/WebAssembly/integer32.ll
test/CodeGen/WebAssembly/integer64.ll