aboutsummaryrefslogtreecommitdiff
path: root/src/ssa.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-03-31 23:09:14 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-03-31 23:09:14 +0300
commit59148d666a78d671198d56caabe7fe4d7fb3fee1 (patch)
tree4c54666dca7090fd8d4f898160afe080ed0f1fa6 /src/ssa.c
parent1dcaa90d8b706118235bc74a0f2cbdcb836d29bb (diff)
downloadqbt-59148d666a78d671198d56caabe7fe4d7fb3fee1.tar.gz
qbt-59148d666a78d671198d56caabe7fe4d7fb3fee1.zip
produce some very limited assembly output
+ Several subsystems missing critical features, but enough to do some basic things like calling procedures, printing to screen and doing loops
Diffstat (limited to 'src/ssa.c')
-rw-r--r--src/ssa.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ssa.c b/src/ssa.c
new file mode 100644
index 0000000..a9d6e6c
--- /dev/null
+++ b/src/ssa.c
@@ -0,0 +1,8 @@
+#include <qbt/ssa.h>
+
+void ssa(struct fn *f)
+{
+ /* do a depth-first traversal of blocks, mark locations within as either
+ * generated (i.e. we assign something to the register) or required
+ * (i.e. it must be taken as a block parameter) */
+}