R600/SI: Print more immediates in hex format
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 15 Apr 2014 22:32:49 +0000 (22:32 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 15 Apr 2014 22:32:49 +0000 (22:32 +0000)
commitbec5c611e131ddb64acb917a34161e02bc0cd7da
tree939a9c598e945da0b036d7cce29a2eb5e0121f7f
parentdd368a8755ed42d8c03c5d08824b86bad4aec820
R600/SI: Print more immediates in hex format

Print in decimal for inline immediates, and hex otherwise. Use hex
always for offsets in addressing offsets.

This approximately matches what the shader compiler does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206335 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
lib/Target/R600/AMDGPUInstructions.td
lib/Target/R600/InstPrinter/AMDGPUInstPrinter.cpp
lib/Target/R600/InstPrinter/AMDGPUInstPrinter.h
lib/Target/R600/SIInstrInfo.td
test/CodeGen/R600/32-bit-local-address-space.ll
test/CodeGen/R600/64bit-kernel-args.ll
test/CodeGen/R600/address-space.ll
test/CodeGen/R600/fconst64.ll
test/CodeGen/R600/gep-address-space.ll
test/CodeGen/R600/infinite-loop.ll
test/CodeGen/R600/kernel-args.ll
test/CodeGen/R600/llvm.SI.tbuffer.store.ll
test/CodeGen/R600/local-64.ll
test/CodeGen/R600/local-memory-two-objects.ll
test/CodeGen/R600/mubuf.ll
test/CodeGen/R600/mulhu.ll
test/CodeGen/R600/or.ll
test/CodeGen/R600/private-memory.ll
test/CodeGen/R600/smrd.ll
test/CodeGen/R600/trunc.ll
test/CodeGen/R600/work-item-intrinsics.ll