public class LinearScanAssignLocationsPhase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected LinearScan |
allocator |
| Constructor and Description |
|---|
LinearScanAssignLocationsPhase(LinearScan allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context) |
void |
apply(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context,
boolean dumpLIR) |
protected LIRInstruction |
assignLocations(LIRInstruction inputOp)
Assigns the operand of an
LIRInstruction. |
protected Value |
colorLirOperand(LIRInstruction op,
Variable operand,
LIRInstruction.OperandMode mode)
Assigns the allocated location for an LIR instruction operand back into the instruction.
|
protected void |
run(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context) |
String |
toString() |
protected final LinearScan allocator
public LinearScanAssignLocationsPhase(LinearScan allocator)
protected void run(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context)
protected Value colorLirOperand(LIRInstruction op, Variable operand, LIRInstruction.OperandMode mode)
op - current LIRInstructionoperand - an LIR instruction operandmode - the usage mode for operand by the instructionprotected LIRInstruction assignLocations(LIRInstruction inputOp)
LIRInstruction.inputOp - The LIRInstruction that should be colored.LIRInstruction that should be emitted. A null return deletes the
instruction.public final void apply(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context)
public final void apply(TargetDescription target,
LIRGenerationResult lirGenRes,
AllocationPhase.AllocationContext context,
boolean dumpLIR)