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. Protected

Package Members

  1. package pretty

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: BlockType, 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: BlockType, 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: BlockType, instr: Vector[Inst]) extends Inst with Product with Serializable
  37. sealed abstract class MemoryInst extends Inst

    A memory loading/storing instruction.

  38. sealed abstract class Miscop extends Inst

    A miscellanous operator.

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

    A relation operator.

  41. sealed abstract class SatConvertop extends Miscop

    A saturating conversion operator.

  42. sealed abstract class Section extends AnyRef
  43. sealed abstract class StoreInst extends MemoryInst

    A memory storing instruction.

  44. sealed abstract class StoreNInst extends MemoryInst

    A sized memory storing instruction.

  45. sealed abstract class Testop extends Inst

    A test operator.

  46. sealed abstract class Unop extends Inst

    A unary operator.

  47. 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. case object Drop extends Inst with Product with Serializable
  6. object ExternalKind
  7. object Import
  8. object Load
  9. object LoadN
  10. case object MemoryGrow extends Inst with Product with Serializable
  11. object MemoryInst
  12. case object MemorySize extends Inst with Product with Serializable
  13. object Miscop
  14. object Module extends Serializable
  15. case object Nop extends Inst with Product with Serializable
  16. object Relop
  17. case object Return extends Inst with Product with Serializable
  18. object SatConvertop
  19. object Section
  20. case object Select extends Inst with Product with Serializable
  21. object Store
  22. object StoreN
  23. object Testop
  24. object Unop
  25. case object Unreachable extends Inst with Product with Serializable
  26. object VarInst
  27. object f32

    ValType.F32 related instruction.

  28. object f64

    ValType.F64 related instruction.

  29. object i32

    ValType.I32 related instruction.

  30. object i64

    ValType.I64 related instruction.

Inherited from AnyRef

Inherited from Any

Category

Groups instructions by category to be handled uniformly.

Ungrouped