WebAssembly: print immediates
authorJF Bastien <jfb@google.com>
Mon, 10 Aug 2015 22:36:48 +0000 (22:36 +0000)
committerJF Bastien <jfb@google.com>
Mon, 10 Aug 2015 22:36:48 +0000 (22:36 +0000)
commit60b5a25d13eff60ee8ed43c72eeb4926dd51452c
treef5cda2bc7de90b88e3386bd4f88f4477eeed9411
parentedb32ec09939acc9dc896e27b74d4cbd2e017133
WebAssembly: print immediates

Summary:
For now output using C99's hexadecimal floating-point representation.

This patch also cleans up how machine operands are printed: instead of special-casing per type of machine instruction, the code now handles operands generically.

Reviewers: sunfish

Subscribers: llvm-commits, jfb

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244520 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
test/CodeGen/WebAssembly/immediates.ll [new file with mode: 0644]