|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Optimizer
public class Optimizer
Optimizer holds all the data structures needed for the optimization process.
Constructor Summary | |
---|---|
Optimizer()
|
Method Summary | |
---|---|
static void |
addGate(OperationExpression gate,
LvalExpression holdingExpression)
Associates the specified gate with it's circuit representation (String) in this map. |
static boolean |
containsGateNegGate(OperationExpression gate)
Returns true if optimizer contains a mapping for the specified gate. |
static UnaryOpExpression |
getReference(OperationExpression gate)
Returns an UnaryOpExpression containing the ID_OP or NOT_OP to the specified gate. |
static boolean |
isUsed(Statement s)
returns true is s is needed to calculate the output pins of the circuit. |
static void |
putUsedStatement(Statement s)
Adds an AssignmentStatement to the usage data structure. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Optimizer()
Method Detail |
---|
public static void addGate(OperationExpression gate, LvalExpression holdingExpression)
gate
- the gate (OperationExpression) to be added.holdingExpression
- the lValexpression that hold the result of the gate.public static boolean containsGateNegGate(OperationExpression gate)
gate
- the gate (OperationExpression) whose presence in the optimizer is to be tested.
public static UnaryOpExpression getReference(OperationExpression gate)
gate
- The circuit representation (String) of the gate (OperatorExpression) whose reference it to be returned.
public static void putUsedStatement(Statement s)
s
- the AssignmentStatement to be added.public static boolean isUsed(Statement s)
s
- the tested statement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |