Search in sources :

Example 1 with SSALinearScan

use of org.graalvm.compiler.lir.alloc.lsra.ssa.SSALinearScan in project graal by oracle.

the class LinearScanPhase method run.

@Override
protected void run(TargetDescription target, LIRGenerationResult lirGenRes, AllocationContext context) {
    MoveFactory spillMoveFactory = context.spillMoveFactory;
    RegisterAllocationConfig registerAllocationConfig = context.registerAllocationConfig;
    final LinearScan allocator = new SSALinearScan(target, lirGenRes, spillMoveFactory, registerAllocationConfig, lirGenRes.getLIR().linearScanOrder(), neverSpillConstants);
    allocator.allocate(target, lirGenRes, context);
}
Also used : SSALinearScan(org.graalvm.compiler.lir.alloc.lsra.ssa.SSALinearScan) RegisterAllocationConfig(org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig) SSALinearScan(org.graalvm.compiler.lir.alloc.lsra.ssa.SSALinearScan) MoveFactory(org.graalvm.compiler.lir.gen.LIRGeneratorTool.MoveFactory)

Aggregations

RegisterAllocationConfig (org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig)1 SSALinearScan (org.graalvm.compiler.lir.alloc.lsra.ssa.SSALinearScan)1 MoveFactory (org.graalvm.compiler.lir.gen.LIRGeneratorTool.MoveFactory)1