codegen

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetArch

func SetArch(a Arch)

Types

type Arch

type Arch interface {
	AssembleGlobal(glob *ir.Value) *asm.Global
	AssembleInstr(list []*asm.Instr, val *ir.Value) []*asm.Instr
	AssembleBlockOp(list []*asm.Instr, blk *ir.Block, flip bool) []*asm.Instr
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(mod *ir.Package) *Generator

func (*Generator) Func

func (gen *Generator) Func(fn *ir.Func) *asm.Func

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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