/// Create a new constant value.
Create a new constant value.
Create a new constant value .
pub fn new(builder: &mut Builder, width: usize, value: &BigInt) -> ConstantOp {
        builder.build_with(|builder, state| {
            let ty = get_integer_type(builder.cx, width);
            state.add_attribute("value", get_integer_attr_big(ty, value));
            state.add_result(ty);
        })
    }
pub fn new ( builder : & mut Builder , width : usize , value : & BigInt ) -> ConstantOp { builder . build_with ( | builder , state | { let ty = get_integer_type ( builder . cx , width ) ; state . add_attribute ( " " , get_integer_attr_big ( ty , value ) ) ; state . add_result ( ty ) ; } ) }
Create a new constant value.
Create a new constant value .
builder
&mut Builder
width
usize
value
&BigInt