regalloc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

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

func MakeAllocator

func MakeAllocator(avail uint64) Allocator

func (*Allocator) Alloc

func (a *Allocator) Alloc(t abi.Type) (r reg.R, ok bool)

func (*Allocator) AllocSpecific

func (a *Allocator) AllocSpecific(t abi.Type, r reg.R)

func (*Allocator) Allocated

func (a *Allocator) Allocated(t abi.Type, r reg.R) bool

Allocated indicates if we can hang onto a register returned by ISA ops.

func (*Allocator) AssertNoneAllocated

func (a *Allocator) AssertNoneAllocated()

func (*Allocator) Free

func (a *Allocator) Free(t abi.Type, r reg.R)

func (*Allocator) FreeAll

func (a *Allocator) FreeAll()

func (*Allocator) SetAllocated

func (a *Allocator) SetAllocated(t abi.Type, r reg.R)

type Iterator

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

func (*Iterator) Init

func (iter *Iterator) Init(paramRegs [2][]reg.R, paramTypes []abi.Type) (stackCount int32)

func (*Iterator) InitRegs

func (iter *Iterator) InitRegs(paramRegs [2][]reg.R)

func (*Iterator) IterBackward

func (iter *Iterator) IterBackward(cat abi.Category) (r reg.R)

func (*Iterator) IterForward

func (iter *Iterator) IterForward(cat abi.Category) (r reg.R)

type Map

type Map [64]uint8

func (*Map) Clear

func (m *Map) Clear(cat abi.Category, r reg.R)

func (*Map) Get

func (m *Map) Get(cat abi.Category, r reg.R) (index int)

func (*Map) Set

func (m *Map) Set(cat abi.Category, r reg.R, index int)

Jump to

Keyboard shortcuts

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