public class RegisterAllocationConfig extends Object
RegisterConfig as it only
returns registers specified by GraalOptions.RegisterPressure.| Modifier and Type | Class and Description |
|---|---|
static class |
RegisterAllocationConfig.AllocatableRegisters |
| Modifier and Type | Field and Description |
|---|---|
protected RegisterConfig |
registerConfig |
| Constructor and Description |
|---|
RegisterAllocationConfig(RegisterConfig registerConfig,
String[] allocationRestrictedTo) |
| Modifier and Type | Method and Description |
|---|---|
RegisterArray |
getAllocatableRegisters()
Gets the set of registers that can be used by the register allocator.
|
RegisterAllocationConfig.AllocatableRegisters |
getAllocatableRegisters(PlatformKind kind)
Gets the set of registers that can be used by the register allocator for a value of a
particular kind.
|
RegisterCategory |
getRegisterCategory(PlatformKind kind)
Gets the
RegisterCategory for the given PlatformKind. |
RegisterConfig |
getRegisterConfig() |
protected RegisterArray |
initAllocatable(RegisterArray registers) |
public RegisterAllocationConfig(RegisterConfig registerConfig,
String[] allocationRestrictedTo)
allocationRestrictedTo - if not null, register allocation will be restricted to
registers whose names appear in this arrayprotected RegisterArray initAllocatable(RegisterArray registers)
public RegisterAllocationConfig.AllocatableRegisters getAllocatableRegisters(PlatformKind kind)
null if there are no allocatable registers for the given kindpublic RegisterCategory getRegisterCategory(PlatformKind kind)
RegisterCategory for the given PlatformKind.null if there are no allocatable registers for the given kindpublic RegisterArray getAllocatableRegisters()
public RegisterConfig getRegisterConfig()