Mesa (master): radeon/llvm: Make sure the LOAD_CONST def uses the isSI predicate

Tom Stellard tstellar at kemper.freedesktop.org
Wed May 9 17:45:04 UTC 2012


Module: Mesa
Branch: master
Commit: d0403cafd479964a80d95299d079845593e9891f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0403cafd479964a80d95299d079845593e9891f

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Wed May  9 11:43:17 2012 -0400

radeon/llvm: Make sure the LOAD_CONST def uses the isSI predicate

---

 src/gallium/drivers/radeon/SIInstrInfo.td    |    7 -------
 src/gallium/drivers/radeon/SIInstructions.td |    7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/gallium/drivers/radeon/SIInstrInfo.td b/src/gallium/drivers/radeon/SIInstrInfo.td
index 65b28ec..4b6b99f 100644
--- a/src/gallium/drivers/radeon/SIInstrInfo.td
+++ b/src/gallium/drivers/radeon/SIInstrInfo.td
@@ -464,11 +464,4 @@ def IMM12bit : ImmLeaf <
 
 include "SIInstrFormats.td"
 
-def LOAD_CONST : AMDGPUShaderInst <
-  (outs GPRF32:$dst),
-  (ins i32imm:$src),
-  "LOAD_CONST $dst, $src",
-  [(set GPRF32:$dst, (int_AMDGPU_load_const imm:$src))]
->;
-
 include "SIInstructions.td"
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td
index 7fa397a..a145b9a 100644
--- a/src/gallium/drivers/radeon/SIInstructions.td
+++ b/src/gallium/drivers/radeon/SIInstructions.td
@@ -800,6 +800,13 @@ def CONFIG_WRITE : InstSI <
   field bits<32> Inst = 0;
 }
 
+def LOAD_CONST : AMDGPUShaderInst <
+  (outs GPRF32:$dst),
+  (ins i32imm:$src),
+  "LOAD_CONST $dst, $src",
+  [(set GPRF32:$dst, (int_AMDGPU_load_const imm:$src))]
+>;
+
 let usesCustomInserter = 1 in {
 
 def SI_V_CNDLT : InstSI <




More information about the mesa-commit mailing list