regalloc

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: BSD-3-Clause Imports: 4 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 (*Allocator) Alloc

func (a *Allocator) Alloc(cat gen.RegCategory) (reg regs.R, ok bool)

func (*Allocator) AllocSpecific

func (a *Allocator) AllocSpecific(cat gen.RegCategory, reg regs.R)

func (*Allocator) Allocated

func (a *Allocator) Allocated(cat gen.RegCategory, reg regs.R) bool

func (*Allocator) AssertNoneAllocated

func (a *Allocator) AssertNoneAllocated()

func (*Allocator) Free

func (a *Allocator) Free(cat gen.RegCategory, reg regs.R)

func (*Allocator) FreeAll

func (a *Allocator) FreeAll()

func (*Allocator) Init

func (a *Allocator) Init(avail uint64)

func (*Allocator) SetAllocated

func (a *Allocator) SetAllocated(cat gen.RegCategory, reg regs.R)

type Iterator

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

func (*Iterator) Init

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

func (*Iterator) InitRegs

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

func (*Iterator) IterBackward

func (iter *Iterator) IterBackward(cat gen.RegCategory) (reg regs.R)

func (*Iterator) IterForward

func (iter *Iterator) IterForward(cat gen.RegCategory) (reg regs.R)

type Map

type Map [64]uint8

func (*Map) Clear

func (m *Map) Clear(cat gen.RegCategory, reg regs.R)

func (*Map) Get

func (m *Map) Get(cat gen.RegCategory, reg regs.R) (index int)

func (*Map) Set

func (m *Map) Set(cat gen.RegCategory, reg regs.R, index int)

Jump to

Keyboard shortcuts

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