Struct llvm_ir::terminator::CondBr [−][src]
pub struct CondBr { pub condition: Operand, pub true_dest: Name, pub false_dest: Name, pub debugloc: Option<DebugLoc>, }
Expand description
See LLVM 12 docs on the ‘br’ instruction.
The LLVM ‘br’ instruction has both conditional and unconditional variants, which we separate – this is
the conditional variant, while the unconditional variant is Br
.
Fields
condition: Operand
The branch condition.
true_dest: Name
The Name
of the BasicBlock
destination if the condition
is true.
false_dest: Name
The Name
of the BasicBlock
destination if the condition
is false.
debugloc: Option<DebugLoc>
Trait Implementations
Performs the conversion.
Returns the DebugLoc
associated with the given Instruction
,
Terminator
, GlobalVariable
, or Function
; or None
if it doesn’t
have a DebugLoc
. Read more
Auto Trait Implementations
impl RefUnwindSafe for CondBr
impl UnwindSafe for CondBr
Blanket Implementations
Mutably borrows from an owned value. Read more