use of org.graalvm.compiler.core.common.type.ArithmeticOpTable.ShiftOp.Shl in project graal by oracle.
the class LeftShiftNode method create.
public static ValueNode create(ValueNode x, ValueNode y, NodeView view) {
ArithmeticOpTable.ShiftOp<Shl> op = ArithmeticOpTable.forStamp(x.stamp(view)).getShl();
Stamp stamp = op.foldStamp(x.stamp(view), (IntegerStamp) y.stamp(view));
ValueNode value = ShiftNode.canonical(op, stamp, x, y, view);
if (value != null) {
return value;
}
return canonical(null, op, stamp, x, y);
}
Aggregations