Struct rustc_llvm::Attribute
[−]
[src]
pub struct Attribute {
// some fields omitted
}Methods
impl Attribute
const ZExt: Attribute = $ BitFlags {
bits : $ value }
const SExt: Attribute = $ BitFlags {
bits : $ value }
const NoReturn: Attribute = $ BitFlags {
bits : $ value }
const InReg: Attribute = $ BitFlags {
bits : $ value }
const StructRet: Attribute = $ BitFlags {
bits : $ value }
const NoUnwind: Attribute = $ BitFlags {
bits : $ value }
const NoAlias: Attribute = $ BitFlags {
bits : $ value }
const ByVal: Attribute = $ BitFlags {
bits : $ value }
const Nest: Attribute = $ BitFlags {
bits : $ value }
const ReadNone: Attribute = $ BitFlags {
bits : $ value }
const ReadOnly: Attribute = $ BitFlags {
bits : $ value }
const NoInline: Attribute = $ BitFlags {
bits : $ value }
const AlwaysInline: Attribute = $ BitFlags {
bits : $ value }
const OptimizeForSize: Attribute = $ BitFlags {
bits : $ value }
const StackProtect: Attribute = $ BitFlags {
bits : $ value }
const StackProtectReq: Attribute = $ BitFlags {
bits : $ value }
const Alignment: Attribute = $ BitFlags {
bits : $ value }
const NoCapture: Attribute = $ BitFlags {
bits : $ value }
const NoRedZone: Attribute = $ BitFlags {
bits : $ value }
const NoImplicitFloat: Attribute = $ BitFlags {
bits : $ value }
const Naked: Attribute = $ BitFlags {
bits : $ value }
const InlineHint: Attribute = $ BitFlags {
bits : $ value }
const Stack: Attribute = $ BitFlags {
bits : $ value }
const ReturnsTwice: Attribute = $ BitFlags {
bits : $ value }
const UWTable: Attribute = $ BitFlags {
bits : $ value }
const NonLazyBind: Attribute = $ BitFlags {
bits : $ value }
fn empty() -> Attribute
Returns an empty set of flags.
fn all() -> Attribute
Returns the set containing all flags.
fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
fn from_bits(bits: u32) -> Option<Attribute>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u32) -> Attribute
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true if no flags are currently stored.
fn is_all(&self) -> bool
Returns true if all flags are currently set.
fn intersects(&self, other: Attribute) -> bool
Returns true if there are flags common to both self and other.
fn contains(&self, other: Attribute) -> bool
Returns true all of the flags in other are contained within self.
fn insert(&mut self, other: Attribute)
Inserts the specified flags in-place.
fn remove(&mut self, other: Attribute)
Removes the specified flags in-place.
fn toggle(&mut self, other: Attribute)
Toggles the specified flags in-place.