Struct llvm_ir::instruction::AtomicRMW
source · [−]pub struct AtomicRMW {
pub operation: RMWBinOp,
pub address: Operand,
pub value: Operand,
pub dest: Name,
pub volatile: bool,
pub atomicity: Atomicity,
pub debugloc: Option<DebugLoc>,
}
Expand description
Atomic read-modify-write. See LLVM 14 docs on the ‘atomicrmw’ instruction
Fields
operation: RMWBinOp
address: Operand
value: Operand
dest: Name
volatile: bool
atomicity: Atomicity
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<AtomicRMW> for Instruction
impl From<AtomicRMW> for Instruction
sourcefn from(inst: AtomicRMW) -> Instruction
fn from(inst: AtomicRMW) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for AtomicRMW
impl HasDebugLoc for AtomicRMW
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<AtomicRMW> for AtomicRMW
impl PartialEq<AtomicRMW> for AtomicRMW
sourceimpl TryFrom<Instruction> for AtomicRMW
impl TryFrom<Instruction> for AtomicRMW
impl StructuralPartialEq for AtomicRMW
Auto Trait Implementations
impl RefUnwindSafe for AtomicRMW
impl Send for AtomicRMW
impl Sync for AtomicRMW
impl Unpin for AtomicRMW
impl UnwindSafe for AtomicRMW
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