out edges for entities and types
[libfirm] / ir / ana / field_temperature.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ana/field_temperature.h
4  * Purpose:     Compute an estimate of field temperature, i.e., field access heuristic.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:     21.7.2004
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 2004 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 #ifndef _FIELD_TEMPERATURE_H_
14 #define _FIELD_TEMPERATURE_H_
15
16 /**
17  * @file field_temperature.h
18  *
19  *  Watch it! This is highly java dependent.
20  *
21  * - All Sel nodes get an array with possibly accessed entities.
22  *   (resolve polymorphy on base of inherited entities.)
23  *   (the mentioned entity in first approximation.)
24  *
25  * - Each entity gets all SymConst/Sel nodes, that reference the
26  *   entity (Sel: references as accessed entity.)
27  *
28  * - We compute a value for the entity based on the Sel nodes.
29  */
30
31 #include "irnode.h"
32 #include "entity.h"
33
34
35
36 /** The entities that can be accessed by this Sel node. */
37 int     get_Sel_n_accessed_entities(ir_node *sel);
38 entity *get_Sel_accessed_entity    (ir_node *sel, int pos);
39
40
41
42 /** Get the weighted interprocedural loop depth of the node.
43     The depth is estimated by a heuristic. */
44 int get_weighted_loop_depth(ir_node *n);
45
46
47
48
49 /** compute the field temperature. */
50 void compute_field_temperature(void);
51
52 /** free occupied memory, reset */
53 void free_field_temperature(void);
54
55
56
57
58
59 /** An auxiliary/temporary function */
60 int is_jack_rts_class(type *t);
61
62 #endif /* _FIELD_TEMPERATURE_H_ */