Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnitGraph ¶
type UnitGraph struct { Func *ssa.Function UnitChain []ssa.Instruction UnitToSuccs map[ssa.Instruction][]ssa.Instruction UnitToPreds map[ssa.Instruction][]ssa.Instruction Heads []ssa.Instruction Tails []ssa.Instruction }
UnitGraph represents a graph based on ssa unit
func (*UnitGraph) GetPreds ¶
func (g *UnitGraph) GetPreds(inst ssa.Instruction) []ssa.Instruction
GetPreds returns Preds of an instruction
func (*UnitGraph) GetSuccs ¶
func (g *UnitGraph) GetSuccs(inst ssa.Instruction) []ssa.Instruction
GetSuccs returns Succs of an instruction
Click to show internal directories.
Click to hide internal directories.