[][src]Enum gf::ai::opt::vn::ValueExpr

pub enum ValueExpr {
    Apply {
        op: BitVecOp,
        inputs: Vec<Var>,
    },
    Init {
        constant_value: BitVec,
    },
    Slice {
        inputs: Vec<Var>,
        output_size: VarSize,
        offset: VarSize,
    },
    Var(Var),
}

⚪ Expression for value numbering.

Variants

Apply

An APPLY expression.

Fields of Apply

op: BitVecOp

Operator.

inputs: Vec<Var>

Inputs.

Init

An INIT expression.

Fields of Init

constant_value: BitVec

Initializer constant.

Slice

A SLICE expression.

Fields of Slice

inputs: Vec<Var>

Inputs.

output_size: VarSize

Output size.

offset: VarSize

Slice offset.

Var(Var)

A variable.

Implementations

impl ValueExpr[src]

pub fn from_stmt(stmt: Stmt<'_>) -> Option<Self>[src]

Create a value expression from a sealed statement.

pub unsafe fn from_unsealed_stmt(
    module: &UnsealedModule,
    stmt: &UnsealedStmt
) -> Option<Self>
[src]

Create a value expression from an unsealed statement.

Errors

  • Panics if a referenced object does not exist.

Trait Implementations

impl Clone for ValueExpr[src]

impl Debug for ValueExpr[src]

impl Eq for ValueExpr[src]

impl Hash for ValueExpr[src]

impl PartialEq<ValueExpr> for ValueExpr[src]

impl StructuralEq for ValueExpr[src]

Auto Trait Implementations

impl RefUnwindSafe for ValueExpr

impl Send for ValueExpr

impl Sync for ValueExpr

impl Unpin for ValueExpr

impl UnwindSafe for ValueExpr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.