pub enum Type {
I32,
I64,
F32,
F64,
V128,
FuncRef,
ExternRef,
TypedFuncRef {
nullable: bool,
sig_index: Signature,
},
}
Expand description
Types in waffle’s IR.
These types correspond to (a subset of) the primitive Wasm value types: integers, floats, SIMD vectors, and function references (optionally typed).
Every SSA value in a function body has a Type
, unless it is a
tuple (multi-value or zero-value result).
Variants§
I32
A 32-bit integer. Signedness is unspecified: individual operators specify how they handle sign.
I64
A 64-bit integer. Signedness is unspecified: individual operators specify how they handle sign.
F32
A 32-bit IEEE 754 floating point value. Semantics around NaNs are defined by individual operators; from the point of view of IR scaffolding, floating-point values are bags of bits.
F64
A 64-bit IEEE 754 floating point value. Semantics around NaNs are defined by individual operators; from the point of view of IR scaffolding, floating-point values are bags of bits.
V128
A 128-bit SIMD vector value. Lanes and lane types are specified by individual operators; from the point of view of IR scaffolding, SIMD vector values are bags of bits.
FuncRef
A function reference.
ExternRef
TypedFuncRef
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more