WASMCodeGenerator

amyc.backend.wasm.gen.WASMCodeGenerator$

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def cgExpr(expr: Expr)(using Context)(using LocalsHandler): Code

Generate code for an expression expr.

Generate code for an expression expr.

Attributes

def cgFunction(fd: FunDef, result: Option[result])(using Context)(using ModuleHandler): Function

Generate code for a function in module 'owner'

Generate code for a function in module 'owner'

Attributes

def cgModule(moduleDef: ModuleDef)(using Context)(using ModuleHandler): List[Function]

Attributes

def matchAndBind(pat: Pattern)(using Context)(using LocalsHandler): Code

Checks if a value matches a pattern. Assumes value is on top of stack (and CONSUMES it) Returns the code to check the value

Checks if a value matches a pattern. Assumes value is on top of stack (and CONSUMES it) Returns the code to check the value

Attributes

override def run(program: Program)(using Context): Module

Attributes

Definition Classes

Inherited methods

def andThen[G](thenn: Pipeline[Module, G]): Pipeline[F, G]

Attributes

Inherited from:
Pipeline

Concrete fields

override val name: String