pub fn new(builder: &mut Builder, cond: Value, true_value: Value, false_value: Value) -> Self {
        builder.build_with(|_, state| {
            state.add_operand(cond);
            state.add_operand(true_value);
            state.add_operand(false_value);
            state.add_result(true_value.ty());
        })
    }
/// Create a new mux operation.
Create a new mux operation.
Create a new mux operation .
pub fn new(builder: &mut Builder, cond: Value, true_value: Value, false_value: Value) -> Self {
        builder.build_with(|_, state| {
            state.add_operand(cond);
            state.add_operand(true_value);
            state.add_operand(false_value);
            state.add_result(true_value.ty());
        })
    }
pub fn new ( builder : & mut Builder , cond : Value , true_value : Value , false_value : Value ) -> Self { builder . build_with ( | _ , state | { state . add_operand ( cond ) ; state . add_operand ( true_value ) ; state . add_operand ( false_value ) ; state . add_result ( true_value . ty ( ) ) ; } ) }
Create a new mux operation.
Create a new mux operation .
builder
&mut Builder
cond
Value
true_value
Value
false_value
Value
builder
&mut Builder
cond
Value
true_value
Value
false_value
Value