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 |
---|---|
static String |
ALL_REGISTERS |
private Register[] |
cachedRegisters |
private Map<PlatformKind.Key,RegisterAllocationConfig.AllocatableRegisters> |
categorized |
protected RegisterConfig |
registerConfig |
Constructor and Description |
---|
RegisterAllocationConfig(RegisterConfig registerConfig) |
Modifier and Type | Method and Description |
---|---|
protected RegisterAllocationConfig.AllocatableRegisters |
createAllocatableRegisters(Register[] registers) |
private static Register |
findRegister(String name,
Register[] all) |
Register[] |
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.
|
RegisterConfig |
getRegisterConfig() |
protected Register[] |
initAllocatable(Register[] registers) |
public static final String ALL_REGISTERS
protected final RegisterConfig registerConfig
private final Map<PlatformKind.Key,RegisterAllocationConfig.AllocatableRegisters> categorized
private Register[] cachedRegisters
public RegisterAllocationConfig(RegisterConfig registerConfig)
private static Register findRegister(String name, Register[] all)
protected Register[] initAllocatable(Register[] registers)
public RegisterAllocationConfig.AllocatableRegisters getAllocatableRegisters(PlatformKind kind)
protected RegisterAllocationConfig.AllocatableRegisters createAllocatableRegisters(Register[] registers)
public Register[] getAllocatableRegisters()
public RegisterConfig getRegisterConfig()