pub fn make_const(
ty: impl IntoArg<PrimType>,
value: impl Into<ConstValue>,
) -> Result<PrimExpr>Expand description
Create the constant value of the type ty, broadcast over the lanes of a vector type.
ยงErrors
Returns a ValueError if value is out of the range of ty, or an InternalError if it
is negative for an unsigned ty or ty is not a type of constants, such as void.