Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DominatorTree ¶
type DominatorTree struct {
// contains filtered or unexported fields
}
func NewBlockDominatorTree ¶
func NewBlockDominatorTree(cfg *CFG) *DominatorTree
func (DominatorTree) BlockCFG ¶
func (v DominatorTree) BlockCFG() *CFG
func (DominatorTree) NodeForBlock ¶
func (v DominatorTree) NodeForBlock(b *ssa.Block) *DominatorTreeNode
return nil if unfound
func (DominatorTree) Nodes ¶
func (v DominatorTree) Nodes() []*DominatorTreeNode
func (DominatorTree) SaveImage ¶
func (v DominatorTree) SaveImage(filename string) error
Warning: will overwrite images. Always uses svg. Requires `dot` command from the graphviz package be available.
func (DominatorTree) String ¶
func (v DominatorTree) String() string
type DominatorTreeNode ¶
type DominatorTreeNode struct {
// contains filtered or unexported fields
}
"strict" refers to strict dominators.
func (*DominatorTreeNode) DominatedBy ¶
func (v *DominatorTreeNode) DominatedBy(node *DominatorTreeNode, strict bool) bool
func (*DominatorTreeNode) Dominators ¶
func (v *DominatorTreeNode) Dominators(strict bool) []*DominatorTreeNode
func (DominatorTreeNode) ImmediateDominator ¶
func (v DominatorTreeNode) ImmediateDominator() *DominatorTreeNode
Returns nil for entry node
func (DominatorTreeNode) String ¶
func (v DominatorTreeNode) String() string
Click to show internal directories.
Click to hide internal directories.