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
9 * Copyright: (c) 2004 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
13 #ifndef _FIELD_TEMPERATURE_H_
14 #define _FIELD_TEMPERATURE_H_
17 * @file field_temperature.h
19 * @author Goetz Lindenmaier
21 * Watch it! This is highly java dependent.
23 * - All Sel nodes get an array with possibly accessed entities.
24 * (resolve polymorphy on base of inherited entities.)
25 * (the mentioned entity in first approximation.)
27 * - We compute a value for the entity based on the Sel nodes.
35 /** The entities that can be accessed by this Sel node. *
36 int get_Sel_n_accessed_entities(ir_node *sel);
37 entity *get_Sel_accessed_entity (ir_node *sel, int pos);
41 /** Get the weighted interprocedural loop depth of the node.
42 The depth is estimated by a heuristic. */
43 int get_weighted_loop_depth(ir_node *n);
50 /** An auxiliary/temporary function */
51 int is_jack_rts_class(type *t);
53 #endif /* _FIELD_TEMPERATURE_H_ */