summaryrefslogtreecommitdiff
path: root/src/ir/abstract.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/abstract.h')
-rw-r--r--src/ir/abstract.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ir/abstract.h b/src/ir/abstract.h
index feac9b50d..0cfeeea77 100644
--- a/src/ir/abstract.h
+++ b/src/ir/abstract.h
@@ -59,13 +59,17 @@ enum Op {
GeU
};
-inline bool hasAnyShift(BinaryOp op) {
- return op == ShlInt32 || op == ShrSInt32 || op == ShrUInt32 ||
- op == RotLInt32 || op == RotRInt32 || op == ShlInt64 ||
- op == ShrSInt64 || op == ShrUInt64 || op == RotLInt64 ||
+inline bool hasAnyRotateShift(BinaryOp op) {
+ return op == RotLInt32 || op == RotRInt32 || op == RotLInt64 ||
op == RotRInt64;
}
+inline bool hasAnyShift(BinaryOp op) {
+ return hasAnyRotateShift(op) || op == ShlInt32 || op == ShrSInt32 ||
+ op == ShrUInt32 || op == ShlInt64 || op == ShrSInt64 ||
+ op == ShrUInt64;
+}
+
inline bool hasAnyReinterpret(UnaryOp op) {
return op == ReinterpretInt32 || op == ReinterpretInt64 ||
op == ReinterpretFloat32 || op == ReinterpretFloat64;