CallConv

Enum CallConv 

Source
#[repr(u8)]
pub enum CallConv {
Show 60 variants C = 0, Fast = 8, Cold = 9, GHC = 10, HiPE = 11, AnyReg = 13, PreserveMost = 14, PreserveAll = 15, Swift = 16, CxxFastTls = 17, Tail = 18, CFGuardCheck = 19, SwiftTail = 20, PreserveNone = 21, X86StdCall = 64, X86FastCall = 65, ArmApcs = 66, ArmAapcs = 67, ArmAapcsVfp = 68, Msp430Intr = 69, X86ThisCall = 70, PTXKernel = 71, PTXDevice = 72, SpirFunc = 75, SpirKernel = 76, IntelOclBi = 77, X8664SysV = 78, Win64 = 79, X86VectorCall = 80, DummyHhvm = 81, DummyHhvmC = 82, X86Intr = 83, AvrIntr = 84, AvrSignal = 85, AvrBuiltin = 86, AmdGpuVs = 87, AmdGpuGs = 88, AmdGpuPs = 89, AmdGpuCs = 90, AmdGpuKernel = 91, X86RegCall = 92, AmdGpuHs = 93, Msp430Builtin = 94, AmdGpuLs = 95, AmdGpuEs = 96, AArch64VectorCall = 97, AArch64SVEVectorCall = 98, WasmEmscriptenInvoke = 99, AmdGpuGfx = 100, M68kIntr = 101, AArch64SmeAbiSupportRoutinesPreserveMostFromX0 = 102, AArch64SmeAbiSupportRoutinesPreserveMostFromX2 = 103, AmdGpuCSChain = 104, AmdGpuCSChainPreserve = 105, M68kRTD = 106, Graal = 107, Arm64ECThunkX64 = 108, Arm64ECThunkNative = 109, RiscVVectorCall = 110, AArch64SmeAbiSupportRoutinesPreserveMostFromX1 = 111,
}

Variants§

§

C = 0

§

Fast = 8

§

Cold = 9

§

GHC = 10

§

HiPE = 11

§

AnyReg = 13

§

PreserveMost = 14

§

PreserveAll = 15

§

Swift = 16

§

CxxFastTls = 17

CXX_FAST_TLS

§

Tail = 18

§

CFGuardCheck = 19

CFGuard_Check

§

SwiftTail = 20

§

PreserveNone = 21

§

X86StdCall = 64

X86_StdCall (first target cc)

§

X86FastCall = 65

X86_FastCall

§

ArmApcs = 66

ARM_APCS

§

ArmAapcs = 67

ARM_AAPCS

§

ArmAapcsVfp = 68

ARM_AAPCS_VFP

§

Msp430Intr = 69

MSP430_INTR

§

X86ThisCall = 70

X86_ThisCall

§

PTXKernel = 71

PTX_Kernel

§

PTXDevice = 72

PTX_Device

§

SpirFunc = 75

SPIR_FUNC

§

SpirKernel = 76

SPIR_KERNEL

§

IntelOclBi = 77

Intel_OCL_BI

§

X8664SysV = 78

X86_64_SysV

§

Win64 = 79

Win64

§

X86VectorCall = 80

X86_VectorCall

§

DummyHhvm = 81

DUMMY_HHVM

§

DummyHhvmC = 82

DUMMY_HHVM_C

§

X86Intr = 83

X86_INTR

§

AvrIntr = 84

AVR_INTR

§

AvrSignal = 85

AVR_SIGNAL

§

AvrBuiltin = 86

AVR_BUILTIN

§

AmdGpuVs = 87

AMDGPU_VS

§

AmdGpuGs = 88

AMDGPU_GS

§

AmdGpuPs = 89

AMDGPU_PS

§

AmdGpuCs = 90

AMDGPU_CS

§

AmdGpuKernel = 91

AMDGPU_KERNEL

§

X86RegCall = 92

X86_RegCall

§

AmdGpuHs = 93

AMDGPU_HS

§

Msp430Builtin = 94

MSP430_BUILTIN

§

AmdGpuLs = 95

AMDGPU_LS

§

AmdGpuEs = 96

AMDGPU_ES

§

AArch64VectorCall = 97

AArch64_VectorCall

§

AArch64SVEVectorCall = 98

AArch64_SVE_VectorCall

§

WasmEmscriptenInvoke = 99

WASM_EmscriptenInvoke

§

AmdGpuGfx = 100

AMDGPU_Gfx

§

M68kIntr = 101

M68k_INTR

§

AArch64SmeAbiSupportRoutinesPreserveMostFromX0 = 102

§

AArch64SmeAbiSupportRoutinesPreserveMostFromX2 = 103

§

AmdGpuCSChain = 104

§

AmdGpuCSChainPreserve = 105

§

M68kRTD = 106

§

Graal = 107

§

Arm64ECThunkX64 = 108

§

Arm64ECThunkNative = 109

§

RiscVVectorCall = 110

§

AArch64SmeAbiSupportRoutinesPreserveMostFromX1 = 111

Implementations§

Source§

impl CallConv

call conv field in bitcode is often mixed with flags

Source

pub fn from_flags(ccinfo_flags: u64) -> Result<Self, String>

Trait Implementations§

Source§

impl Debug for CallConv

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl TryFrom<u8> for CallConv

Source§

type Error = TryFromPrimitiveError<CallConv>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for CallConv

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.