Enum Instr

Source
pub enum Instr {
Show 187 variants I32Const(i32), I64Const(i64), F32Const(f32), F64Const(f64), IEqz(IntWidth), IEq(IntWidth), INe(IntWidth), ILt(IntWidth, Signedness), IGt(IntWidth, Signedness), ILe(IntWidth, Signedness), IGe(IntWidth, Signedness), FEq(FloatWidth), FNe(FloatWidth), FLt(FloatWidth), FGt(FloatWidth), FLe(FloatWidth), FGe(FloatWidth), IClz(IntWidth), ICtz(IntWidth), IPopCnt(IntWidth), IAdd(IntWidth), ISub(IntWidth), IMul(IntWidth), IDiv(IntWidth, Signedness), IRem(IntWidth, Signedness), IAnd(IntWidth), IOr(IntWidth), IXor(IntWidth), IShl(IntWidth), IShr(IntWidth, Signedness), IRotL(IntWidth), IRotR(IntWidth), FAbs(FloatWidth), FNeg(FloatWidth), FCeil(FloatWidth), FFloor(FloatWidth), FTrunc(FloatWidth), FNearest(FloatWidth), FSqrt(FloatWidth), FAdd(FloatWidth), FSub(FloatWidth), FMul(FloatWidth), FDiv(FloatWidth), FMin(FloatWidth), FMax(FloatWidth), FCopySign(FloatWidth), I32WrapI64, ITruncF(IntWidth, FloatWidth, Signedness), I64ExtendI32(Signedness), I64Extend32S, IExtend8S(IntWidth), IExtend16S(IntWidth), FConvertI(FloatWidth, IntWidth, Signedness), F32DemoteF64, F64PromoteF32, IReinterpretF(IntWidth), FReinterpretI(FloatWidth), ITruncSatF(IntWidth, FloatWidth, Signedness), V128Const(i128), V128Not, V128And, V128AndNot, V128Or, V128XOr, V128BitSelect, V128AnyTrue, VI8x16Shuffle([LaneIdx; 16]), VI18x16Swizzle, VSplat(Shape), VI8x16ExtractLane(Signedness, LaneIdx), VI16x8ExtractLane(Signedness, LaneIdx), VI32x4ExtractLane(LaneIdx), VI64x2ExtractLane(LaneIdx), VFExtractLane(FShape, LaneIdx), VReplaceLane(Shape, LaneIdx), VIEq(IShape), VINe(IShape), VILt(IShape, Signedness), VIGt(IShape, Signedness), VILe(IShape, Signedness), VIGe(IShape, Signedness), VI64x2Lt, VI64x2Gt, VI64x2Le, VI64x2Ge, VFEq(FShape), VFNe(FShape), VFLt(FShape), VFGt(FShape), VFLe(FShape), VFGe(FShape), VIAbs(IShape), VINeg(IShape), VI8x16PopCnt, VI16x8Q15MulrSat, VI32x4DotI16x8, VFAbs(FShape), VFNeg(FShape), VFSqrt(FShape), VFCeil(FShape), VFFloor(FShape), VFTrunc(FShape), VFNearest(FShape), VIAllTrue(IShape), VIBitMask(IShape), VI8x16NarrowI16x8(Signedness), VI16x8NarrowI32x4(Signedness), VI16x8ExtendI8x16(Half, Signedness), VI32x4ExtendI16x8(Half, Signedness), VI64x2ExtendI32x4(Half, Signedness), VIShl(IShape), VIShr(IShape, Signedness), VIAdd(IShape), VISub(IShape), VIMin(IShape, Signedness), VIMax(IShape, Signedness), VIAddSat(IShape, Signedness), VISubSat(IShape, Signedness), VIMul(IShape), VIAvgr(IShape), VIExtMul(IShape, Half, Signedness), VIExtAddPairwise(IShape, Signedness), VFAdd(FShape), VFSub(FShape), VFMul(FShape), VFDiv(FShape), VFMin(FShape), VFMax(FShape), VFPMin(FShape), VFPMax(FShape), VI32x4TruncSatF32x4(Signedness), VI32x4TruncSatF64x2Zero(Signedness), VI32x4ConvertI32x4(Signedness), VF32x4DemoteF64x2Zero, VF64x2ConvertLowI32x4(Signedness), VF64x2PromoteLowI32x4, RefNull(RefType), RefIsNull, RefFunc(FuncIdx), Drop, Select(Option<Vec<ValType>>), LocalGet(LocalIdx), LocalSet(LocalIdx), LocalTee(LocalIdx), GlobalGet(GlobalIdx), GlobalSet(GlobalIdx), TableGet(TableIdx), TableSet(TableIdx), TableSize(TableIdx), TableGrow(TableIdx), TableFill(TableIdx), TableCopy { source: TableIdx, destination: TableIdx, }, TableInit(TableIdx, ElemIdx), ElemDrop(ElemIdx), Load(NumOrVecType, MemArg), Store(NumOrVecType, MemArg), Load8(NumType, Signedness, MemArg), Load16(NumType, Signedness, MemArg), Load32(Signedness, MemArg), Store8(NumType, MemArg), Store16(NumType, MemArg), Store32(MemArg), V128Load8x8(Signedness, MemArg), V128Load16x4(Signedness, MemArg), V128Load32x2(Signedness, MemArg), V128Load32Zero(MemArg), V128Load64Zero(MemArg), V128LoadSplat(VectorLoadShape, MemArg), V128LoadLane(VectorLoadShape, MemArg, LaneIdx), V128StoreLane(VectorLoadShape, MemArg, LaneIdx), MemorySize, MemoryGrow, MemoryFill, MemoryCopy, MemoryInit(DataIdx), DataDrop(DataIdx), Nop, Unreachable, Block(BlockType, Vec<Instr>), Loop(BlockType, Vec<Instr>), If(BlockType, Vec<Instr>, Vec<Instr>), Br(LabelIdx), BrIf(LabelIdx), BrTable(Vec<LabelIdx>, LabelIdx), Return, Call(FuncIdx), CallIndirect(TableIdx, TypeIdx),
}

Variants§

§

I32Const(i32)

§

I64Const(i64)

§

F32Const(f32)

§

F64Const(f64)

§

IEqz(IntWidth)

§

IEq(IntWidth)

§

INe(IntWidth)

§

ILt(IntWidth, Signedness)

§

IGt(IntWidth, Signedness)

§

ILe(IntWidth, Signedness)

§

IGe(IntWidth, Signedness)

§

FEq(FloatWidth)

§

FNe(FloatWidth)

§

FLt(FloatWidth)

§

FGt(FloatWidth)

§

FLe(FloatWidth)

§

FGe(FloatWidth)

§

IClz(IntWidth)

§

ICtz(IntWidth)

§

IPopCnt(IntWidth)

§

IAdd(IntWidth)

§

ISub(IntWidth)

§

IMul(IntWidth)

§

IDiv(IntWidth, Signedness)

§

IRem(IntWidth, Signedness)

§

IAnd(IntWidth)

§

IOr(IntWidth)

§

IXor(IntWidth)

§

IShl(IntWidth)

§

IShr(IntWidth, Signedness)

§

IRotL(IntWidth)

§

IRotR(IntWidth)

§

FAbs(FloatWidth)

§

FNeg(FloatWidth)

§

FCeil(FloatWidth)

§

FFloor(FloatWidth)

§

FTrunc(FloatWidth)

§

FNearest(FloatWidth)

§

FSqrt(FloatWidth)

§

FAdd(FloatWidth)

§

FSub(FloatWidth)

§

FMul(FloatWidth)

§

FDiv(FloatWidth)

§

FMin(FloatWidth)

§

FMax(FloatWidth)

§

FCopySign(FloatWidth)

§

I32WrapI64

§

ITruncF(IntWidth, FloatWidth, Signedness)

§

I64ExtendI32(Signedness)

§

I64Extend32S

§

IExtend8S(IntWidth)

§

IExtend16S(IntWidth)

§

FConvertI(FloatWidth, IntWidth, Signedness)

§

F32DemoteF64

§

F64PromoteF32

§

IReinterpretF(IntWidth)

§

FReinterpretI(FloatWidth)

§

ITruncSatF(IntWidth, FloatWidth, Signedness)

§

V128Const(i128)

§

V128Not

§

V128And

§

V128AndNot

§

V128Or

§

V128XOr

§

V128BitSelect

§

V128AnyTrue

§

VI8x16Shuffle([LaneIdx; 16])

§

VI18x16Swizzle

§

VSplat(Shape)

§

VI8x16ExtractLane(Signedness, LaneIdx)

§

VI16x8ExtractLane(Signedness, LaneIdx)

§

VI32x4ExtractLane(LaneIdx)

§

VI64x2ExtractLane(LaneIdx)

§

VFExtractLane(FShape, LaneIdx)

§

VReplaceLane(Shape, LaneIdx)

§

VIEq(IShape)

§

VINe(IShape)

§

VILt(IShape, Signedness)

§

VIGt(IShape, Signedness)

§

VILe(IShape, Signedness)

§

VIGe(IShape, Signedness)

§

VI64x2Lt

§

VI64x2Gt

§

VI64x2Le

§

