[LLVMdev] Support for Aggregate Return Values

Chris Lattner clattner at apple.com
Tue Nov 10 21:22:58 PST 2009


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



More information about the llvm-dev mailing list