diff options
author | Vincent Lejeune <vljn@ovi.com> | 2012-12-26 17:37:19 +0100 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-01-18 20:01:09 +0000 |
commit | 643f5fc5067029c0bd3bd820c512c86a6dc6307d (patch) | |
tree | d156a9a393868db7b1d58898f2faa1cb2bf75224 | |
parent | e5150e365a1c48d9a9c62cef11b39dc1be26a7a6 (diff) |
R600: Add a CONST_ADDRESS node to model constant buf read
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
-rw-r--r-- | lib/Target/R600/AMDGPUISelLowering.cpp | 1 | ||||
-rw-r--r-- | lib/Target/R600/AMDGPUISelLowering.h | 1 | ||||
-rw-r--r-- | lib/Target/R600/R600Instructions.td | 11 |
3 files changed, 12 insertions, 1 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp index 473dac4ddcb..309bcf5bfc3 100644 --- a/lib/Target/R600/AMDGPUISelLowering.cpp +++ b/lib/Target/R600/AMDGPUISelLowering.cpp @@ -413,5 +413,6 @@ const char* AMDGPUTargetLowering::getTargetNodeName(unsigned Opcode) const { NODE_NAME_CASE(INTERP) NODE_NAME_CASE(INTERP_P0) NODE_NAME_CASE(EXPORT) + NODE_NAME_CASE(CONST_ADDRESS) } } diff --git a/lib/Target/R600/AMDGPUISelLowering.h b/lib/Target/R600/AMDGPUISelLowering.h index c7abaf69b4e..9938c65de88 100644 --- a/lib/Target/R600/AMDGPUISelLowering.h +++ b/lib/Target/R600/AMDGPUISelLowering.h @@ -123,6 +123,7 @@ enum { INTERP, INTERP_P0, EXPORT, + CONST_ADDRESS, LAST_AMDGPU_ISD_NUMBER }; diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index 8a0c52d858c..d4fa3d68262 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -470,7 +470,7 @@ def isR600toCayman : Predicate< "Subtarget.device()->getGeneration() <= AMDGPUDeviceInfo::HD6XXX">; //===----------------------------------------------------------------------===// -// Interpolation Instructions +// R600 SDNodes //===----------------------------------------------------------------------===// def INTERP: SDNode<"AMDGPUISD::INTERP", @@ -481,6 +481,15 @@ def INTERP_P0: SDNode<"AMDGPUISD::INTERP_P0", SDTypeProfile<1, 1, [SDTCisFP<0>, SDTCisInt<1>]> >; +def CONST_ADDRESS: SDNode<"AMDGPUISD::CONST_ADDRESS", + SDTypeProfile<1, 1, [SDTCisFP<0>, SDTCisPtrTy<1>]>, + [SDNPMayLoad] +>; + +//===----------------------------------------------------------------------===// +// Interpolation Instructions +//===----------------------------------------------------------------------===// + let usesCustomInserter = 1 in { def input_perspective : AMDGPUShaderInst < (outs R600_Reg128:$dst), |