Enum CallingConv#

Enum Documentation#

enum class tvm::CallingConv : int#

Possible Calling conventions.

NOTE: The calling convention also implies the way we implement the function during lowering.

Values:

enumerator kDefault#

Default calling convention.

  • Uses the native calling convention of the target.

  • Implementation: specified by the native target.

enumerator kCPackedFunc#

ffi::Function that exposes a Cffi::Function signature.

  • Calling by ffi::Function calling convention.

  • Implementation: Expose a function with the Cffi::Function signature.

enumerator kDeviceKernelLaunch#

Device kernel launch.

  • Call by ffi::Function calling convention.

  • Implementation: defined by device runtime(e.g. runtime/cuda)