Packages

p

swam

syntax

package syntax

Instructions in this package are grouped by category as described in the specification.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. syntax
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class AConst extends Inst

    A value-type constant.

  2. sealed abstract class Binop extends Inst

    A binary operator.

  3. case class Block(tpe: ResultType, instr: Vector[Inst]) extends Inst with Product with Serializable
  4. case class Br(lbl: LabelIdx) extends Inst with Product with Serializable
  5. case class BrIf(lbl: LabelIdx) extends Inst with Product with Serializable
  6. case class BrTable(table: Vector[LabelIdx], lbl: LabelIdx) extends Inst with Product with Serializable
  7. case class Call(funcidx: FuncIdx) extends Inst with Product with Serializable
  8. case class CallIndirect(typeidx: TypeIdx) extends Inst with Product with Serializable
  9. sealed abstract class Convertop extends Inst

    A conversion operator.

  10. case class Data(data: MemIdx, offset: Expr, init: BitVector) extends Product with Serializable
  11. case class Elem(table: TableIdx, offset: Expr, init: Vector[FuncIdx]) extends Product with Serializable
  12. case class Export(fieldName: String, kind: ExternalKind, index: Int) extends Product with Serializable
  13. type Expr = Vector[Inst]
  14. sealed trait ExternalKind extends AnyRef
  15. sealed abstract class FBinop extends Binop

    A floating-point binary operator.

  16. sealed abstract class FRelop extends Relop

    A floating-point relation operator.

  17. sealed abstract class FUnop extends Unop

    A floating-point unary operator.

  18. case class Func(tpe: TypeIdx, locals: Vector[ValType], body: Expr) extends Product with Serializable
  19. case class FuncBody(locals: Vector[LocalEntry], code: Expr) extends Product with Serializable
  20. case class Global(tpe: GlobalType, init: Expr) extends Product with Serializable
  21. case class GlobalGet(idx: LocalIdx) extends VarInst with Product with Serializable
  22. case class GlobalSet(idx: LocalIdx) extends VarInst with Product with Serializable
  23. sealed abstract class IBinop extends Binop

    A integer binary operator.

  24. sealed abstract class IRelop extends Relop

    A integer relation operator.

  25. sealed abstract class ITestop extends Testop

    A integer test operator.

  26. sealed abstract class IUnop extends Unop

    A integer unary operator.

  27. case class If(tpe: ResultType, thenInstr: Vector[Inst], elseInstr: Vector[Inst]) extends Inst with Product with Serializable
  28. sealed trait Import extends AnyRef
  29. sealed abstract class Inst extends AnyRef
  30. sealed abstract class LoadInst extends MemoryInst

    A memory loading instruction.

  31. sealed abstract class LoadNInst extends MemoryInst

    A sized memory loading instruction.

  32. case class LocalEntry(count: Int, tpe: ValType) extends Product with Serializable
  33. case class LocalGet(idx: LocalIdx) extends VarInst with Product with Serializable
  34. case class LocalSet(idx: LocalIdx) extends VarInst with Product with Serializable
  35. case class LocalTee(idx: LocalIdx) extends VarInst with Product with Serializable
  36. case class Loop(tpe: ResultType, instr: Vector[Inst]) extends Inst with Product with Serializable
  37. sealed abstract class MemoryInst extends Inst

    A memory loading/storing instruction.

  38. 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
  39. sealed abstract class Relop extends Inst

    A relation operator.

  40. sealed abstract class Section extends AnyRef
  41. sealed abstract class StoreInst extends MemoryInst

    A memory storing instruction.

  42. sealed abstract class StoreNInst extends MemoryInst

    A sized memory storing instruction.

  43. sealed abstract class Testop extends Inst

    A test operator.

  44. sealed abstract class Unop extends Inst

    A unary operator.

  45. sealed abstract class VarInst extends Inst

    A variable instruction.

Value Members

  1. val EmptyModule: Module
  2. object AConst
  3. object Binop
  4. object Convertop
  5. object Drop extends Inst with Product with Serializable
  6. object ExternalKind
  7. object Import
  8. object Load
  9. object LoadN
  10. object MemoryGrow extends Inst with Product with Serializable
  11. object MemoryInst
  12. object MemorySize extends Inst with Product with Serializable
  13. object Module extends Serializable
  14. object Nop extends Inst with Product with Serializable
  15. object Relop
  16. object Return extends Inst with Product with Serializable
  17. object Section
  18. object Select extends Inst with Product with Serializable
  19. object Store
  20. object StoreN
  21. object Testop
  22. object Unop
  23. object Unreachable extends Inst with Product with Serializable
  24. object VarInst
  25. object f32

    ValType.F32 related instruction.

  26. object f64

    ValType.F64 related instruction.

  27. object i32

    ValType.I32 related instruction.

  28. object i64

    ValType.I64 related instruction.

Inherited from AnyRef

Inherited from Any

Category

Groups instructions by category to be handled uniformly.

Ungrouped