[LLVMdev] CDECL Calling Convention

Anton Korobeynikov anton at korobeynikov.info
Sun Mar 20 14:05:06 PDT 2011


Hello

> I am a beginner of LLVM and I want to add a new backend into LLVM. The
> calling convention of the target I ported is CDECL. I am wondering to know
> whether there is already CDECL calling convention implemented in LLVM??
> Which CallingConv.td file should I copy and modify for my target??
Everything depends on what exactly "cdecl" means for your target.
Usually it's just an ordinary C calling convention, which is surely
implemented for a bunch of different LLVM targets.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list