statements

package
Version: v0.0.0-...-3f1fa26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSA_Rewrites_to_IR

func SSA_Rewrites_to_IR(rw SSA_Rewrites) IR

Types

type IR_AndThen

type IR_AndThen struct {
	*BaseIR
	Stmt1 IR
	Stmt2 IR
}

func NewIR_AndThen

func NewIR_AndThen(stmt1, stmt2 IR) *IR_AndThen

func (*IR_AndThen) AddToDataSection

func (i *IR_AndThen) AddToDataSection(ctx *IR_Context) error

func (*IR_AndThen) SSA_Transform

func (i *IR_AndThen) SSA_Transform(ctx *SSA_Context) IR

func (*IR_AndThen) String

func (i *IR_AndThen) String() string

type IR_ArrayAssignment

type IR_ArrayAssignment struct {
	*BaseIR
	Variable string
	Index    IRExpression
	Expr     IRExpression
}

func NewIR_ArrayAssignment

func NewIR_ArrayAssignment(variable string, index IRExpression, expr IRExpression) *IR_ArrayAssignment

func (*IR_ArrayAssignment) AddToDataSection

func (i *IR_ArrayAssignment) AddToDataSection(ctx *IR_Context) error

func (*IR_ArrayAssignment) SSA_Transform

func (i *IR_ArrayAssignment) SSA_Transform(ctx *SSA_Context) IR

func (*IR_ArrayAssignment) String

func (i *IR_ArrayAssignment) String() string

type IR_Assignment

type IR_Assignment struct {
	*BaseIR
	Variable string
	Expr     IRExpression
}

func NewIR_Assignment

func NewIR_Assignment(variable string, expr IRExpression) *IR_Assignment

func (*IR_Assignment) AddToDataSection

func (i *IR_Assignment) AddToDataSection(ctx *IR_Context) error

func (*IR_Assignment) SSA_Transform

func (i *IR_Assignment) SSA_Transform(ctx *SSA_Context) IR

func (*IR_Assignment) String

func (i *IR_Assignment) String() string

type IR_FunctionDef

type IR_FunctionDef struct {
	*BaseIR
	Name    string
	Expr    *expr.IR_Function
	Address int
}

func NewIR_FunctionDef

func NewIR_FunctionDef(name string, expr *expr.IR_Function) *IR_FunctionDef

func (*IR_FunctionDef) SSA_Transform

func (i *IR_FunctionDef) SSA_Transform(ctx *SSA_Context) IR

func (*IR_FunctionDef) String

func (i *IR_FunctionDef) String() string

type IR_If

type IR_If struct {
	*BaseIR
	Condition IRExpression
	Stmt1     IR
	Stmt2     IR
}

func NewIR_If

func NewIR_If(condition IRExpression, stmt1, stmt2 IR) *IR_If

func (*IR_If) SSA_Transform

func (i *IR_If) SSA_Transform(ctx *SSA_Context) IR

func (*IR_If) String

func (i *IR_If) String() string

type IR_Return

type IR_Return struct {
	*BaseIR
	Expr IRExpression
}

func NewIR_Return

func NewIR_Return(expr IRExpression) *IR_Return

func (*IR_Return) SSA_Transform

func (i *IR_Return) SSA_Transform(ctx *SSA_Context) IR

func (*IR_Return) String

func (i *IR_Return) String() string

type IR_While

type IR_While struct {
	*BaseIR
	Condition IRExpression
	Stmt      IR
}

func NewIR_While

func NewIR_While(condition IRExpression, stmt IR) *IR_While

func (*IR_While) AddToDataSection

func (i *IR_While) AddToDataSection(ctx *IR_Context) error

func (*IR_While) SSA_Transform

func (i *IR_While) SSA_Transform(ctx *SSA_Context) IR

func (*IR_While) String

func (i *IR_While) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL