forked from OSchip/llvm-project
AMDGPU: Make CONST_DATA_PTR available to R600
Rename to AMDGPUconstdata_ptr Reviewers: tstellard Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D19786 llvm-svn: 269474
This commit is contained in:
parent
81f1b30035
commit
fbcb754e66
|
@ -44,6 +44,11 @@ def AMDGPUFmasOp : SDTypeProfile<1, 4,
|
|||
// AMDGPU DAG Nodes
|
||||
//
|
||||
|
||||
def AMDGPUconstdata_ptr : SDNode<
|
||||
"AMDGPUISD::CONST_DATA_PTR", SDTypeProfile <1, 1, [SDTCisVT<0, iPTR>,
|
||||
SDTCisVT<0, iPTR>]>
|
||||
>;
|
||||
|
||||
// This argument to this node is a dword address.
|
||||
def AMDGPUdwordaddr : SDNode<"AMDGPUISD::DWORDADDR", SDTIntUnaryOp>;
|
||||
|
||||
|
|
|
@ -137,11 +137,6 @@ def SIsampleb : SDSample<"AMDGPUISD::SAMPLEB">;
|
|||
def SIsampled : SDSample<"AMDGPUISD::SAMPLED">;
|
||||
def SIsamplel : SDSample<"AMDGPUISD::SAMPLEL">;
|
||||
|
||||
def SIconstdata_ptr : SDNode<
|
||||
"AMDGPUISD::CONST_DATA_PTR", SDTypeProfile <1, 1, [SDTCisVT<0, i64>,
|
||||
SDTCisVT<0, i64>]>
|
||||
>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// PatFrags for FLAT instructions
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -2116,7 +2116,7 @@ let Defs = [SCC] in {
|
|||
def SI_CONSTDATA_PTR : InstSI <
|
||||
(outs SReg_64:$dst),
|
||||
(ins const_ga:$ptr),
|
||||
"", [(set SReg_64:$dst, (i64 (SIconstdata_ptr (tglobaladdr:$ptr))))]
|
||||
"", [(set SReg_64:$dst, (i64 (AMDGPUconstdata_ptr (tglobaladdr:$ptr))))]
|
||||
> {
|
||||
let SALU = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue