Documentation ¶
Index ¶
Constants ¶
View Source
const AnyOpcode = isa.OpcodeMask + 1
Variables ¶
This section is empty.
Functions ¶
func DepthFirst ¶
DepthFirst performs a depth-first visitation
Types ¶
type Branches ¶
type Branches interface { Node Prologue() Instructions ThenBranch() Node ElseBranch() Node Epilogue() Node }
Branches represent a branching junction
type Instructions ¶
type Instructions interface { Node Set(isa.Instructions) }
Instructions represent a series of non-branching instructions
type Mapper ¶
type Mapper func(isa.Instructions) isa.Instructions
Mapper maps one set of instructions to another
type Node ¶
type Node interface {
Code() isa.Instructions
}
A Node is returned when a Branch analysis is performed
func Branch ¶
func Branch(code isa.Instructions) Node
Branch splits linear instructions into a tree of conditional branches
Click to show internal directories.
Click to hide internal directories.