diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-08-26 06:42:39 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-01 00:18:44 +0200 |
| commit | 8cc064e5c87bdebbdf6528cf77dd4a4ad6161fa2 (patch) | |
| tree | c1dbf562c2815572c7c6aeba58a9df975fd5a87e /flowgraph.h | |
| parent | d64adff1bac01dbb9c574655540328be434779f6 (diff) | |
| download | sparse-dev-8cc064e5c87bdebbdf6528cf77dd4a4ad6161fa2.tar.gz | |
graph: build the CFG reverse postorder traversal
Do a DFS on the CFG and record the (reverse) postorder.
Use this order for the normal BB traversal (ep->bbs).
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'flowgraph.h')
| -rw-r--r-- | flowgraph.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/flowgraph.h b/flowgraph.h new file mode 100644 index 00000000..676c5b2d --- /dev/null +++ b/flowgraph.h @@ -0,0 +1,8 @@ +#ifndef FLOWGRAPH_H +#define FLOWGRAPH_H + +struct entrypoint; + +int cfg_postorder(struct entrypoint *ep); + +#endif |
