|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.Assem.InstrFactory
public abstract class InstrFactory
A InstrFactory
is responsible for generating
generic Assem.Instr
s used in code generation.
Constructor Summary | |
---|---|
InstrFactory()
|
Method Summary | |
---|---|
void |
addGroup(InstrGroup group)
Adds information from group to the
InstrGroup.Type -> CFGrapher mapping for this . |
abstract Frame |
getFrame()
Returns the Frame which is associated with all
of the Instr s generated by this factory. |
CFGrapher<Instr> |
getGrapherFor(InstrGroup.Type t)
Returns a CFGrapher that treats
InstrGroup s of Type
t as single atomic elements. |
HMethod |
getMethod()
Returns the HMethod which corresponds to
Instr s generated by this factory. |
abstract Code |
getParent()
Returns the HCode to which all Instr s
generated by this factory belong. |
Instr |
getTail()
|
abstract int |
getUniqueID()
Returns a unique ID number for each new Instr
generated by this factory. |
UseDefer<Instr> |
getUseDeferFor(InstrGroup.Type t)
Returns a UseDefer that treats
InstrGroup s of Type
t as single atomic elements. |
int |
hashCode()
|
abstract TempFactory |
tempFactory()
Returns the TempFactory to use for creating
Temp s which are used as arguments to Instr s
generated by this factory. |
String |
toString()
Returns a human-readable representation for this InstrFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstrFactory()
Method Detail |
---|
public Instr getTail()
public abstract TempFactory tempFactory()
TempFactory
to use for creating
Temp
s which are used as arguments to Instr
s
generated by this factory.
public abstract Code getParent()
HCode
to which all Instr
s
generated by this factory belong.
public abstract Frame getFrame()
Frame
which is associated with all
of the Instr
s generated by this factory.
public HMethod getMethod()
HMethod
which corresponds to
Instr
s generated by this factory.
HMethod
associated with this
, or null
if
no such HMethod
exists.
public abstract int getUniqueID()
Instr
generated by this factory.
public String toString()
InstrFactory
.
toString
in class Object
public int hashCode()
hashCode
in class Object
public void addGroup(InstrGroup group)
group
to the
InstrGroup.Type -> CFGrapher mapping for this
.
group
has had its entry and
exit fields assigned.
public CFGrapher<Instr> getGrapherFor(InstrGroup.Type t)
CFGrapher
that treats
InstrGroup
s of Type
t
as single atomic elements.
public UseDefer<Instr> getUseDeferFor(InstrGroup.Type t)
UseDefer
that treats
InstrGroup
s of Type
t
as single atomic elements.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |