comparison graal/com.oracle.graal.replacements.amd64/src/com/oracle/graal/replacements/amd64/AMD64CountLeadingZerosNode.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 61d3cb8e1280
children 9794217565cd
comparison
equal deleted inserted replaced
19528:35481bcb5882 19529:8fc336a04d77
35 /** 35 /**
36 * Count the number of leading zeros. 36 * Count the number of leading zeros.
37 */ 37 */
38 @NodeInfo 38 @NodeInfo
39 public final class AMD64CountLeadingZerosNode extends UnaryNode implements LIRLowerable { 39 public final class AMD64CountLeadingZerosNode extends UnaryNode implements LIRLowerable {
40 public static final NodeClass<AMD64CountLeadingZerosNode> TYPE = NodeClass.get(AMD64CountLeadingZerosNode.class); 40 public static final NodeClass<AMD64CountLeadingZerosNode> TYPE = NodeClass.create(AMD64CountLeadingZerosNode.class);
41 41
42 public AMD64CountLeadingZerosNode(ValueNode value) { 42 public AMD64CountLeadingZerosNode(ValueNode value) {
43 super(TYPE, StampFactory.forInteger(Kind.Int, 0, ((PrimitiveStamp) value.stamp()).getBits()), value); 43 super(TYPE, StampFactory.forInteger(Kind.Int, 0, ((PrimitiveStamp) value.stamp()).getBits()), value);
44 assert value.getKind() == Kind.Int || value.getKind() == Kind.Long; 44 assert value.getKind() == Kind.Int || value.getKind() == Kind.Long;
45 } 45 }