diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 02:39:30 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-25 02:39:30 +0000 |
commit | d67d029b6d2d9cc4274ffea5cc5c4bd120fe3425 (patch) | |
tree | 2a4045cd2e7e005ebca28de4eabb104101b89aaa /lib/Target/R600/R600Instructions.td | |
parent | fa57da12f7ce559d502a4319d39a1f0582f4d2b3 (diff) | |
download | external_llvm-d67d029b6d2d9cc4274ffea5cc5c4bd120fe3425.zip external_llvm-d67d029b6d2d9cc4274ffea5cc5c4bd120fe3425.tar.gz external_llvm-d67d029b6d2d9cc4274ffea5cc5c4bd120fe3425.tar.bz2 |
R600: Add support for i32 loads from the constant address space on Cayman
Tested-By: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/R600Instructions.td')
-rw-r--r-- | lib/Target/R600/R600Instructions.td | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index a468ab7..3c83905 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -1755,6 +1755,15 @@ def VTX_READ_GLOBAL_128_cm : VTX_READ_128_cm <1, [(set v4i32:$dst_gpr, (global_load ADDRVTX_READ:$src_gpr))] >; +//===----------------------------------------------------------------------===// +// Constant Loads +// XXX: We are currently storing all constants in the global address space. +//===----------------------------------------------------------------------===// + +def CONSTANT_LOAD_cm : VTX_READ_32_cm <1, + [(set i32:$dst_gpr, (constant_load ADDRVTX_READ:$src_gpr))] +>; + } // End isCayman //===----------------------------------------------------------------------===// |