forked from OSchip/llvm-project
Switch targets over to using SelectionDAG::getCALLSEQ_START to create
CALLSEQ_START nodes. llvm-svn: 26143
This commit is contained in:
parent
3a0ad47b39
commit
62c3484e43
|
@ -327,8 +327,8 @@ AlphaTargetLowering::LowerCallTo(SDOperand Chain,
|
|||
if (Args.size() > 6)
|
||||
NumBytes = (Args.size() - 6) * 8;
|
||||
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
std::vector<SDOperand> args_to_use;
|
||||
for (unsigned i = 0, e = Args.size(); i != e; ++i)
|
||||
{
|
||||
|
|
|
@ -323,8 +323,7 @@ IA64TargetLowering::LowerCallTo(SDOperand Chain,
|
|||
//assert(NumBytes==((NumBytes+15) & ~15) && "stack frame not 16-byte aligned!");
|
||||
NumBytes = (NumBytes+15) & ~15;
|
||||
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain,DAG.getConstant(NumBytes, getPointerTy()));
|
||||
|
||||
SDOperand StackPtr, NullSV;
|
||||
std::vector<SDOperand> Stores;
|
||||
|
|
|
@ -481,8 +481,7 @@ SparcTargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
|
|||
// Keep stack frames 8-byte aligned.
|
||||
ArgsSize = (ArgsSize+7) & ~7;
|
||||
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(ArgsSize, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain,DAG.getConstant(ArgsSize, getPointerTy()));
|
||||
|
||||
SDOperand StackPtr, NullSV;
|
||||
std::vector<SDOperand> Stores;
|
||||
|
|
|
@ -382,8 +382,7 @@ X86TargetLowering::LowerCCCCallTo(SDOperand Chain, const Type *RetTy,
|
|||
|
||||
if (Args.empty()) {
|
||||
// Save zero bytes.
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(0, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain, DAG.getConstant(0, getPointerTy()));
|
||||
} else {
|
||||
for (unsigned i = 0, e = Args.size(); i != e; ++i)
|
||||
switch (getValueType(Args[i].second)) {
|
||||
|
@ -401,8 +400,8 @@ X86TargetLowering::LowerCCCCallTo(SDOperand Chain, const Type *RetTy,
|
|||
break;
|
||||
}
|
||||
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
|
||||
// Arguments go on the stack in reverse order, as specified by the ABI.
|
||||
unsigned ArgOffset = 0;
|
||||
|
@ -846,8 +845,7 @@ X86TargetLowering::LowerFastCCCallTo(SDOperand Chain, const Type *RetTy,
|
|||
if ((NumBytes & 7) == 0)
|
||||
NumBytes += 4;
|
||||
|
||||
Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
|
||||
DAG.getConstant(NumBytes, getPointerTy()));
|
||||
Chain = DAG.getCALLSEQ_START(Chain,DAG.getConstant(NumBytes, getPointerTy()));
|
||||
|
||||
// Arguments go on the stack in reverse order, as specified by the ABI.
|
||||
unsigned ArgOffset = 0;
|
||||
|
|
Loading…
Reference in New Issue