Enum moore_svlog::hir::BuiltinCall[][src]

pub enum BuiltinCall<'a> {
    Unsupported,
    Clog2(NodeId),
    Bits(&'a TypeOrExpr<'a>),
    Signed(NodeId),
    Unsigned(NodeId),
    CountOnes(&'a Expr<'a>),
    OneHot(&'a Expr<'a>),
    OneHot0(&'a Expr<'a>),
    IsUnknown(&'a Expr<'a>),
    ArrayDim(ArrayDim, &'a Expr<'a>, Option<&'a Expr<'a>>),
}
Expand description

The different builtin function calls that are supported.

Variants

Unsupported

An unsupported builtin. Will yield constant 0.

Clog2(NodeId)

A call to the ceil-log2 function $clog2(x).

Tuple Fields of Clog2

0: NodeId
Bits(&'a TypeOrExpr<'a>)

A call to the storage size function $bits(x).

Tuple Fields of Bits

0: &'a TypeOrExpr<'a>
Signed(NodeId)

A call to the convert-to-signed function $signed(x).

Tuple Fields of Signed

0: NodeId
Unsigned(NodeId)

A call to the convert-to-unsigned function $unsigned(x).

Tuple Fields of Unsigned

0: NodeId
CountOnes(&'a Expr<'a>)

A call to the $countones(x) function.

Tuple Fields of CountOnes

0: &'a Expr<'a>
OneHot(&'a Expr<'a>)

A call to the $onehot(x) function.

Tuple Fields of OneHot

0: &'a Expr<'a>
OneHot0(&'a Expr<'a>)

A call to the $onehot0(x) function.

Tuple Fields of OneHot0

0: &'a Expr<'a>
IsUnknown(&'a Expr<'a>)

A call to the $isunknown(x) function.

Tuple Fields of IsUnknown

0: &'a Expr<'a>
ArrayDim(ArrayDim, &'a Expr<'a>, Option<&'a Expr<'a>>)

A call to one of the array dimension functions.

Tuple Fields of ArrayDim

0: ArrayDim1: &'a Expr<'a>2: Option<&'a Expr<'a>>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.