comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/phases/LowLevelLowTierPhase.java @ 19208:81358265e0e0

Make LowLevelLowTierPhase generic.
author Josef Eisl <josef.eisl@jku.at>
date Fri, 06 Feb 2015 19:43:08 +0100
parents 7f827cc5e4f7
children 1e3b5204776f
comparison
equal deleted inserted replaced
19207:06a0ca03236f 19208:81358265e0e0
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.lir.phases; 23 package com.oracle.graal.lir.phases;
24 24
25 import com.oracle.graal.api.code.*; 25 import com.oracle.graal.api.code.*;
26 import com.oracle.graal.compiler.common.cfg.*;
26 import com.oracle.graal.lir.gen.*; 27 import com.oracle.graal.lir.gen.*;
27 28
28 public abstract class LowLevelLowTierPhase extends LowLevelPhase<LowLevelLowTierPhase.Context> { 29 public abstract class LowLevelLowTierPhase<B extends AbstractBlock<B>> extends LowLevelPhase<LowLevelLowTierPhase.Context<B>> {
29 30
30 public static final class Context { 31 public static final class Context<B extends AbstractBlock<B>> {
31 } 32 }
32 33
33 @Override 34 @Override
34 protected void run(TargetDescription target, LIRGenerationResult lirGenRes, Context context) { 35 protected void run(TargetDescription target, LIRGenerationResult lirGenRes, Context<B> context) {
35 run(target, lirGenRes); 36 run(target, lirGenRes);
36 } 37 }
37 38
38 protected abstract void run(TargetDescription target, LIRGenerationResult lirGenRes); 39 protected abstract void run(TargetDescription target, LIRGenerationResult lirGenRes);
39 40