aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/common.h b/src/common.h
index dc970f0..41a17cf 100644
--- a/src/common.h
+++ b/src/common.h
@@ -4,21 +4,29 @@
#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 "vec.h"
+#include <conts/vec.h>
#define VEC_TYPE int64_t
#define VEC_NAME gprs
-#include "vec.h"
+#include <conts/vec.h>
#define VEC_TYPE double
#define VEC_NAME fprs
-#include "vec.h"
+#include <conts/vec.h>
#define VEC_TYPE size_t
#define VEC_NAME labels
-#include "vec.h"
+#include <conts/vec.h>
enum ejit_opcode {
EJIT_OP_MOVI,
@@ -263,11 +271,11 @@ struct ejit_insn {
#define VEC_TYPE struct ejit_insn
#define VEC_NAME insns
-#include "vec.h"
+#include <conts/vec.h>
#define VEC_TYPE enum ejit_type
#define VEC_NAME types
-#include "vec.h"
+#include <conts/vec.h>
struct fpr_stat {
struct ejit_fpr f;
@@ -276,7 +284,7 @@ struct fpr_stat {
#define VEC_NAME fpr_stats
#define VEC_TYPE struct fpr_stat
-#include "vec.h"
+#include <conts/vec.h>
struct gpr_stat {
struct ejit_gpr r;
@@ -285,12 +293,13 @@ struct gpr_stat {
#define VEC_NAME gpr_stats
#define VEC_TYPE struct gpr_stat
-#include "vec.h"
+#include <conts/vec.h>
struct ejit_func {
struct types sign;
struct insns insns;
struct labels labels;
+ struct barriers barriers;
enum ejit_type rtype;
struct gpr_stats gpr;