[LLVMdev] Support for Aggregate Return Values

Kenneth Uildriks kennethuil at gmail.com
Wed Nov 11 04:56:00 PST 2009


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.




More information about the llvm-dev mailing list