aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bba.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-08-09 06:11:47 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-08-09 06:11:47 +0330
commit12b45f728905863adb2e727d6c9c406374675bea (patch)
treef05a3a9ec2d846e4c94de334e2d42b80c4daae5c /src/backend/bba.h
parent40881a903e00939b647cd85beeacfb8a68b31e6a (diff)
some clean up and attempts to add bbaHEADmaster
Diffstat (limited to 'src/backend/bba.h')
-rw-r--r--src/backend/bba.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/bba.h b/src/backend/bba.h
index 2e77d78..2fc5741 100644
--- a/src/backend/bba.h
+++ b/src/backend/bba.h
@@ -55,6 +55,7 @@ typedef enum BBAOperation {
typedef union BBAInstructionValue {
struct BBAInstruction *instruction;
+ struct BBABlock *block;
u8 u8;
i8 i8;
@@ -87,4 +88,11 @@ typedef struct BBABlock {
} BBABlock;
typedef struct BBA {
+ BBAInstructionValue *globals;
+ size_t globals_size;
+ BBABlock blocks;
+ size_t blocks_size;
} BBA;
+
+BBA makeBBA(AstTreeRoots roots);
+bool makeBBABack(BBA *bba, AstTreeRoot *root);