CACAO
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
source
cacao
src
vm
jit
optimizing
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
31
#include "
vm/jit/optimizing/graph.hpp
"
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
57
bool
dominator_tree_build
(
jitdata
*jd);
58
59
bool
dominance_frontier_build
(
jitdata
*jd);
60
61
void
dominator_tree_validate
(
jitdata
*jd,
dominatordata
*dd);
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
*/
dominatordata::parent
int * parent
Definition:
dominators.hpp:36
jitdata
Definition:
jit.hpp:126
dominatordata::bucket
int ** bucket
Definition:
dominators.hpp:41
dominatordata::best
int * best
Definition:
dominators.hpp:43
dominatordata::dfnum
int * dfnum
Definition:
dominators.hpp:34
dominatordata::num_DF
int * num_DF
Definition:
dominators.hpp:45
graph.hpp
computeDF
void computeDF(graphdata *gd, dominatordata *dd, int basicblockcount, int n)
Definition:
dominators.cpp:153
dominator_tree_validate
void dominator_tree_validate(jitdata *jd, dominatordata *_dd)
Definition:
dominators.cpp:602
dominatordata::DF
int ** DF
Definition:
dominators.hpp:44
dominatordata::ancestor
int * ancestor
Definition:
dominators.hpp:38
graphdata
Definition:
graph.hpp:60
dominatordata::samedom
int * samedom
Definition:
dominators.hpp:40
dominance_frontier_build
bool dominance_frontier_build(jitdata *jd)
Definition:
dominators.cpp:593
dominator_tree_build
bool dominator_tree_build(jitdata *jd)
Definition:
dominators.cpp:481
dominatordata::num_bucket
int * num_bucket
Definition:
dominators.hpp:42
dominatordata::idom
int * idom
Definition:
dominators.hpp:39
compute_Dominators
dominatordata * compute_Dominators(graphdata *gd, int basicblockcount)
Definition:
dominators.cpp:71
dominatordata::vertex
int * vertex
Definition:
dominators.hpp:35
dominatordata
Definition:
dominators.hpp:33
dominatordata::semi
int * semi
Definition:
dominators.hpp:37
Generated on Fri Aug 4 2017 03:01:53 for CACAO by
1.8.5