diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-27 00:21:13 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-27 00:21:13 +0000 |
commit | f084847373210540f345698295af333834493322 (patch) | |
tree | 38cc7ed6b8e4ae90a5d493c84963e8f21599f4f5 /lib/Target/Mips/MipsISelLowering.h | |
parent | db40edeb11f4f97c8de5428a84346834deaa2a47 (diff) | |
download | llvm-f084847373210540f345698295af333834493322.tar.gz llvm-f084847373210540f345698295af333834493322.tar.bz2 llvm-f084847373210540f345698295af333834493322.tar.xz |
Add method MipsTargetLowering::writeVarArgRegs which copies argument registers
of vararg functions back to the stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h index 51f3e21eae..160349e4aa 100644 --- a/lib/Target/Mips/MipsISelLowering.h +++ b/lib/Target/Mips/MipsISelLowering.h @@ -295,6 +295,12 @@ namespace llvm { const MipsCC &CC, const ByValArgInfo &ByVal, const ISD::ArgFlagsTy &Flags, bool isLittle) const; + /// writeVarArgRegs - Write variable function arguments passed in registers + /// to the stack. Also create a stack frame object for the first variable + /// argument. + void writeVarArgRegs(std::vector<SDValue> &OutChains, const MipsCC &CC, + SDValue Chain, DebugLoc DL, SelectionDAG &DAG) const; + virtual SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg, |