|
|||||||||
| 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.Instrs 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 Instrs generated by this factory. |
CFGrapher<Instr> |
getGrapherFor(InstrGroup.Type t)
Returns a CFGrapher that treats
InstrGroups of Type
t as single atomic elements. |
HMethod |
getMethod()
Returns the HMethod which corresponds to
Instrs generated by this factory. |
abstract Code |
getParent()
Returns the HCode to which all Instrs
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
InstrGroups of Type
t as single atomic elements. |
int |
hashCode()
|
abstract TempFactory |
tempFactory()
Returns the TempFactory to use for creating
Temps which are used as arguments to Instrs
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
Temps which are used as arguments to Instrs
generated by this factory.
public abstract Code getParent()
HCode to which all Instrs
generated by this factory belong.
public abstract Frame getFrame()
Frame which is associated with all
of the Instrs generated by this factory.
public HMethod getMethod()
HMethod which corresponds to
Instrs 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 Objectpublic int hashCode()
hashCode in class Objectpublic 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
InstrGroups of Type
t as single atomic elements.
public UseDefer<Instr> getUseDeferFor(InstrGroup.Type t)
UseDefer that treats
InstrGroups of Type
t as single atomic elements.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||