public class BasicRegisterMapper extends RegisterMapper
| Constructor and Description |
|---|
BasicRegisterMapper(int countOldRegisters)
Creates a new OneToOneRegisterMapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMapping(int oldReg,
int newReg,
int category)
Adds a mapping to the mapper.
|
int |
getNewRegisterCount()
Gets the count of registers (really, the total register width, since
category width is counted) in the new namespace.
|
RegisterSpec |
map(RegisterSpec registerSpec) |
int |
oldToNew(int oldReg)
Returns the new-namespace mapping for the specified
old-namespace register, or -1 if one exists.
|
java.lang.String |
toHuman() |
map, mappublic BasicRegisterMapper(int countOldRegisters)
countOldRegisters - the number of registers in the old name spacepublic int getNewRegisterCount()
getNewRegisterCount in class RegisterMapperpublic RegisterSpec map(RegisterSpec registerSpec)
map in class RegisterMapperregisterSpec - old registerpublic int oldToNew(int oldReg)
oldReg - >= 0; old-namespace registerpublic java.lang.String toHuman()
public void addMapping(int oldReg,
int newReg,
int category)
oldReg - >= 0; old registernewReg - >= 0; new registercategory - 1..2; width of regCopyright © 2020. All Rights Reserved.