LLVM API Documentation

llvm::CallingConv Namespace Reference


Enumerations

enum  ID {
  C = 0, Fast = 8, Cold = 9, FirstTargetCC = 64,
  X86_StdCall = 64, X86_FastCall = 65
}
 LLVM Calling Convention Representation. More...


Detailed Description

CallingConv Namespace - This namespace contains an enum with a value for the well-known calling conventions.

Enumeration Type Documentation

LLVM Calling Convention Representation.

A set of enums which specify the assigned numeric values for known llvm calling conventions.

Enumerator:
C  C - The default llvm calling convention, compatible with C. This convention is the only calling convention that supports varargs calls. As with typical C calling conventions, the callee/caller have to tolerate certain amounts of prototype mismatch.
Fast  Fast - This calling convention attempts to make calls as fast as possible (e.g. by passing things in registers).
Cold 
FirstTargetCC 
X86_StdCall  X86_StdCall - stdcall is the calling conventions mostly used by the Win32 API. It is basically the same as the C convention with the difference in that the callee is responsible for popping the arguments from the stack.
X86_FastCall  X86_FastCall - 'fast' analog of X86_StdCall. Passes first two arguments in ECX:EDX registers, others - via stack. Callee is responsible for stack cleaning.

Definition at line 26 of file CallingConv.h.