Struct llvm_ir::instruction::Fence
source · [−]Expand description
Memory-ordering fence. See LLVM 14 docs on the ‘fence’ instruction
Fields
atomicity: Atomicity
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<Fence> for Instruction
impl From<Fence> for Instruction
sourcefn from(inst: Fence) -> Instruction
fn from(inst: Fence) -> Instruction
Converts to this type from the input type.
sourceimpl HasDebugLoc for Fence
impl HasDebugLoc for Fence
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<Fence> for Fence
impl PartialEq<Fence> for Fence
sourceimpl TryFrom<Instruction> for Fence
impl TryFrom<Instruction> for Fence
impl StructuralPartialEq for Fence
Auto Trait Implementations
impl RefUnwindSafe for Fence
impl Send for Fence
impl Sync for Fence
impl Unpin for Fence
impl UnwindSafe for Fence
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