obj

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package obj defines ixgo's shared low-level instruction and register protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallKind

type CallKind uint8

type Opcode

type Opcode uint16
const (
	OpInvalid Opcode = iota
	OpAlloc
	OpPhi
	OpCall
	OpBinOp
	OpUnOp
	OpChangeInterface
	OpChangeType
	OpConvert
	OpMakeInterface
	OpMakeClosure
	OpMakeChan
	OpMakeMap
	OpMakeSlice
	OpSlice
	OpFieldAddr
	OpField
	OpIndexAddr
	OpIndex
	OpLookup
	OpSelect
	OpSliceToArrayPointer
	OpRange
	OpNext
	OpTypeAssert
	OpExtract
	OpJump
	OpIf
	OpReturn
	OpRunDefers
	OpPanic
	OpGo
	OpDefer
	OpSend
	OpStore
	OpMapUpdate
	OpDebugRef
)

func (Opcode) String

func (op Opcode) String() string

type OperandKind

type OperandKind uint8
const (
	OperandAbsent OperandKind = iota
	OperandRegister
	OperandFunction
	OperandBuiltin
	OperandUnallocated
)

Operand kinds describe the origin of an instruction input. Absent and unallocated operands use register -1.

type Register

type Register int

type Source

type Source struct {
	Position token.Pos
	Text     string
	Function string
	Opcode   uint16
}

func (Source) FunctionName

func (s Source) FunctionName() string

func (Source) Pos

func (s Source) Pos() token.Pos

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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