aboutsummaryrefslogtreecommitdiff
path: root/src/opt.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/opt.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/opt.c')
-rw-r--r--src/opt.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/opt.c b/src/opt.c
new file mode 100644
index 0000000..3036950
--- /dev/null
+++ b/src/opt.c
@@ -0,0 +1,12 @@
+#include <qbt/opt.h>
+#include <qbt/regalloc.h>
+#include <qbt/ssa.h>
+#include <qbt/abi.h>
+
+void optimize(struct fn *f)
+{
+ ssa(f);
+ abi0(f);
+ /* ... do more stuff ... */
+ regalloc(f);
+}