forked from OSchip/llvm-project
parent
fa58a5fb60
commit
d623644d17
|
@ -33,7 +33,12 @@ def CC_SI : CallingConv<[
|
||||||
VGPR8, VGPR9, VGPR10, VGPR11, VGPR12, VGPR13, VGPR14, VGPR15,
|
VGPR8, VGPR9, VGPR10, VGPR11, VGPR12, VGPR13, VGPR14, VGPR15,
|
||||||
VGPR16, VGPR17, VGPR18, VGPR19, VGPR20, VGPR21, VGPR22, VGPR23,
|
VGPR16, VGPR17, VGPR18, VGPR19, VGPR20, VGPR21, VGPR22, VGPR23,
|
||||||
VGPR24, VGPR25, VGPR26, VGPR27, VGPR28, VGPR29, VGPR30, VGPR31
|
VGPR24, VGPR25, VGPR26, VGPR27, VGPR28, VGPR29, VGPR30, VGPR31
|
||||||
]>>>
|
]>>>,
|
||||||
|
|
||||||
|
CCIfByVal<CCIfType<[i64] , CCAssignToRegWithShadow<
|
||||||
|
[ SGPR0, SGPR2, SGPR4, SGPR6, SGPR8, SGPR10, SGPR12, SGPR14 ],
|
||||||
|
[ SGPR1, SGPR3, SGPR5, SGPR7, SGPR9, SGPR11, SGPR13, SGPR15 ]
|
||||||
|
>>>
|
||||||
|
|
||||||
]>;
|
]>;
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,8 @@ SDValue SITargetLowering::LowerFormalArguments(
|
||||||
const ISD::InputArg &Arg = Ins[i];
|
const ISD::InputArg &Arg = Ins[i];
|
||||||
|
|
||||||
// First check if it's a PS input addr
|
// First check if it's a PS input addr
|
||||||
if (Info->ShaderType == ShaderType::PIXEL && !Arg.Flags.isInReg()) {
|
if (Info->ShaderType == ShaderType::PIXEL && !Arg.Flags.isInReg() &&
|
||||||
|
!Arg.Flags.isByVal()) {
|
||||||
|
|
||||||
assert((PSInputNum <= 15) && "Too many PS inputs!");
|
assert((PSInputNum <= 15) && "Too many PS inputs!");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue