|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.DomFrontier
public class DomFrontier
DomFrontier
computes the dominance frontier of a
flowgraph-structured IR. The HCodeElement
s must implement
the harpoon.IR.Properties.CFGraphable
interface.
Constructor Summary | |
---|---|
DomFrontier(DomTree dt)
Creates a DomFrontier using a pre-existing
DomTree . |
|
DomFrontier(HCode hcode,
boolean isPost)
Creates a DomFrontier for the given
HCode using the default grapher; if
isPost is false creates the
dominance frontier; otherwise creates the postdominance
frontier. |
|
DomFrontier(HCode hcode,
CFGrapher grapher,
boolean isPost)
Creates a DomFrontier for the given
HCode using the given CFGrapher ; if
isPost is false creates the
dominance frontier; otherwise creates the postdominance
frontier. |
Method Summary | |
---|---|
HCodeElement[] |
df(HCodeElement n)
Return an array of HCodeElement s in the (post)dominance
frontier of n . |
Set |
dfS(HCodeElement n)
Return an immutable Set of HCodeElement s
in the (post)dominance frontier of n . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DomFrontier(DomTree dt)
DomFrontier
using a pre-existing
DomTree
.
public DomFrontier(HCode hcode, boolean isPost)
DomFrontier
for the given
HCode
using the default grapher; if
isPost
is false
creates the
dominance frontier; otherwise creates the postdominance
frontier.
public DomFrontier(HCode hcode, CFGrapher grapher, boolean isPost)
DomFrontier
for the given
HCode
using the given CFGrapher
; if
isPost
is false
creates the
dominance frontier; otherwise creates the postdominance
frontier.
Method Detail |
---|
public HCodeElement[] df(HCodeElement n)
HCodeElement
s in the (post)dominance
frontier of n
.
public Set dfS(HCodeElement n)
Set
of HCodeElement
s
in the (post)dominance frontier of n
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |