diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-03-31 23:09:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-03-31 23:09:14 +0300 |
| commit | 59148d666a78d671198d56caabe7fe4d7fb3fee1 (patch) | |
| tree | 4c54666dca7090fd8d4f898160afe080ed0f1fa6 /src/opt.c | |
| parent | 1dcaa90d8b706118235bc74a0f2cbdcb836d29bb (diff) | |
| download | qbt-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.c | 12 |
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); +} |
