Struct llvm_ir::instruction::Select
source · pub struct Select {
pub condition: Operand,
pub true_value: Operand,
pub false_value: Operand,
pub dest: Name,
pub debugloc: Option<DebugLoc>,
}
Expand description
Choose between two values depending on a condition. See LLVM 14 docs on the ‘select’ instruction
Fields§
§condition: Operand
§true_value: Operand
§false_value: Operand
§dest: Name
§debugloc: Option<DebugLoc>
Trait Implementations§
source§impl From<Select> for Instruction
impl From<Select> for Instruction
source§fn from(inst: Select) -> Instruction
fn from(inst: Select) -> Instruction
Converts to this type from the input type.
source§impl HasDebugLoc for Select
impl HasDebugLoc for Select
source§impl PartialEq for Select
impl PartialEq for Select
source§impl TryFrom<Instruction> for Select
impl TryFrom<Instruction> for Select
impl StructuralPartialEq for Select
Auto Trait Implementations§
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnwindSafe for Select
Blanket Implementations§
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