Enum llvm::Attribute
[−]
[src]
pub enum Attribute {
ZExt,
SExt,
NoReturn,
InReg,
StructRet,
NoUnwind,
NoAlias,
ByVal,
Nest,
ReadNone,
ReadOnly,
NoInline,
AlwaysInline,
OptimizeForSize,
StackProtect,
StackProtectReq,
Alignment,
NoCapture,
NoRedZone,
NoImplicitFloat,
Naked,
InlineHint,
StackAlignment,
ReturnsTwice,
UWTable,
NonLazyBind,
}These indicate how you want arguments / functions to be handled.
Variants
ZExtZero-extended before or after call.
SExtSign-extended before or after call.
NoReturnMark the function as not returning.
InRegForce argument to be passed in register.
StructRetHidden pointer to structure to return.
NoUnwindFunction doesn't unwind stack.
NoAliasConsider to not alias after call.
ByValPass structure by value.
NestNested function static chain.
ReadNoneFunction doesn't access memory.
ReadOnlyFunction only reads from memory.
NoInlineNever inline this function.
AlwaysInlineAlways inline this function.
OptimizeForSizeOptimize this function for size.
StackProtectStack protection.
StackProtectReqStack protection required.
AlignmentAlignment of parameter (5 bits) stored as log2 of alignment with +1 bias 0 means unaligned (different from align(1)).
NoCaptureFunction creates no aliases of pointer.
NoRedZoneDisable redzone.
NoImplicitFloatDisable implicit float instructions.
NakedNaked function.
InlineHintThe source language has marked this function as inline.
StackAlignmentAlignment of stack for function (3 bits) stored as log2 of alignment with +1 bias 0 means unaligned (different from alignstack=(1)).
ReturnsTwiceThis function returns twice.
UWTableFunction must be in unwind table.
NonLazyBindFunction is called early/often, so lazy binding isn't effective.
Trait Implementations
impl From<LLVMAttribute> for Attribute[src]
fn from(attr: LLVMAttribute) -> Attribute
Performs the conversion.
Derived Implementations
impl Debug for Attribute[src]
impl PartialEq for Attribute[src]
fn eq(&self, __arg_0: &Attribute) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for Attribute[src]
impl Clone for Attribute[src]
fn clone(&self) -> Attribute
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more