Dear All, How well does the LLVM code generators support returns of structure types in LLVM 2.6? I'm currently writing a transform that requires functions to return multiple values and am thinking implementing it by changing the function to return a struct. If it matters, I'm currently targeting 32-bit Linux and Mac OS X for x86. -- John T.
On Nov 10, 2009, at 8:26 PM, John Criswell wrote:> Dear All, > > How well does the LLVM code generators support returns of structure > types in LLVM 2.6? I'm currently writing a transform that requires > functions to return multiple values and am thinking implementing it by > changing the function to return a struct. > > If it matters, I'm currently targeting 32-bit Linux and Mac OS X for > x86.returning aggregates with up to two elements will work reliably. -Chris
On Tue, Nov 10, 2009 at 11:22 PM, Chris Lattner <clattner at apple.com> wrote:> > On Nov 10, 2009, at 8:26 PM, John Criswell wrote: > >> Dear All, >> >> How well does the LLVM code generators support returns of structure >> types in LLVM 2.6? I'm currently writing a transform that requires >> functions to return multiple values and am thinking implementing it by >> changing the function to return a struct. >> >> If it matters, I'm currently targeting 32-bit Linux and Mac OS X for >> x86. > > returning aggregates with up to two elements will work reliably. > > -Chris > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >An update to support arbitrary-sized struct returns is awaiting final approval.
Possibly Parallel Threads
- [LLVMdev] Support for Aggregate Return Values
- [LLVMdev] Support for Aggregate Return Values
- [LLVMdev] LLVM 2.6 and Aggregate Return Values: 64 bit
- [LLVMdev] LLVM 2.6 and Aggregate Return Values: 64 bit
- [LLVMdev] LLVM 2.6 and Aggregate Return Values: 64 bit