aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-30 15:25:17 +0300
commitfd5bdaff40f93546009e1ec854fd26df01e78f22 (patch)
tree2750eff7430b62d790292df238595a22e3f02616 /include
parentcb71bb6ad44d5e6ea4d4af4896c23088957cbdb3 (diff)
downloadqbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.tar.gz
qbt-fd5bdaff40f93546009e1ec854fd26df01e78f22.zip
correct addr
+ Doesn't quite implement stack handling fully as of yet, but slowly getting there
Diffstat (limited to 'include')
-rw-r--r--include/qbt/nodes.h2
-rw-r--r--include/qbt/opt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/qbt/nodes.h b/include/qbt/nodes.h
index f51a32f..a81f397 100644
--- a/include/qbt/nodes.h
+++ b/include/qbt/nodes.h
@@ -45,11 +45,11 @@ enum insn_type {
RETARG,
PARAM,
RETVAL,
+ ADDR,
/* internal */
SAVE,
RESTORE,
- ADDR,
};
enum insn_flags {
diff --git a/include/qbt/opt.h b/include/qbt/opt.h
index 60d29b3..87c8ac6 100644
--- a/include/qbt/opt.h
+++ b/include/qbt/opt.h
@@ -4,6 +4,6 @@
#include <qbt/nodes.h>
void optimize(struct fn *fn);
size_t ssa(struct fn *f);
-void correct(struct fn *f, size_t ri);
+size_t correct(struct fn *f, size_t ri);
#endif /* OPT_H */