radeon/llvm: Add pseudo-support for 64-bit immediate types on SI
authorTom Stellard <thomas.stellard@amd.com>
Tue, 31 Jul 2012 20:05:54 +0000 (20:05 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 31 Jul 2012 20:19:21 +0000 (20:19 +0000)
commita488fdd3d97a6e9fa1ff8b8d22193551391170d3
treef2ab8842e1f80620200ba78832ef0197eca353a7
parentbe468742811364f55a81d7f49164a60291bdd5ff
radeon/llvm: Add pseudo-support for 64-bit immediate types on SI

SI does not support 64-bit immediates natively, but llvm will generate
i64 immediates when indexing loads and stores (since SI has 64-bit
pointers).  The i64 indices will always be small enough to fit into
32-bits (i.e. the high 32 bits will always be all zeros), so we can
treat these index values as 32-bits.
src/gallium/drivers/radeon/SIInstrInfo.td
src/gallium/drivers/radeon/SIInstructions.td