|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.RegisterSet scale.backend.xyz.XyzRegisterSet
public class XyzRegisterSet
This class describes the register set of the Xyz architecture.
$Id: XyzRegisterSet.java,v 1.1 2006-11-16 17:28:19 burrill Exp $
Copyright 2005 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
This class represents the register set for the specific architecture. Most of the methods below generate a "not implemented error". These must be replaced with code that is specific to the register set of the architecture. The other methods may need to be modified. Use the register set classes from the other architectures to help you understand how to make changes for your architecture.
RegisterSet
,
AlphaRegisterSet
,
SparcRegisterSet
,
PPCRegisterSet
Field Summary | |
---|---|
static int |
SP_REG
|
Fields inherited from class scale.backend.RegisterSet |
---|
ADRREG, AFIREG, AIREG, checkMask, CNTREG, DBLEREG, FIREG, FLTREG, INTREG, nextRegister, PAIRREG, QUADREG, RDREG, registers, sizeMask, SPCREG, typeMask |
Constructor Summary | |
---|---|
XyzRegisterSet()
|
Method Summary | |
---|---|
short[] |
getCalleeSaves()
Return the callee saves registers. |
short[] |
getCalleeUses()
Return the callee uses registers. |
short[] |
getPreferredOrder()
Return a mapping from an order index to a real register number. |
int |
numAllocatableRegisters()
Return the number of unique registers that can hold programmer values. |
java.lang.String |
registerName(int reg)
Convert a register number into its assembly language form. |
int |
registerSize(int reg)
Return the size of the register in addressable memory units. |
int |
tempRegisterType(Type type,
long bs)
Return the register type with the size information added. |
boolean |
useContiguous()
Return true if virtual registers, that require more than one real register, must be allocated to contiguous real registers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SP_REG
Constructor Detail |
---|
public XyzRegisterSet()
Method Detail |
---|
public java.lang.String registerName(int reg)
RegisterSet
registerName
in class RegisterSet
public short[] getPreferredOrder()
RegisterSet
getPreferredOrder
in class RegisterSet
public boolean useContiguous()
RegisterSet
useContiguous
in class RegisterSet
public int registerSize(int reg)
RegisterSet
registerSize
in class RegisterSet
public short[] getCalleeSaves()
RegisterSet
getCalleeSaves
in class RegisterSet
public short[] getCalleeUses()
RegisterSet
getCalleeUses
in class RegisterSet
public int numAllocatableRegisters()
RegisterSet
numAllocatableRegisters
in class RegisterSet
public int tempRegisterType(Type type, long bs)
RegisterSet
tempRegisterType
in class RegisterSet
type
- is the type requiredbs
- is the size required
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |