Enum llvm_ir::function::CallingConvention
source · [−]pub enum CallingConvention {
Show 43 variants
C,
Fast,
Cold,
GHC,
HiPE,
WebKit_JS,
AnyReg,
PreserveMost,
PreserveAll,
Swift,
CXX_FastTLS,
X86_StdCall,
X86_FastCall,
X86_RegCall,
X86_ThisCall,
X86_VectorCall,
X86_Intr,
X86_64_SysV,
ARM_APCS,
ARM_AAPCS,
ARM_AAPCS_VFP,
MSP430_INTR,
MSP430_Builtin,
PTX_Kernel,
PTX_Device,
SPIR_FUNC,
SPIR_KERNEL,
Intel_OCL_BI,
Win64,
HHVM,
HHVM_C,
AVR_Intr,
AVR_Signal,
AVR_Builtin,
AMDGPU_CS,
AMDGPU_ES,
AMDGPU_GS,
AMDGPU_HS,
AMDGPU_LS,
AMDGPU_PS,
AMDGPU_VS,
AMDGPU_Kernel,
Numbered(u32),
}
Expand description
Variants
C
Fast
Cold
GHC
HiPE
WebKit_JS
AnyReg
PreserveMost
PreserveAll
Swift
CXX_FastTLS
X86_StdCall
X86_FastCall
X86_RegCall
X86_ThisCall
X86_VectorCall
X86_Intr
X86_64_SysV
ARM_APCS
ARM_AAPCS
ARM_AAPCS_VFP
MSP430_INTR
MSP430_Builtin
PTX_Kernel
PTX_Device
SPIR_FUNC
SPIR_KERNEL
Intel_OCL_BI
Win64
HHVM
HHVM_C
AVR_Intr
AVR_Signal
AVR_Builtin
AMDGPU_CS
AMDGPU_ES
AMDGPU_GS
AMDGPU_HS
AMDGPU_LS
AMDGPU_PS
AMDGPU_VS
AMDGPU_Kernel
Numbered(u32)
This is used if LLVM returns a calling convention not in LLVMCallConv
.
E.g., perhaps a calling convention was added to LLVM and this enum hasn’t been updated yet.
Trait Implementations
sourceimpl Clone for CallingConvention
impl Clone for CallingConvention
sourcefn clone(&self) -> CallingConvention
fn clone(&self) -> CallingConvention
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CallingConvention
impl Debug for CallingConvention
sourceimpl PartialEq<CallingConvention> for CallingConvention
impl PartialEq<CallingConvention> for CallingConvention
sourcefn eq(&self, other: &CallingConvention) -> bool
fn eq(&self, other: &CallingConvention) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for CallingConvention
impl Eq for CallingConvention
impl StructuralEq for CallingConvention
impl StructuralPartialEq for CallingConvention
Auto Trait Implementations
impl RefUnwindSafe for CallingConvention
impl Send for CallingConvention
impl Sync for CallingConvention
impl Unpin for CallingConvention
impl UnwindSafe for CallingConvention
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more