Enum llvm_ir::function::FunctionAttribute
source · pub enum FunctionAttribute {
Show 49 variants
AlignStack(u64),
AllocSize {
elt_size: u32,
num_elts: Option<u32>,
},
AlwaysInline,
Builtin,
Cold,
Convergent,
InaccessibleMemOnly,
InaccessibleMemOrArgMemOnly,
InlineHint,
JumpTable,
MinimizeSize,
Naked,
NoBuiltin,
NoCFCheck,
NoDuplicate,
NoFree,
NoImplicitFloat,
NoInline,
NonLazyBind,
NoRedZone,
NoReturn,
NoRecurse,
WillReturn,
ReturnsTwice,
NoSync,
NoUnwind,
OptForFuzzing,
OptNone,
OptSize,
ReadNone,
ReadOnly,
WriteOnly,
ArgMemOnly,
SafeStack,
SanitizeAddress,
SanitizeMemory,
SanitizeThread,
SanitizeHWAddress,
SanitizeMemTag,
ShadowCallStack,
SpeculativeLoadHardening,
Speculatable,
StackProtect,
StackProtectReq,
StackProtectStrong,
StrictFP,
UWTable,
StringAttribute {
kind: String,
value: String,
},
UnknownAttribute,
}
Expand description
Variants§
AlignStack(u64)
AllocSize
AlwaysInline
Builtin
Cold
Convergent
InaccessibleMemOnly
InaccessibleMemOrArgMemOnly
InlineHint
JumpTable
MinimizeSize
Naked
NoBuiltin
NoCFCheck
NoDuplicate
NoFree
NoImplicitFloat
NoInline
NonLazyBind
NoRedZone
NoReturn
NoRecurse
WillReturn
ReturnsTwice
NoSync
NoUnwind
OptForFuzzing
OptNone
OptSize
ReadNone
ReadOnly
WriteOnly
ArgMemOnly
SafeStack
SanitizeAddress
SanitizeMemory
SanitizeThread
SanitizeHWAddress
SanitizeMemTag
ShadowCallStack
SpeculativeLoadHardening
Speculatable
StackProtect
StackProtectReq
StackProtectStrong
StrictFP
UWTable
StringAttribute
UnknownAttribute
Trait Implementations§
source§impl Clone for FunctionAttribute
impl Clone for FunctionAttribute
source§fn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FunctionAttribute
impl Debug for FunctionAttribute
source§impl PartialEq for FunctionAttribute
impl PartialEq for FunctionAttribute
source§fn eq(&self, other: &FunctionAttribute) -> bool
fn eq(&self, other: &FunctionAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FunctionAttribute
impl StructuralPartialEq for FunctionAttribute
Auto Trait Implementations§
impl RefUnwindSafe for FunctionAttribute
impl Send for FunctionAttribute
impl Sync for FunctionAttribute
impl Unpin for FunctionAttribute
impl UnwindSafe for FunctionAttribute
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more