From fd5bdaff40f93546009e1ec854fd26df01e78f22 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 30 Apr 2024 15:25:17 +0300 Subject: correct addr + Doesn't quite implement stack handling fully as of yet, but slowly getting there --- include/qbt/nodes.h | 2 +- include/qbt/opt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 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 */ -- cgit v1.3