aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-02 18:04:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:26 -0700
commitb6d2fa5bac3fed9e9242bb626a9ccce1fbb6b419 (patch)
tree4720cc323afd4ce2ee87325372841e6ad856a1f3 /flow.h
parent5aad28f0caa770be2b69717dba765763c6c3f7b2 (diff)
downloadsparse-b6d2fa5bac3fed9e9242bb626a9ccce1fbb6b419.tar.gz
Add pseudo death-note tracking.
Now that we have full pseudo usage lists, we can also add deathnotes to pseudos in the instruction stream. NOTE! We add the deathnote to _before_ the last instruction that uses that pseudo. That looks a bit strange, but it's actually what you want: when we traverse the instuctions, we want to know that the inputs are dead.
Diffstat (limited to 'flow.h')
-rw-r--r--flow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flow.h b/flow.h
index 0c0d1d74..cfa4dd54 100644
--- a/flow.h
+++ b/flow.h
@@ -27,6 +27,8 @@ int dominates(pseudo_t pseudo, struct instruction *insn, struct instruction *dom
extern void clear_liveness(struct entrypoint *ep);
extern void track_pseudo_liveness(struct entrypoint *ep);
+extern void track_pseudo_death(struct entrypoint *ep);
+
extern void vrfy_flow(struct entrypoint *ep);
extern int pseudo_in_list(struct pseudo_list *list, pseudo_t pseudo);