Struct llvm_ir::terminator::Br
source · [−]Expand description
See LLVM 14 docs on the ‘br’ instruction.
The LLVM ‘br’ instruction has both conditional and unconditional variants, which we separate – this is
the unconditional variant, while the conditional variant is CondBr
.
Fields
dest: Name
The Name
of the BasicBlock
destination.
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl From<Br> for Terminator
impl From<Br> for Terminator
sourcefn from(term: Br) -> Terminator
fn from(term: Br) -> Terminator
Converts to this type from the input type.
sourceimpl HasDebugLoc for Br
impl HasDebugLoc for Br
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<Br> for Br
impl PartialEq<Br> for Br
sourceimpl TryFrom<Terminator> for Br
impl TryFrom<Terminator> for Br
impl StructuralPartialEq for Br
Auto Trait Implementations
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