package syntax
Instructions in this package are grouped by category as described in the specification.
- Source
- package.scala
- Grouped
- Alphabetic
- By Inheritance
- syntax
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed abstract class AConst extends Inst
A value-type constant.
- sealed abstract class Binop extends Inst
A binary operator.
- case class Block(tpe: BlockType, instr: Vector[Inst]) extends Inst with Product with Serializable
- case class Br(lbl: LabelIdx) extends Inst with Product with Serializable
- case class BrIf(lbl: LabelIdx) extends Inst with Product with Serializable
- case class BrTable(table: Vector[LabelIdx], lbl: LabelIdx) extends Inst with Product with Serializable
- case class Call(funcidx: FuncIdx) extends Inst with Product with Serializable
- case class CallIndirect(typeidx: TypeIdx) extends Inst with Product with Serializable
- sealed abstract class Convertop extends Inst
A conversion operator.
- case class Data(data: MemIdx, offset: Expr, init: BitVector) extends Product with Serializable
- case class Elem(table: TableIdx, offset: Expr, init: Vector[FuncIdx]) extends Product with Serializable
- case class Export(fieldName: String, kind: ExternalKind, index: Int) extends Product with Serializable
- type Expr = Vector[Inst]
- sealed trait ExternalKind extends AnyRef
- sealed abstract class FBinop extends Binop
A floating-point binary operator.
- sealed abstract class FRelop extends Relop
A floating-point relation operator.
- sealed abstract class FUnop extends Unop
A floating-point unary operator.
- case class Func(tpe: TypeIdx, locals: Vector[ValType], body: Expr) extends Product with Serializable
- case class FuncBody(locals: Vector[LocalEntry], code: Expr) extends Product with Serializable
- case class Global(tpe: GlobalType, init: Expr) extends Product with Serializable
- case class GlobalGet(idx: LocalIdx) extends VarInst with Product with Serializable
- case class GlobalSet(idx: LocalIdx) extends VarInst with Product with Serializable
- sealed abstract class IBinop extends Binop
A integer binary operator.
- sealed abstract class IRelop extends Relop
A integer relation operator.
- sealed abstract class ITestop extends Testop
A integer test operator.
- sealed abstract class IUnop extends Unop
A integer unary operator.
- case class If(tpe: BlockType, thenInstr: Vector[Inst], elseInstr: Vector[Inst]) extends Inst with Product with Serializable
- sealed trait Import extends AnyRef
- sealed abstract class Inst extends AnyRef
- sealed abstract class LoadInst extends MemoryInst
A memory loading instruction.
- sealed abstract class LoadNInst extends MemoryInst
A sized memory loading instruction.
- case class LocalEntry(count: Int, tpe: ValType) extends Product with Serializable
- case class LocalGet(idx: LocalIdx) extends VarInst with Product with Serializable
- case class LocalSet(idx: LocalIdx) extends VarInst with Product with Serializable
- case class LocalTee(idx: LocalIdx) extends VarInst with Product with Serializable
- case class Loop(tpe: BlockType, instr: Vector[Inst]) extends Inst with Product with Serializable
- sealed abstract class MemoryInst extends Inst
A memory loading/storing instruction.
- sealed abstract class Miscop extends Inst
A miscellanous operator.
- case class Module(types: Vector[FuncType], funcs: Vector[Func], tables: Vector[TableType], mems: Vector[MemType], globals: Vector[Global], elem: Vector[Elem], data: Vector[Data], start: Option[FuncIdx], imports: Vector[Import], exports: Vector[Export]) extends Product with Serializable
- sealed abstract class Relop extends Inst
A relation operator.
- sealed abstract class SatConvertop extends Miscop
A saturating conversion operator.
- sealed abstract class Section extends AnyRef
- sealed abstract class StoreInst extends MemoryInst
A memory storing instruction.
- sealed abstract class StoreNInst extends MemoryInst
A sized memory storing instruction.
- sealed abstract class Testop extends Inst
A test operator.
- sealed abstract class Unop extends Inst
A unary operator.
- sealed abstract class VarInst extends Inst
A variable instruction.
Value Members
- val EmptyModule: Module
- object AConst
- object Binop
- object Convertop
- case object Drop extends Inst with Product with Serializable
- object ExternalKind
- object Import
- object Load
- object LoadN
- case object MemoryGrow extends Inst with Product with Serializable
- object MemoryInst
- case object MemorySize extends Inst with Product with Serializable
- object Miscop
- object Module extends Serializable
- case object Nop extends Inst with Product with Serializable
- object Relop
- case object Return extends Inst with Product with Serializable
- object SatConvertop
- object Section
- case object Select extends Inst with Product with Serializable
- object Store
- object StoreN
- object Testop
- object Unop
- case object Unreachable extends Inst with Product with Serializable
- object VarInst
- object f32
ValType.F32 related instruction.
- object f64
ValType.F64 related instruction.
- object i32
ValType.I32 related instruction.
- object i64
ValType.I64 related instruction.
Inherited from AnyRef
Inherited from Any
Category
Groups instructions by category to be handled uniformly.