aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-05-17 13:42:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-05-17 13:42:33 +0300
commitb9372c7be73a7cad6d741f5323dc8b2b758198d4 (patch)
tree66b766bccad93abd2311b9215651bd94456b3728 /src/common.h
parent5c11915931ad43617ba6f62189bb11630b9624d4 (diff)
downloadejit-b9372c7be73a7cad6d741f5323dc8b2b758198d4.tar.gz
ejit-b9372c7be73a7cad6d741f5323dc8b2b758198d4.zip
take loops into account in register allocatorHEADmaster
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 1eb762e..41a17cf 100644
--- a/src/common.h
+++ b/src/common.h
@@ -4,6 +4,14 @@
#include <ejit/ejit.h>
#include <stdbool.h>
+struct barrier_tuple {
+ size_t start, end;
+};
+
+#define VEC_TYPE struct barrier_tuple
+#define VEC_NAME barriers
+#include <conts/vec.h>
+
#define VEC_TYPE struct ejit_arg
#define VEC_NAME args
#include <conts/vec.h>
@@ -291,6 +299,7 @@ struct ejit_func {
struct types sign;
struct insns insns;
struct labels labels;
+ struct barriers barriers;
enum ejit_type rtype;
struct gpr_stats gpr;