CACAO
dominators.hpp
Go to the documentation of this file.
1 /* src/vm/jit/optimizing/dominators.hpp - Dominators and Dominance Frontier header
2 
3  Copyright (C) 2005-2013
4  CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 
6  This file is part of CACAO.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2, or (at
11  your option) any later version.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22 
23 */
24 
25 
26 #ifndef DOMINATORS_HPP_
27 #define DOMINATORS_HPP_ 1
28 
29 #include "config.h"
30 
32 
33 struct dominatordata {
34  int *dfnum; /* [0..ls->basicblockcount[ */
35  int *vertex; /* [0..ls->basicblockcount[ */
36  int *parent; /* [0..ls->basicblockcount[ */
37  int *semi; /* [0..ls->basicblockcount[ */
38  int *ancestor; /* [0..ls->basicblockcount[ */
39  int *idom; /* [0..ls->basicblockcount[ */
40  int *samedom; /* [0..ls->basicblockcount[ */
41  int **bucket; /* [0..ls->basicblockcount[[0..ls->bbc[ */
42  int *num_bucket; /* [0..ls->basicblockcount[ */
43  int *best; /* [0..ls->basicblockcount[ */
44  int **DF; /* [0..ls->basicblockcount[[0..ls->bbc[ */
45  int *num_DF; /* [0..ls->basicblockcount[ */
46 };
47 
48 struct dominatordata;
49 
50 /* function prototypes */
51 
52 dominatordata *compute_Dominators(graphdata *gd, int basicblockcount);
53 void computeDF(graphdata *gd, dominatordata *dd, int basicblockcount, int n);
54 
55 /* ............................... */
56 
58 
60 
62 
63 #endif // DOMINATORS_HPP_
64 
65 
66 /*
67  * These are local overrides for various environment variables in Emacs.
68  * Please do not remove this and leave it at the end of the file, where
69  * Emacs will automagically detect them.
70  * ---------------------------------------------------------------------
71  * Local variables:
72  * mode: c++
73  * indent-tabs-mode: t
74  * c-basic-offset: 4
75  * tab-width: 4
76  * End:
77  */
Definition: jit.hpp:126
void computeDF(graphdata *gd, dominatordata *dd, int basicblockcount, int n)
Definition: dominators.cpp:153
void dominator_tree_validate(jitdata *jd, dominatordata *_dd)
Definition: dominators.cpp:602
bool dominance_frontier_build(jitdata *jd)
Definition: dominators.cpp:593
bool dominator_tree_build(jitdata *jd)
Definition: dominators.cpp:481
int * num_bucket
Definition: dominators.hpp:42
dominatordata * compute_Dominators(graphdata *gd, int basicblockcount)
Definition: dominators.cpp:71