summaryrefslogtreecommitdiff
path: root/Type.hh
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-29 00:08:49 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-29 00:08:49 +0800
commitd4e6ae6f8237f18d9d0b51e7a6404118dffb709f (patch)
treeeb0969f20e5959866e535ac8fe5c84db55595ab5 /Type.hh
parent404afbef3c9223bc44ddd91066c52c44349e43c7 (diff)
add pointer and shifting support
Diffstat (limited to 'Type.hh')
-rw-r--r--Type.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Type.hh b/Type.hh
index 44c9a29..898bbdd 100644
--- a/Type.hh
+++ b/Type.hh
@@ -28,6 +28,8 @@ enum class BinaryOperator {
AND,
OR,
XOR,
+ SHL,
+ SHR,
ARRAY_ACCESS,
BINARYOP_NUMBER,
REAL_DIV // the difference between REAL_DIV and DIV is handled in
@@ -74,6 +76,8 @@ class Type {
Value CreateAnd(Value v0, Value v1, Context* context);
Value CreateOr(Value v0, Value v1, Context* context);
Value CreateXor(Value v0, Value v1, Context* context);
+ Value CreateShl(Value v0, Value v1, Context* context);
+ Value CreateShr(Value v0, Value v1, Context* context);
Value CreatePos(Value v, Context* context);
Value CreateNeg(Value v, Context* context);
Value CreateNot(Value v, Context* context);