comparison graal/GraalCompiler/src/com/sun/c1x/ir/CompareOp.java @ 2587:51ebe5f0516f

changed NegateOp, more Op2 changes (generic inputValuesDo impl)
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 05 May 2011 15:01:34 +0200
parents 421da5f53b5e
children bd17ac598c6e
comparison
equal deleted inserted replaced
2586:421da5f53b5e 2587:51ebe5f0516f
30 /** 30 /**
31 * The {@code CompareOp} instruction represents comparisons such as equals, not equal, etc. 31 * The {@code CompareOp} instruction represents comparisons such as equals, not equal, etc.
32 */ 32 */
33 public final class CompareOp extends Op2 { 33 public final class CompareOp extends Op2 {
34 34
35 private static final int INPUT_COUNT = 0;
36 private static final int SUCCESSOR_COUNT = 0;
37
35 /** 38 /**
36 * Creates a new compare operation. 39 * Creates a new compare operation.
37 * @param opcode the bytecode opcode 40 * @param opcode the bytecode opcode
38 * @param kind the result kind 41 * @param kind the result kind
39 * @param x the first input 42 * @param x the first input
40 * @param y the second input 43 * @param y the second input
41 */ 44 */
42 public CompareOp(int opcode, CiKind kind, Value x, Value y, Graph graph) { 45 public CompareOp(int opcode, CiKind kind, Value x, Value y, Graph graph) {
43 super(kind, opcode, x, y, graph); 46 super(kind, opcode, x, y, INPUT_COUNT, SUCCESSOR_COUNT, graph);
44 } 47 }
45 48
46 @Override 49 @Override
47 public void accept(ValueVisitor v) { 50 public void accept(ValueVisitor v) {
48 v.visitCompareOp(this); 51 v.visitCompareOp(this);