Struct llvm_ir::terminator::IndirectBr
source · [−]pub struct IndirectBr {
pub operand: Operand,
pub possible_dests: Vec<Name>,
pub debugloc: Option<DebugLoc>,
}
Expand description
Fields
operand: Operand
Address to jump to (must be derived from a Constant::BlockAddress
)
possible_dests: Vec<Name>
The “full set of possible destinations” which the IndirectBr
could jump to.
These are Name
s of
BasicBlock
s in the current function;
IndirectBr
cannot be used to jump between functions.
debugloc: Option<DebugLoc>
Trait Implementations
sourceimpl Clone for IndirectBr
impl Clone for IndirectBr
sourcefn clone(&self) -> IndirectBr
fn clone(&self) -> IndirectBr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IndirectBr
impl Debug for IndirectBr
sourceimpl Display for IndirectBr
impl Display for IndirectBr
sourceimpl From<IndirectBr> for Terminator
impl From<IndirectBr> for Terminator
sourcefn from(term: IndirectBr) -> Terminator
fn from(term: IndirectBr) -> Terminator
Converts to this type from the input type.
sourceimpl HasDebugLoc for IndirectBr
impl HasDebugLoc for IndirectBr
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<IndirectBr> for IndirectBr
impl PartialEq<IndirectBr> for IndirectBr
sourcefn eq(&self, other: &IndirectBr) -> bool
fn eq(&self, other: &IndirectBr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<Terminator> for IndirectBr
impl TryFrom<Terminator> for IndirectBr
impl StructuralPartialEq for IndirectBr
Auto Trait Implementations
impl RefUnwindSafe for IndirectBr
impl Send for IndirectBr
impl Sync for IndirectBr
impl Unpin for IndirectBr
impl UnwindSafe for IndirectBr
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