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>,
}Expand description
Atomic compare and exchange. See LLVM 12 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
Performs the conversion.
Returns the DebugLoc associated with the given Instruction,
Terminator, GlobalVariable, or Function; or None if it doesn’t
have a DebugLoc. Read more
Auto Trait Implementations
impl RefUnwindSafe for CmpXchgimpl UnwindSafe for CmpXchgBlanket Implementations
Mutably borrows from an owned value. Read more