Struct llvm_ir::instruction::CmpXchg
source · [−]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>,
}Expand description
Atomic compare and exchange. See LLVM 14 docs on the ‘cmpxchg’ instruction
Fields
address: Operandexpected: Operandreplacement: Operanddest: Namevolatile: boolatomicity: AtomicityThis includes the “success” MemoryOrdering
failure_memory_ordering: MemoryOrderingThis is the “failure” MemoryOrdering
weak: booldebugloc: Option<DebugLoc>Trait Implementations
sourceimpl From<CmpXchg> for Instruction
impl From<CmpXchg> for Instruction
sourcefn from(inst: CmpXchg) -> Instruction
fn from(inst: CmpXchg) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for CmpXchg
impl HasDebugLoc for CmpXchg
sourcefn get_debug_loc(&self) -> &Option<DebugLoc>
fn get_debug_loc(&self) -> &Option<DebugLoc>
Returns the DebugLoc associated with the given Instruction,
Terminator, GlobalVariable, or Function; or None if it doesn’t
have a DebugLoc. Read more
sourceimpl PartialEq<CmpXchg> for CmpXchg
impl PartialEq<CmpXchg> for CmpXchg
sourceimpl TryFrom<Instruction> for CmpXchg
impl TryFrom<Instruction> for CmpXchg
impl StructuralPartialEq for CmpXchg
Auto Trait Implementations
impl RefUnwindSafe for CmpXchg
impl Send for CmpXchg
impl Sync for CmpXchg
impl Unpin for CmpXchg
impl UnwindSafe for CmpXchg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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