mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
Add an accessor for targets that pass args in regs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e81b9e511
commit
02b86f52ed
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user