Add an accessor for targets that pass args in regs

llvm-svn: 19702
This commit is contained in:
Chris Lattner 2005-01-19 20:19:58 +00:00
parent 277ac2be70
commit 7005632b59

View File

@ -131,6 +131,20 @@ public:
return NN;
}
/// getCall - This is identical to the one above, and should be used for calls
/// where arguments are passed in physical registers. This destroys the
/// RetVals and ArgsInRegs vectors.
SDNode *getCall(std::vector<MVT::ValueType> &RetVals, SDOperand Chain,
SDOperand Callee, std::vector<SDOperand> &ArgsInRegs) {
ArgsInRegs.insert(ArgsInRegs.begin(), Callee);
ArgsInRegs.insert(ArgsInRegs.begin(), Chain);
SDNode *NN = new SDNode(ISD::CALL, ArgsInRegs);
NN->setValueTypes(RetVals);
AllNodes.push_back(NN);
return NN;
}
SDOperand getSetCC(ISD::CondCode, MVT::ValueType VT,
SDOperand LHS, SDOperand RHS);