Calling Conventions


What support does clang have for calling conventions? I'm looking for some code that converts a C function type with a particular calling convention (cdecl, stdcall, or fastcall) into an LLVM function type.

Best Regards,

Right now, clang's calling conv lowering code is very primitive. It is sufficient for some simple cases, but we haven't put much effort into codegen yet. I expect that this will start getting more emphasis in a couple months.