comparison graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCCompare.java @ 19529:8fc336a04d77

Create TYPE fields for LIRInstruction and CompositeValue. Renaming NodeClass#get to NodeClass#create.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 20 Feb 2015 22:22:55 +0100
parents 9619ba4daf4c
children 96ab2078eeaf
comparison
equal deleted inserted replaced
19528:35481bcb5882 19529:8fc336a04d77
38 LCMP, 38 LCMP,
39 ACMP, 39 ACMP,
40 FCMP, 40 FCMP,
41 DCMP; 41 DCMP;
42 42
43 public static class CompareOp extends SPARCLIRInstruction { 43 public static final class CompareOp extends SPARCLIRInstruction {
44 public static final LIRInstructionClass<CompareOp> TYPE = LIRInstructionClass.create(CompareOp.class);
44 45
45 @Opcode private final SPARCCompare opcode; 46 @Opcode private final SPARCCompare opcode;
46 @Use({REG}) protected Value x; 47 @Use({REG}) protected Value x;
47 @Use({REG, CONST}) protected Value y; 48 @Use({REG, CONST}) protected Value y;
48 49
49 public CompareOp(SPARCCompare opcode, Value x, Value y) { 50 public CompareOp(SPARCCompare opcode, Value x, Value y) {
51 super(TYPE);
50 this.opcode = opcode; 52 this.opcode = opcode;
51 this.x = x; 53 this.x = x;
52 this.y = y; 54 this.y = y;
53 } 55 }
54 56