[LLVMdev] Type legalization of call and return

Evan Cheng echeng at apple.com
Tue Dec 9 18:11:54 PST 2008


On Dec 9, 2008, at 1:02 AM, Duncan Sands wrote:

> Hi,
>
>> In LLVM, responsibility of legalizing all the illegal types lies on  
>> type
>> legalizer.
>>
>> Why is type legalization of ISD::CALL (call arguments and call  
>> return)
>> and ISD::RET nodes being done much earlier?
>>
>> (e.g. for call in visitCall - through function LowerCallTo)
>
> I don't know.  Perhaps the legal version is needed very early on?
> Maybe Chris can answer?

Types of arguments and return values have to be correct in order to  
meet calling convention specifications.

Evan

>
>
> Ciao,
>
> Duncan.
> _______________________________________________
> 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