Lines Matching defs:forValue
76 public ValueNode canonical(CanonicalizerTool tool, ValueNode forValue) {
77 ValueNode ret = super.canonical(tool, forValue);
82 return canonical(this, forValue, getInputBits(), getResultBits());
85 private static ValueNode canonical(SignExtendNode self, ValueNode forValue, int inputBits, int resultBits) {
86 if (forValue instanceof SignExtendNode) {
89 SignExtendNode other = (SignExtendNode) forValue;
91 } else if (forValue instanceof ZeroExtendNode) {
92 ZeroExtendNode other = (ZeroExtendNode) forValue;
100 if (forValue.stamp() instanceof IntegerStamp) {
101 IntegerStamp inputStamp = (IntegerStamp) forValue.stamp();
105 return ZeroExtendNode.create(forValue, inputBits, resultBits);
109 return self != null ? self : new SignExtendNode(forValue, inputBits, resultBits);