Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/BitCountNode.java @ 19410:61d3cb8e1280
Add generic parameter to NodeClass. Change Graph#getNodes(Class) to Graph#getNodes(NodeClass).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Mon, 16 Feb 2015 17:47:43 +0100 |
parents | 7e2c87dae93e |
children | 8fc336a04d77 |
comparison
equal
deleted
inserted
replaced
19409:a16f1bbe2965 | 19410:61d3cb8e1280 |
---|---|
33 import com.oracle.graal.nodes.spi.*; | 33 import com.oracle.graal.nodes.spi.*; |
34 | 34 |
35 @NodeInfo | 35 @NodeInfo |
36 public final class BitCountNode extends UnaryNode implements LIRLowerable { | 36 public final class BitCountNode extends UnaryNode implements LIRLowerable { |
37 | 37 |
38 public static final NodeClass TYPE = NodeClass.get(BitCountNode.class); | 38 public static final NodeClass<BitCountNode> TYPE = NodeClass.get(BitCountNode.class); |
39 | 39 |
40 public BitCountNode(ValueNode value) { | 40 public BitCountNode(ValueNode value) { |
41 super(TYPE, StampFactory.forInteger(Kind.Int, 0, ((PrimitiveStamp) value.stamp()).getBits()), value); | 41 super(TYPE, StampFactory.forInteger(Kind.Int, 0, ((PrimitiveStamp) value.stamp()).getBits()), value); |
42 assert value.getKind() == Kind.Int || value.getKind() == Kind.Long; | 42 assert value.getKind() == Kind.Int || value.getKind() == Kind.Long; |
43 } | 43 } |