Struct llvm_ir::instruction::CmpXchg[][src]

pub struct CmpXchg {
    pub address: Operand,
    pub expected: Operand,
    pub replacement: Operand,
    pub dest: Name,
    pub volatile: bool,
    pub atomicity: Atomicity,
    pub failure_memory_ordering: MemoryOrdering,
    pub weak: bool,
    pub debugloc: Option<DebugLoc>,
}

Atomic compare and exchange. See LLVM 12 docs on the 'cmpxchg' instruction

Fields

address: Operandexpected: Operandreplacement: Operanddest: Namevolatile: boolatomicity: Atomicity

This includes the "success" MemoryOrdering

failure_memory_ordering: MemoryOrdering

This is the "failure" MemoryOrdering

weak: booldebugloc: Option<DebugLoc>

Trait Implementations

impl Clone for CmpXchg[src]

impl Debug for CmpXchg[src]

impl Display for CmpXchg[src]

impl From<CmpXchg> for Instruction[src]

impl HasDebugLoc for CmpXchg[src]

impl HasResult for CmpXchg[src]

impl PartialEq<CmpXchg> for CmpXchg[src]

impl StructuralPartialEq for CmpXchg[src]

impl TryFrom<Instruction> for CmpXchg[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Typed for CmpXchg[src]

Auto Trait Implementations

impl RefUnwindSafe for CmpXchg[src]

impl Send for CmpXchg[src]

impl Sync for CmpXchg[src]

impl Unpin for CmpXchg[src]

impl UnwindSafe for CmpXchg[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.