reg

package
v0.0.0-...-ecbd380 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArgRegs []Reg
View Source
var RevSavedRegs []Reg
View Source
var SavedRegs []Reg
View Source
var TempRegs []Reg

Functions

func SetArch

func SetArch(arch Arch)

Types

type Arch

type Arch interface {
	RegNames() []string
	SavedRegs() []Reg
	TempRegs() []Reg
	ArgRegs() []Reg
	SpecialRegs() map[string]Reg
}

type Reg

type Reg uint
const (
	None Reg = 0
)
var FP Reg
var GP Reg
var RA Reg
var SP Reg

func FromRegNum

func FromRegNum(num int) Reg

func (Reg) CanAffinity

func (reg Reg) CanAffinity() bool

func (Reg) IsArgReg

func (reg Reg) IsArgReg() bool

func (Reg) IsMany

func (reg Reg) IsMany() bool

func (Reg) IsSavedReg

func (reg Reg) IsSavedReg() bool

func (Reg) IsSpecialReg

func (reg Reg) IsSpecialReg() bool

func (Reg) NumRegs

func (reg Reg) NumRegs() int

func (Reg) RegNumber

func (reg Reg) RegNumber() int

func (Reg) RegNumbers

func (reg Reg) RegNumbers() []int

func (Reg) String

func (reg Reg) String() string

Jump to

Keyboard shortcuts

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