| Modifier and Type | Field and Description |
|---|---|
| private IntList | oldToNew
indexed by old register, containing new name |
| private int | runningCountNewRegisters
running count of used registers in new namespace |
| Access | Constructor and Description |
|---|---|
| public | BasicRegisterMapper(int
the number of registers in the old name space countOldRegisters)Creates a new OneToOneRegisterMapper. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addMapping(int
>= 0; old register>= 0; new register1..2; width of regAdds a mapping to the mapper. |
| public int | getNewRegisterCount()
Implements abstract org. |
| public RegisterSpec | map(RegisterSpec
old register registerSpec)Implements abstract org. |
| public int | Returns: new-namespace register or -1 if none>= 0; old-namespace registerReturns the new-namespace mapping for the specified old-namespace register, or -1 if one exists. |
| public String |
| oldToNew | back to summary |
|---|---|
| private IntList oldToNew indexed by old register, containing new name | |
| runningCountNewRegisters | back to summary |
|---|---|
| private int runningCountNewRegisters running count of used registers in new namespace | |
| BasicRegisterMapper | back to summary |
|---|---|
| public BasicRegisterMapper(int countOldRegisters) Creates a new OneToOneRegisterMapper.
| |
| addMapping | back to summary |
|---|---|
| public void addMapping(int oldReg, int newReg, int category) Adds a mapping to the mapper. If oldReg has already been mapped, overwrites previous mapping with new mapping.
| |
| getNewRegisterCount | back to summary |
|---|---|
| public int getNewRegisterCount() Implements abstract org. Doc from org. Gets the count of registers (really, the total register width, since category width is counted) in the new namespace.
| |
| map | back to summary |
|---|---|
| public RegisterSpec map(RegisterSpec registerSpec) Implements abstract org.
| |
| oldToNew | back to summary |
|---|---|
| public int oldToNew(int oldReg) Returns the new-namespace mapping for the specified old-namespace register, or -1 if one exists.
| |
| toHuman | back to summary |
|---|---|
| public String toHuman() | |