net.sf.farrago.fennel.calc
Class CalcProgramBuilder.RegisterSets
java.lang.Object
net.sf.farrago.fennel.calc.CalcProgramBuilder.RegisterSets
- Enclosing class:
- CalcProgramBuilder
protected class CalcProgramBuilder.RegisterSets
- extends Object
A place holder to hold defined register sets
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sets
private final List<List<CalcReg>> sets
CalcProgramBuilder.RegisterSets
CalcProgramBuilder.RegisterSets()
clear
public void clear()
getRegisterList
public final List<CalcReg> getRegisterList(CalcProgramBuilder.RegisterSetType registerSetType)
- Returns the list of registers of a given type.
- Parameters:
registerSetType
- Type of register
- Returns:
- list of registers of given type, never null
newRegister
public CalcReg newRegister(CalcProgramBuilder.OpType opType,
Object initValue,
CalcProgramBuilder.RegisterSetType registerType,
int storageBytes)
- Creates a register in a register set
- Parameters:
opType
- what type the value in the register should haveinitValue
- initial valueregisterType
- specifies in which register set the register
should live
- Returns:
- the newly created Register