VI64x2Ge

§

VFEq(FShape)

§

VFNe(FShape)

§

VFLt(FShape)

§

VFGt(FShape)

§

VFLe(FShape)

§

VFGe(FShape)

§

VIAbs(IShape)

§

VINeg(IShape)

§

VI8x16PopCnt

§

VI16x8Q15MulrSat

§

VI32x4DotI16x8

§

VFAbs(FShape)

§

VFNeg(FShape)

§

VFSqrt(FShape)

§

VFCeil(FShape)

§

VFFloor(FShape)

§

VFTrunc(FShape)

§

VFNearest(FShape)

§

VIAllTrue(IShape)

§

VIBitMask(IShape)

§

VI8x16NarrowI16x8(Signedness)

§

VI16x8NarrowI32x4(Signedness)

§

VI16x8ExtendI8x16(Half, Signedness)

§

VI32x4ExtendI16x8(Half, Signedness)

§

VI64x2ExtendI32x4(Half, Signedness)

§

VIShl(IShape)

§

VIShr(IShape, Signedness)

§

VIAdd(IShape)

§

VISub(IShape)

§

VIMin(IShape, Signedness)

§

VIMax(IShape, Signedness)

§

VIAddSat(IShape, Signedness)

§

VISubSat(IShape, Signedness)

§

VIMul(IShape)

§

VIAvgr(IShape)

§

VIExtMul(IShape, Half, Signedness)

§

VIExtAddPairwise(IShape, Signedness)

§

VFAdd(FShape)

§

VFSub(FShape)

§

VFMul(FShape)

§

VFDiv(FShape)

§

VFMin(FShape)

§

VFMax(FShape)

§

VFPMin(FShape)

§

VFPMax(FShape)

§

VI32x4TruncSatF32x4(Signedness)

§

VI32x4TruncSatF64x2Zero(Signedness)

§

VI32x4ConvertI32x4(Signedness)

§

VF32x4DemoteF64x2Zero

§

VF64x2ConvertLowI32x4(Signedness)

§

VF64x2PromoteLowI32x4

§

RefNull(RefType)

§

RefIsNull

§

RefFunc(FuncIdx)

§

Drop

§

Select(Option<Vec<ValType>>)

§

LocalGet(LocalIdx)

§

LocalSet(LocalIdx)

§

LocalTee(LocalIdx)

§

GlobalGet(GlobalIdx)

§

GlobalSet(GlobalIdx)

§

TableGet(TableIdx)

§

TableSet(TableIdx)

§

TableSize(TableIdx)

§

TableGrow(TableIdx)

§

TableFill(TableIdx)

§

TableCopy

Fields

§source: TableIdx
§destination: TableIdx
§

TableInit(TableIdx, ElemIdx)

§

ElemDrop(ElemIdx)

§

Load(NumOrVecType, MemArg)

§

Store(NumOrVecType, MemArg)

§

Load8(NumType, Signedness, MemArg)

§

Load16(NumType, Signedness, MemArg)

§

Load32(Signedness, MemArg)

§

Store8(NumType, MemArg)

§

Store16(NumType, MemArg)

§

Store32(MemArg)

§

V128Load8x8(Signedness, MemArg)

§

V128Load16x4(Signedness, MemArg)

§

V128Load32x2(Signedness, MemArg)

§

V128Load32Zero(MemArg)

§

V128Load64Zero(MemArg)

§

V128LoadSplat(VectorLoadShape, MemArg)

§

V128LoadLane(VectorLoadShape, MemArg, LaneIdx)

§

V128StoreLane(VectorLoadShape, MemArg, LaneIdx)

§

MemorySize

§

MemoryGrow

§

MemoryFill

§

MemoryCopy

§

MemoryInit(DataIdx)

§

DataDrop(DataIdx)

§

Nop

§

Unreachable

§

Block(BlockType, Vec<Instr>)

§

Loop(BlockType, Vec<Instr>)

§

If(BlockType, Vec<Instr>, Vec<Instr>)

§

Br(LabelIdx)

§

BrIf(LabelIdx)

§

BrTable(Vec<LabelIdx>, LabelIdx)

§

Return

§

Call(FuncIdx)

§

CallIndirect(TableIdx, TypeIdx)

Trait Implementations§

Source§

impl Clone for Instr

Source§

fn clone(&self) -> Instr

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Instr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Instr

Source§

fn eq(&self, other: &Instr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Instr

Auto Trait Implementations§

§

impl Freeze for Instr

§

impl RefUnwindSafe for Instr

§

impl Send for Instr

§

impl Sync for Instr

§

impl Unpin for Instr

§

impl UnwindSafe for Instr

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T