pub enum InstructionImms {
Show 40 variants AtomicCas { opcode: Opcode, flags: MemFlags, }, AtomicRmw { opcode: Opcode, flags: MemFlags, op: AtomicRmwOp, }, Binary { opcode: Opcode, }, BinaryImm64 { opcode: Opcode, imm: Imm64, }, BinaryImm8 { opcode: Opcode, imm: Uimm8, }, Branch { opcode: Opcode, destination: Block, }, BranchTable { opcode: Opcode, destination: Block, table: JumpTable, }, Call { opcode: Opcode, func_ref: FuncRef, }, CallIndirect { opcode: Opcode, sig_ref: SigRef, }, CondTrap { opcode: Opcode, code: TrapCode, }, DynamicStackLoad { opcode: Opcode, dynamic_stack_slot: DynamicStackSlot, }, DynamicStackStore { opcode: Opcode, dynamic_stack_slot: DynamicStackSlot, }, FloatCompare { opcode: Opcode, cond: FloatCC, }, FuncAddr { opcode: Opcode, func_ref: FuncRef, }, HeapAddr { opcode: Opcode, heap: Heap, offset: Uimm32, size: Uimm8, }, HeapLoad { opcode: Opcode, heap_imm: HeapImm, }, HeapStore { opcode: Opcode, heap_imm: HeapImm, }, IntAddTrap { opcode: Opcode, code: TrapCode, }, IntCompare { opcode: Opcode, cond: IntCC, }, IntCompareImm { opcode: Opcode, cond: IntCC, imm: Imm64, }, Jump { opcode: Opcode, destination: Block, }, Load { opcode: Opcode, flags: MemFlags, offset: Offset32, }, LoadNoOffset { opcode: Opcode, flags: MemFlags, }, MultiAry { opcode: Opcode, }, NullAry { opcode: Opcode, }, Shuffle { opcode: Opcode, imm: Immediate, }, StackLoad { opcode: Opcode, stack_slot: StackSlot, offset: Offset32, }, StackStore { opcode: Opcode, stack_slot: StackSlot, offset: Offset32, }, Store { opcode: Opcode, flags: MemFlags, offset: Offset32, }, StoreNoOffset { opcode: Opcode, flags: MemFlags, }, TableAddr { opcode: Opcode, table: Table, offset: Offset32, }, Ternary { opcode: Opcode, }, TernaryImm8 { opcode: Opcode, imm: Uimm8, }, Trap { opcode: Opcode, code: TrapCode, }, Unary { opcode: Opcode, }, UnaryConst { opcode: Opcode, constant_handle: Constant, }, UnaryGlobalValue { opcode: Opcode, global_value: GlobalValue, }, UnaryIeee32 { opcode: Opcode, imm: Ieee32, }, UnaryIeee64 { opcode: Opcode, imm: Ieee64, }, UnaryImm { opcode: Opcode, imm: Imm64, },
}

Variants§

§

AtomicCas

Fields

§opcode: Opcode
§flags: MemFlags
§

AtomicRmw

Fields

§opcode: Opcode
§flags: MemFlags
§

Binary

Fields

§opcode: Opcode
§

BinaryImm64

Fields

§opcode: Opcode
§imm: Imm64
§

BinaryImm8

Fields

§opcode: Opcode
§imm: Uimm8
§

Branch

Fields

§opcode: Opcode
§destination: Block
§

BranchTable

Fields

§opcode: Opcode
§destination: Block
§

Call

Fields

§opcode: Opcode
§func_ref: FuncRef
§

CallIndirect

Fields

§opcode: Opcode
§sig_ref: SigRef
§

CondTrap

Fields

§opcode: Opcode
§

DynamicStackLoad

Fields

§opcode: Opcode
§dynamic_stack_slot: DynamicStackSlot
§

DynamicStackStore

Fields

§opcode: Opcode
§dynamic_stack_slot: DynamicStackSlot
§

FloatCompare

Fields

§opcode: Opcode
§cond: FloatCC
§

FuncAddr

Fields

§opcode: Opcode
§func_ref: FuncRef
§

HeapAddr

Fields

§opcode: Opcode
§heap: Heap
§offset: Uimm32
§size: Uimm8
§

HeapLoad

Fields

§opcode: Opcode
§heap_imm: HeapImm
§

HeapStore

Fields

§opcode: Opcode
§heap_imm: HeapImm
§

IntAddTrap

Fields

§opcode: Opcode
§

IntCompare

Fields

§opcode: Opcode
§cond: IntCC
§

IntCompareImm

Fields

§opcode: Opcode
§cond: IntCC
§imm: Imm64
§

Jump

Fields

§opcode: Opcode
§destination: Block
§

Load

Fields

§opcode: Opcode
§flags: MemFlags
§offset: Offset32
§

LoadNoOffset

Fields

§opcode: Opcode
§flags: MemFlags
§

MultiAry

Fields

§opcode: Opcode
§

NullAry

Fields

§opcode: Opcode
§

Shuffle

Fields

§opcode: Opcode
§

StackLoad

Fields

§opcode: Opcode
§stack_slot: StackSlot
§offset: Offset32
§

StackStore

Fields

§opcode: Opcode
§stack_slot: StackSlot
§offset: Offset32
§

Store

Fields

§opcode: Opcode
§flags: MemFlags
§offset: Offset32
§

StoreNoOffset

Fields

§opcode: Opcode
§flags: MemFlags
§

TableAddr

Fields

§opcode: Opcode
§table: Table
§offset: Offset32
§

Ternary

Fields

§opcode: Opcode
§

TernaryImm8

Fields

§opcode: Opcode
§imm: Uimm8
§

Trap

Fields

§opcode: Opcode
§

Unary

Fields

§opcode: Opcode
§

UnaryConst

Fields

§opcode: Opcode
§constant_handle: Constant
§

UnaryGlobalValue

Fields

§opcode: Opcode
§global_value: GlobalValue
§

UnaryIeee32

Fields

§opcode: Opcode
§

UnaryIeee64

Fields

§opcode: Opcode
§

UnaryImm

Fields

§opcode: Opcode
§imm: Imm64

Implementations§

source§

impl InstructionImms

source

pub fn opcode(&self) -> Opcode

Get the opcode of this instruction.

source§

impl InstructionImms

source

pub fn with_args( &self, values: &[Value], value_list: &mut ValueListPool ) -> InstructionData

Convert an InstructionImms into an InstructionData by adding args.

Trait Implementations§

source§

impl Clone for InstructionImms

source§

fn clone(&self) -> InstructionImms

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 InstructionImms

source§

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

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

impl From<&InstructionData> for InstructionImms

source§

fn from(data: &InstructionData) -> InstructionImms

Convert an InstructionData into an InstructionImms.

source§

impl Hash for InstructionImms

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<InstructionImms> for InstructionImms

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for InstructionImms

source§

impl Eq for InstructionImms

source§

impl StructuralEq for InstructionImms

source§

impl StructuralPartialEq for InstructionImms

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere T: Hash + ?Sized,

§

default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64where H: Hash + ?Sized, B: BuildHasher,

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.