CACAO
lifetimes.hpp
Go to the documentation of this file.
1 /* src/vm/jit/optimizing/lifetimes.hpp - lifetimes 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 LIFETIMES_HPP_
27 #define LIFETIMES_HPP_ 1
28 
29 #include "config.h"
30 
31 struct lifetime;
32 struct jitdata;
33 struct graphdata;
34 struct dominatordata;
35 struct stackelement_t;
36 
37 #if !defined(NDEBUG)
38 # include <assert.h>
39 # define LT_DEBUG_CHECK
40 /* # define LT_DEBUG_VERBOSE */
41 #endif
42 
43 #ifdef LT_DEBUG_CHECK
44 # define _LT_CHECK_BOUNDS(i,l,h) assert( ((i) >= (l)) && ((i) < (h)));
45 # define _LT_ASSERT(a) assert((a));
46 #else
47 # define _LT_CHECK_BOUNDS(i,l,h)
48 # define _LT_ASSERT(a)
49 #endif
50 
51 #define LT_BB_IN 3
52 #define LT_BB_OUT 2
53 #define LT_DEF 1
54 #define LT_USE 0
55 
56 typedef struct site *lt_iterator;
59 void lt_remove_use_site(lifetime *lt, int block, int iindex);
62 
63 #endif // LIFETIMES_HPP_
64 
65 /*
66  * These are local overrides for various environment variables in Emacs.
67  * Please do not remove this and leave it at the end of the file, where
68  * Emacs will automagically detect them.
69  * ---------------------------------------------------------------------
70  * Local variables:
71  * mode: c++
72  * indent-tabs-mode: t
73  * c-basic-offset: 4
74  * tab-width: 4
75  * End:
76  */
Definition: lsra.hpp:67
Definition: jit.hpp:126
argument_type from
void lt_lifeness_analysis(jitdata *jd, graphdata *gd)
Definition: lifetimes.cpp:230
void lt_remove_use_site(struct lifetime *lt, int block, int iindex)
Definition: lifetimes.cpp:606
void lt_add_ss(lifetime *, stackelement_t *)
int iindex
Definition: lsra.hpp:69
void lt_scanlifetimes(jitdata *jd, graphdata *gd, dominatordata *dd)
Definition: lifetimes.cpp:108
BeginInst *& block
void lt_move_use_sites(struct lifetime *from, struct lifetime *to)
Definition: lifetimes.cpp:574
struct site * lt_iterator
Definition: lifetimes.hpp:56