ssaopt

package
v0.0.0-...-563a209 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2016 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstantFoldPass

type ConstantFoldPass struct {
}

func NewConstantFoldPass

func NewConstantFoldPass() *ConstantFoldPass

func (ConstantFoldPass) Run

func (v ConstantFoldPass) Run(mod *ssa.Module)

func (ConstantFoldPass) String

func (_ ConstantFoldPass) String() string

type Pass

type Pass interface {
	Run(*ssa.Module)
	String() string
}

type PassList

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

func NewPassList

func NewPassList(passes ...Pass) *PassList

func (*PassList) Add

func (v *PassList) Add(passes ...Pass)

func (PassList) Run

func (v PassList) Run(mod *ssa.Module)

Will panic if the module is invalid! Can be called on multiple modules in parallel.

func (PassList) String

func (v PassList) String() string

Jump to

Keyboard shortcuts

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