projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check that COnst nodes have same mode as its tarval
[libfirm]
/
ir
/
ana
/
field_temperature.h
diff --git
a/ir/ana/field_temperature.h
b/ir/ana/field_temperature.h
index
6e0a7ea
..
50e990d
100644
(file)
--- a/
ir/ana/field_temperature.h
+++ b/
ir/ana/field_temperature.h
@@
-27,10
+27,7
@@
* - We compute a value for the entity based on the Sel nodes.
*/
* - We compute a value for the entity based on the Sel nodes.
*/
-#include "irnode.h"
-#include "entity.h"
-#include "type.h"
-
+#include "firm_types.h"
/* The number of array elements we assume if not both bounds are given. */
#define DEFAULT_N_ARRAY_ELEMENTS 1
/* The number of array elements we assume if not both bounds are given. */
#define DEFAULT_N_ARRAY_ELEMENTS 1
@@
-42,7
+39,12
@@
entity *get_Sel_accessed_entity (ir_node *sel, int pos);
*/
int get_irn_loop_call_depth(ir_node *n);
*/
int get_irn_loop_call_depth(ir_node *n);
-int get_irn_loop_depth(ir_node *n);
+/** Return loop depth of node.
+ *
+ * Returns the loop depth of n in the control flow. I.e., we
+ * go from the node to the block to the loop the block is in,
+ * and return its depth. */
+int get_irn_cfloop_depth(ir_node *n);
int get_irn_recursion_depth(ir_node *n);
/** Get the weighted interprocedural loop depth of the node.
int get_irn_recursion_depth(ir_node *n);
/** Get the weighted interprocedural loop depth of the node.
@@
-55,32
+57,32
@@
double get_irn_final_cost(ir_node *n);
/** Get accumulated(really?) execution frequencies.
* A heuristic weights the recursions. */
/** Get accumulated(really?) execution frequencies.
* A heuristic weights the recursions. */
-double get_type_estimated_n_instances(type *clss);
-double get_type_estimated_mem_consumption_bytes(type *tp);
+double get_type_estimated_n_instances(
ir_
type *clss);
+double get_type_estimated_mem_consumption_bytes(
ir_
type *tp);
/** Estimates the size of an object.
*
* The heuristic mainly affects array sizes.
* Further this ignores padding for alignment, especially of small fields. */
/** Estimates the size of an object.
*
* The heuristic mainly affects array sizes.
* Further this ignores padding for alignment, especially of small fields. */
-int get_type_estimated_size_bytes(type *tp);
+int get_type_estimated_size_bytes(
ir_
type *tp);
/** Estimates the number of fields of a single Object.
* The heuristic mainly affects array sizes.
* @@@ Misses inherited fields! */
/** Estimates the number of fields of a single Object.
* The heuristic mainly affects array sizes.
* @@@ Misses inherited fields! */
-int get_type_estimated_n_fields(type *tp);
-double get_type_estimated_n_casts(type *clss);
+int get_type_estimated_n_fields(
ir_
type *tp);
+double get_type_estimated_n_casts(
ir_
type *clss);
-double get_class_estimated_n_upcasts(type *clss);
-double get_class_estimated_n_downcasts(type *clss);
+double get_class_estimated_n_upcasts(
ir_
type *clss);
+double get_class_estimated_n_downcasts(
ir_
type *clss);
/** Returns the number of accesses to the dispatch table.
*
* This includes the initialization of the pointer field, and accesses
* to virtual fields (as instance marker in Java). Certainly this
* includes virtual method calls. */
/** Returns the number of accesses to the dispatch table.
*
* This includes the initialization of the pointer field, and accesses
* to virtual fields (as instance marker in Java). Certainly this
* includes virtual method calls. */
-double get_class_estimated_n_dyncalls(type *clss);
+double get_class_estimated_n_dyncalls(
ir_
type *clss);
/** Returns the number of writes to the dispatch pointer.
* This is the same as the number of allocations. */
/** Returns the number of writes to the dispatch pointer.
* This is the same as the number of allocations. */
-double get_class_estimated_dispatch_writes(type *clss);
+double get_class_estimated_dispatch_writes(
ir_
type *clss);
/** Returns the number of reads of the dispatch pointer. */
/** Returns the number of reads of the dispatch pointer. */
-double get_class_estimated_dispatch_reads (type *clss);
+double get_class_estimated_dispatch_reads (
ir_
type *clss);
double get_entity_estimated_n_loads(entity *ent);
double get_entity_estimated_n_stores(entity *ent);
double get_entity_estimated_n_loads(entity *ent);
double get_entity_estimated_n_stores(entity *ent);
@@
-100,7
+102,7
@@
typedef enum {
} irp_temperature_state;
/** An auxiliary/temporary function */
} irp_temperature_state;
/** An auxiliary/temporary function */
-int is_jack_rts_class(type *t);
+int is_jack_rts_class(
ir_
type *t);
int is_jack_rts_entity(entity *e);
#endif /* _FIELD_TEMPERATURE_H_ */
int is_jack_rts_entity(entity *e);
#endif /* _FIELD_TEMPERATURE_H_ */