* src/vmcore/linker.c (build_display): Removed superfluous recursion; return
[cacao.git] / src / vm / jit / optimizing / lifetimes.h
1 /* src/vm/jit/optimizing/lifetimes.h - lifetimes header
2
3    Copyright (C) 2005, 2006, 2008
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_H
27 #define _LIFETIMES_H
28
29 #include "vm/jit/optimizing/dominators.h"
30
31 #if !defined(NDEBUG)
32 # include <assert.h>
33 # define LT_DEBUG_CHECK
34 /* # define LT_DEBUG_VERBOSE */
35 #endif
36
37 #ifdef LT_DEBUG_CHECK
38 # define _LT_CHECK_BOUNDS(i,l,h) assert( ((i) >= (l)) && ((i) < (h)));
39 # define _LT_ASSERT(a) assert((a));
40 #else
41 # define _LT_CHECK_BOUNDS(i,l,h)
42 # define _LT_ASSERT(a)
43 #endif
44
45 #define LT_BB_IN 3
46 #define LT_BB_OUT 2
47 #define LT_DEF 1
48 #define LT_USE 0
49
50 typedef struct site *lt_iterator;
51 void lt_scanlifetimes(jitdata *, graphdata *, dominatordata *);
52 void lt_add_ss(struct lifetime *, stackelement_t *);
53 void lt_remove_use_site(struct lifetime *lt, int block, int iindex);
54 void lt_move_use_sites(struct lifetime *from, struct lifetime *to);
55 void lt_lifeness_analysis(jitdata *, graphdata *);
56 #endif /* _LIFETIMES_H */
57
58 /*
59  * These are local overrides for various environment variables in Emacs.
60  * Please do not remove this and leave it at the end of the file, where
61  * Emacs will automagically detect them.
62  * ---------------------------------------------------------------------
63  * Local variables:
64  * mode: c
65  * indent-tabs-mode: t
66  * c-basic-offset: 4
67  * tab-width: 4
68  * End:
69  */