mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
R600: Add a CONST_ADDRESS node to model constant buf read
Patch by: Vincent Lejeune Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173221 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
80537b995d
commit
c7e1888d93
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -123,6 +123,7 @@ enum {
|
||||
INTERP,
|
||||
INTERP_P0,
|
||||
EXPORT,
|
||||
CONST_ADDRESS,
|
||||
LAST_AMDGPU_ISD_NUMBER
|
||||
};
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user