Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/LogicOp.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 | 092e628ddd5d |
comparison
equal
deleted
inserted
replaced
2586:421da5f53b5e | 2587:51ebe5f0516f |
---|---|
31 * | 31 * |
32 * @author Ben L. Titzer | 32 * @author Ben L. Titzer |
33 */ | 33 */ |
34 public final class LogicOp extends Op2 { | 34 public final class LogicOp extends Op2 { |
35 | 35 |
36 private static final int INPUT_COUNT = 0; | |
37 private static final int SUCCESSOR_COUNT = 0; | |
38 | |
36 /** | 39 /** |
37 * Constructs a new logic operation instruction. | 40 * Constructs a new logic operation instruction. |
38 * @param opcode the opcode of the logic operation | 41 * @param opcode the opcode of the logic operation |
39 * @param x the first input into this instruction | 42 * @param x the first input into this instruction |
40 * @param y the second input into this instruction | 43 * @param y the second input into this instruction |
41 */ | 44 */ |
42 public LogicOp(int opcode, Value x, Value y, Graph graph) { | 45 public LogicOp(int opcode, Value x, Value y, Graph graph) { |
43 super(x.kind, opcode, x, y, graph); | 46 super(x.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.visitLogicOp(this); | 51 v.visitLogicOp(this); |