public abstract static class ArithmeticOpTable.ShiftOp<OP> extends ArithmeticOpTable.Op
JavaKind.Int.| Modifier and Type | Class and Description |
|---|---|
static class |
ArithmeticOpTable.ShiftOp.Shl |
static class |
ArithmeticOpTable.ShiftOp.Shr |
static class |
ArithmeticOpTable.ShiftOp.UShr |
| Modifier | Constructor and Description |
|---|---|
protected |
ShiftOp(String operation) |
| Modifier and Type | Method and Description |
|---|---|
abstract Constant |
foldConstant(Constant c,
int amount)
Apply the shift to a constant.
|
abstract Stamp |
foldStamp(Stamp s,
IntegerStamp amount)
Apply the shift to a stamp.
|
abstract int |
getShiftAmountMask(Stamp s)
Get the shift amount mask for a given result stamp.
|
equals, hashCode, toStringprotected ShiftOp(String operation)
public abstract Constant foldConstant(Constant c,
int amount)
public abstract Stamp foldStamp(Stamp s, IntegerStamp amount)
public abstract int getShiftAmountMask(Stamp s)