Skip to main content

make_const

Function make_const 

Source
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.