pub struct ConditionalBranchInstruction<'ctx>(/* private fields */);Expand description
Conditional Branch Instruction
Implementations§
Source§impl<'ctx> ConditionalBranchInstruction<'ctx>
impl<'ctx> ConditionalBranchInstruction<'ctx>
Sourcepub fn condition(&self) -> Operand<'ctx>
pub fn condition(&self) -> Operand<'ctx>
Get the condition operand used to determine which branch to take
Sourcepub fn then_block(&self) -> Block<'ctx>
pub fn then_block(&self) -> Block<'ctx>
Get the block taken when condition is satisfied (then block)
Sourcepub fn else_block(&self) -> Block<'ctx>
pub fn else_block(&self) -> Block<'ctx>
Get the block taken when condition is unsatisfied (else block)
Trait Implementations§
Source§impl<'ctx> AsInstruction<'ctx> for ConditionalBranchInstruction<'ctx>
impl<'ctx> AsInstruction<'ctx> for ConditionalBranchInstruction<'ctx>
fn as_instruction(&self) -> Instruction<'ctx>
Source§impl<'ctx> AsOperand<'ctx> for ConditionalBranchInstruction<'ctx>
impl<'ctx> AsOperand<'ctx> for ConditionalBranchInstruction<'ctx>
fn as_operand(&self) -> Operand<'ctx>
Source§impl<'ctx> Clone for ConditionalBranchInstruction<'ctx>
impl<'ctx> Clone for ConditionalBranchInstruction<'ctx>
Source§fn clone(&self) -> ConditionalBranchInstruction<'ctx>
fn clone(&self) -> ConditionalBranchInstruction<'ctx>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'ctx> Debug for ConditionalBranchInstruction<'ctx>
impl<'ctx> Debug for ConditionalBranchInstruction<'ctx>
Source§impl<'ctx> GetDebugMetadata<'ctx> for ConditionalBranchInstruction<'ctx>
impl<'ctx> GetDebugMetadata<'ctx> for ConditionalBranchInstruction<'ctx>
fn dbg_metadata(&self) -> Option<Metadata<'ctx>>
Source§impl<'ctx> Hash for ConditionalBranchInstruction<'ctx>
impl<'ctx> Hash for ConditionalBranchInstruction<'ctx>
Source§impl<'ctx> InstructionTrait<'ctx> for ConditionalBranchInstruction<'ctx>
impl<'ctx> InstructionTrait<'ctx> for ConditionalBranchInstruction<'ctx>
Source§fn parent_block(&self) -> Block<'ctx>
fn parent_block(&self) -> Block<'ctx>
Get the parent block
Source§fn parent_function(&self) -> Function<'ctx>
fn parent_function(&self) -> Function<'ctx>
Get the parent function
Source§fn prev_instruction(&self) -> Option<Instruction<'ctx>>
fn prev_instruction(&self) -> Option<Instruction<'ctx>>
Get the previous instruction of this one
Source§fn next_instruction(&self) -> Option<Instruction<'ctx>>
fn next_instruction(&self) -> Option<Instruction<'ctx>>
Get the next instruction of this one
Source§fn num_operands(&self) -> usize
fn num_operands(&self) -> usize
Get the number of operands used in this instruction
Source§fn iter_operands(&self) -> InstructionOperandIterator<'ctx>
fn iter_operands(&self) -> InstructionOperandIterator<'ctx>
Iterate all the operands of the instruction
Source§impl<'ctx> PartialEq for ConditionalBranchInstruction<'ctx>
impl<'ctx> PartialEq for ConditionalBranchInstruction<'ctx>
Source§fn eq(&self, other: &ConditionalBranchInstruction<'ctx>) -> bool
fn eq(&self, other: &ConditionalBranchInstruction<'ctx>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'ctx> ValueOpcode for ConditionalBranchInstruction<'ctx>
impl<'ctx> ValueOpcode for ConditionalBranchInstruction<'ctx>
impl<'ctx> Copy for ConditionalBranchInstruction<'ctx>
impl<'ctx> Eq for ConditionalBranchInstruction<'ctx>
impl<'ctx> InstructionDebugLoc for ConditionalBranchInstruction<'ctx>
impl<'ctx> Send for ConditionalBranchInstruction<'ctx>
impl<'ctx> StructuralPartialEq for ConditionalBranchInstruction<'ctx>
impl<'ctx> Sync for ConditionalBranchInstruction<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for ConditionalBranchInstruction<'ctx>
impl<'ctx> RefUnwindSafe for ConditionalBranchInstruction<'ctx>
impl<'ctx> Unpin for ConditionalBranchInstruction<'ctx>
impl<'ctx> UnwindSafe for ConditionalBranchInstruction<'ctx>
Blanket Implementations§
Source§impl<'ctx, V> AsGenericValue<'ctx> for Vwhere
V: ValueRef,
impl<'ctx, V> AsGenericValue<'ctx> for Vwhere
V: ValueRef,
fn as_generic_value(&self) -> GenericValue<'ctx>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more