[LLVMdev] CallingConv

Dan Gohman gohman at apple.com
Thu Feb 5 11:02:28 PST 2009


No, the current tablegen CallingConv infrastructure isn't
yet able to do that. I agree that this seems like something
it should be able to do though. Patches would be welcome :-).

Dan

On Feb 5, 2009, at 8:40 AM, Villmow, Micah wrote:

> Currently with my understanding of using callingconv.td I still need  
> to lower three functions, FORMAL_ARGUMENTS, CALL, and RET. Is there  
> any known way to have LLVM automagically generate code from tablegen  
> without having to custom lower these functions? The reasoning for  
> this is that all registers are virtual in my backend and I have  
> specified for llvm to use it’s generic dynamic stack allocation. So  
> if I can give llvm a list of registers to use, it should be able to  
> handle these functions for me, correct?
>
> Is this possible, or am I wanting to much?
>
> Thanks,
> Micah Villmow
> Systems Engineer
> Advanced Technology & Performance
> Advanced Micro Devices Inc.
> S1-609 One AMD Place
> Sunnyvale, CA. 94085
> P: 408-749-3966
>
>
> _______________________________________________
> 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