[LLVMdev] Structs as first class values.

Chris Lattner clattner at apple.com
Sun Jul 20 11:41:58 PDT 2008


On Jul 20, 2008, at 10:59 AM, Richard Pennington wrote:

> Chris Lattner wrote:
>> On Jul 20, 2008, at 6:25 AM, Richard Pennington wrote:
>> Yes, that is supposed to work in theory.  In practice, most targets
>> only support returning up to two values in registers.  Eventually, we
>> want the code generator to support returning excess return values on
>> the stack, but we don't have that code yet.
>
> Thanks for the info. Is the intention to implement this in an ABI
> compatible manner? That is, pass the address to put the return value  
> as
> a hidden first parameter, for example?

I'm sure the implementation will take the same approach, but it won't  
necessarily be ABI compatible.  I don't know enough to say at this  
point... it may end up being ABI compatible or not depending on  
implementation details.

-Chris



More information about the llvm-dev mailing list