xform2

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(fn func(ir2.Iter), options ...Option) int

Register an xform function

func SetArch

func SetArch(a Arch)

func Transform

func Transform(pass Pass, fn *ir2.Func)

Types

type Arch

type Arch interface {
	XformTags() []Tag
}

type Option

type Option func(d *desc)

func OnOp

func OnOp(op ir2.Op) Option

func Once added in v0.1.4

func Once() Option

func OnlyPass

func OnlyPass(p Pass) Option

func Passes

func Passes(p ...Pass) Option

func Tags

func Tags(t ...Tag) Option

type Pass

type Pass int
const (
	Elaboration Pass = iota
	Simplification
	Lowering
	Legalize
	CleanUp

	NumPasses
)

type Tag

type Tag uint8
const (
	Invalid Tag = iota
	HasFramePointer

	NumTags
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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