aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-10-27 00:10:18 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-10-27 00:10:18 +0000
commiteb98ae46bca786f033f8f4ab5f89ac046bd9f28e (patch)
treed9dd1b73f24bee43fc3b4f6dcead095ea3dc90c1 /lib/Target/Mips/MipsISelLowering.h
parent7887c90a7b80b994a51a2a3b88eef3643473e67c (diff)
Add method MipsTargetLowering::copyByValRegs.
This method copies byval arguments passed in registers onto the stack and has the same functionality as existing functions CopyMips64ByValRegs and ReadByValArg which will be deleted later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r--lib/Target/Mips/MipsISelLowering.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h
index 33ddce9a68..c2ff4b5368 100644
--- a/lib/Target/Mips/MipsISelLowering.h
+++ b/lib/Target/Mips/MipsISelLowering.h
@@ -277,6 +277,16 @@ namespace llvm {
bool IsEligibleForTailCallOptimization(CallingConv::ID CalleeCC,
unsigned NextStackOffset) const;
+ /// copyByValArg - Copy argument registers which were used to pass a byval
+ /// argument to the stack. Create a stack frame object for the byval
+ /// argument.
+ void copyByValRegs(SDValue Chain, DebugLoc DL,
+ std::vector<SDValue> &OutChains, SelectionDAG &DAG,
+ const ISD::ArgFlagsTy &Flags,
+ SmallVectorImpl<SDValue> &InVals,
+ const Argument *FuncArg,
+ const MipsCC &CC, const ByValArgInfo &ByVal) const;
+
virtual SDValue
LowerFormalArguments(SDValue Chain,
CallingConv::ID CallConv, bool isVarArg,