Enum rustc_codegen_llvm::llvm_::ffi::AttributeKind
source · #[repr(C)]
pub enum AttributeKind {
Show 40 variants
AlwaysInline,
ByVal,
Cold,
InlineHint,
MinSize,
Naked,
NoAlias,
NoCapture,
NoInline,
NonNull,
NoRedZone,
NoReturn,
NoUnwind,
OptimizeForSize,
ReadOnly,
SExt,
StructRet,
UWTable,
ZExt,
InReg,
SanitizeThread,
SanitizeAddress,
SanitizeMemory,
NonLazyBind,
OptimizeNone,
ReturnsTwice,
ReadNone,
InaccessibleMemOnly,
SanitizeHWAddress,
WillReturn,
StackProtectReq,
StackProtectStrong,
StackProtect,
NoUndef,
SanitizeMemTag,
NoCfCheck,
ShadowCallStack,
AllocSize,
AllocatedPointer,
AllocAlign,
}
Expand description
Matches LLVMRustAttribute in LLVMWrapper.h Semantically a subset of the C++ enum llvm::Attribute::AttrKind, though it is not ABI compatible (since it’s a C++ enum)
Variants
AlwaysInline
ByVal
Cold
InlineHint
MinSize
Naked
NoAlias
NoCapture
NoInline
NonNull
NoRedZone
NoReturn
NoUnwind
OptimizeForSize
ReadOnly
SExt
StructRet
UWTable
ZExt
InReg
SanitizeThread
SanitizeAddress
SanitizeMemory
NonLazyBind
OptimizeNone
ReturnsTwice
ReadNone
InaccessibleMemOnly
SanitizeHWAddress
WillReturn
StackProtectReq
StackProtectStrong
StackProtect
NoUndef
SanitizeMemTag
NoCfCheck
ShadowCallStack
AllocSize
AllocatedPointer
AllocAlign
Implementations
sourceimpl AttributeKind
impl AttributeKind
sourcepub fn create_attr(self, llcx: &Context) -> &Attribute
pub fn create_attr(self, llcx: &Context) -> &Attribute
Create an LLVM Attribute with no associated value.
Trait Implementations
sourceimpl Clone for AttributeKind
impl Clone for AttributeKind
sourcefn clone(&self) -> AttributeKind
fn clone(&self) -> AttributeKind
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 moresourceimpl Debug for AttributeKind
impl Debug for AttributeKind
impl Copy for AttributeKind
Auto Trait Implementations
impl RefUnwindSafe for AttributeKind
impl Send for AttributeKind
impl Sync for AttributeKind
impl Unpin for AttributeKind
impl UnwindSafe for AttributeKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
AlwaysInline
: 0 bytesByVal
: 0 bytesCold
: 0 bytesInlineHint
: 0 bytesMinSize
: 0 bytesNaked
: 0 bytesNoAlias
: 0 bytesNoCapture
: 0 bytesNoInline
: 0 bytesNonNull
: 0 bytesNoRedZone
: 0 bytesNoReturn
: 0 bytesNoUnwind
: 0 bytesOptimizeForSize
: 0 bytesReadOnly
: 0 bytesSExt
: 0 bytesStructRet
: 0 bytesUWTable
: 0 bytesZExt
: 0 bytesInReg
: 0 bytesSanitizeThread
: 0 bytesSanitizeAddress
: 0 bytesSanitizeMemory
: 0 bytesNonLazyBind
: 0 bytesOptimizeNone
: 0 bytesReturnsTwice
: 0 bytesReadNone
: 0 bytesInaccessibleMemOnly
: 0 bytesSanitizeHWAddress
: 0 bytesWillReturn
: 0 bytesStackProtectReq
: 0 bytesStackProtectStrong
: 0 bytesStackProtect
: 0 bytesNoUndef
: 0 bytesSanitizeMemTag
: 0 bytesNoCfCheck
: 0 bytesShadowCallStack
: 0 bytesAllocSize
: 0 bytesAllocatedPointer
: 0 bytesAllocAlign
: 0 bytes