diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-17 00:51:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-17 00:51:38 +0000 |
commit | 5627377df5439a1d3d46a4e4cef4ae44f84a322b (patch) | |
tree | 2cae32ee17e1b381ecdd942acec881e0b62f313b /lib/CodeGen/CodeGenFunction.h | |
parent | 1c9f81b90223a2588b5d2c95152f04896599322c (diff) |
Add support for ABIArgInfo::Expand
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 2884f4cdf9..fee9e6f9b3 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -441,6 +441,22 @@ private: /// EmitIndirectSwitches - Emit code for all of the switch /// instructions in IndirectSwitches. void EmitIndirectSwitches(); + + /// ExpandTypeFromArgs - Reconstruct a structure of type \arg Ty + /// from function arguments into \arg Dst. See ABIArgInfo::Expand. + /// + /// \param AI - The first function argument of the expansion. + /// \return The argument following the last expanded function + /// argument. + llvm::Function::arg_iterator + ExpandTypeFromArgs(QualType Ty, LValue Dst, + llvm::Function::arg_iterator AI); + + /// ExpandTypeToArgs - Expand an RValue \arg Src, with the LLVM type + /// for \arg Ty, into individual arguments on the provided vector + /// \arg Args. See ABIArgInfo::Expand. + void ExpandTypeToArgs(QualType Ty, RValue Src, + llvm::SmallVector<llvm::Value*, 16> &Args); }; } // end namespace CodeGen } // end namespace clang |