radeonsi: Remove use.sgpr* intrinsics, use load instructions instead
authorTom Stellard <thomas.stellard@amd.com>
Tue, 29 May 2012 15:36:29 +0000 (11:36 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 29 May 2012 15:55:53 +0000 (11:55 -0400)
commit89ece086bcd2186ab53cb6a69d53005893cab0ea
tree44659cbd9cf73654d0bf69faf3ac86c382ab9cc2
parent467f51613eb1f2cdaa8624bbbb3d5fae2abca4f2
radeonsi: Remove use.sgpr* intrinsics, use load instructions instead

We now model loading uses sgpr values with LLVM IR load instructions that
use the USER_SGPR address space.

The definition of the sgpr parameter to the use_sgpr() helper function
in radeonsi_shader.c has changed so that you can pass raw sgpr values
rather than having to divide the sgpr value you want to use by the dword
width of the type you want to load.
src/gallium/drivers/radeon/AMDIL.h
src/gallium/drivers/radeon/SIISelLowering.cpp
src/gallium/drivers/radeon/SIInstructions.td
src/gallium/drivers/radeon/SIIntrinsics.td
src/gallium/drivers/radeonsi/radeonsi_shader.c