aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/R600/R600Instructions.td
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-06-25 02:39:30 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-06-25 02:39:30 +0000
commitd67d029b6d2d9cc4274ffea5cc5c4bd120fe3425 (patch)
tree2a4045cd2e7e005ebca28de4eabb104101b89aaa /lib/Target/R600/R600Instructions.td
parentfa57da12f7ce559d502a4319d39a1f0582f4d2b3 (diff)
downloadexternal_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.td9
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
//===----------------------------------------------------------------------===//