[LLVMdev] Wrong calling convention?

Evan Cheng evan.cheng at apple.com
Wed Mar 26 11:45:39 PDT 2008


I should note this how we do it today but it may not be the solution  
long term.

In an ideal world the llvm frontend will not need to know anything  
about the target since llvm is intended as a virtual instruction set.

Evan

On Mar 26, 2008, at 11:42 AM, Evan Cheng wrote:

> Take a look at llvm-gcc. Look for HandleAggregateShadowArgument.
>
> Evan
>
> On Mar 26, 2008, at 10:31 AM, Óscar Fuentes wrote:
>
>> Óscar Fuentes <ofv at wanadoo.es> writes:
>>
>>> BTW, -fpcc-struct-return solves the case that motivated this thread.
>>
>> -fpcc-struct-return is an ABI change, hence it requires "compiling  
>> the
>> world". Not acceptable.
>>
>> I'll be interested on hearing ideas about how to determine how a
>> function returns a small struct, without knowing the internals of the
>> struct.
>>
>> -- 
>> Oscar
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>





More information about the llvm-dev mailing list