added function returnAtEnd - to determine if a basic block terminates with
[fw/sdcc] / src / SDCCcflow.h
1 /*-------------------------------------------------------------------------
2
3   SDCCcflow.h - header file for control flow analysis
4
5              Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
6
7    This program is free software; you can redistribute it and/or modify it
8    under the terms of the GNU General Public License as published by the
9    Free Software Foundation; either version 2, or (at your option) any
10    later version.
11    
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16    
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20    
21    In other words, you are welcome to use, share and improve this program.
22    You are forbidden to forbid anyone else to use, share and improve
23    what you give them.   Help stamp out software-hoarding!  
24 -------------------------------------------------------------------------*/
25
26 #include "SDCCset.h"
27
28 #ifndef SDCCCFLOW_H
29 #define SDCCCFLOW_H 1
30
31 void computeDFOrdering (eBBlock *, int *);
32 set *domSetFromVect (eBBlock **, bitVect *);
33 void addSuccessor (eBBlock *, eBBlock *);
34 void eBBSuccessors (eBBlock **, int);
35 void eBBPredecessors (eBBlock **, int);
36 eBBlock *immedDom (eBBlock **, eBBlock *);
37 DEFSETFUNC (DFOrdering);
38 void markNoPath (eBBlock **, int);
39 void computeControlFlow (eBBlock **, int, int);
40 int dfNumCompare (const void *, const void *);
41 int bbNumCompare (const void *, const void *);
42 void disconBBlock (eBBlock *, eBBlock **, int);
43 int returnAtEnd (eBBlock *) ;
44 #endif