initialization,
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Sat, 25 Sep 2004 11:14:16 +0000 (11:14 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Sat, 25 Sep 2004 11:14:16 +0000 (11:14 +0000)
field for cache optimization

[r3947]

ir/tr/type.c
ir/tr/type_t.h

index e8ba173..55cf8c5 100644 (file)
@@ -103,6 +103,7 @@ new_type(tp_op *type_op, ir_mode *mode, ident* name) {
 
   node_size = offsetof(type, attr) +  type_op->attr_size;
   res = (type *) xmalloc (node_size);
+  memset((void *)res, 0, node_size);
   add_irp_type(res);   /* Remember the new type global. */
 
   res->kind    = k_type;
index 8e2d166..6accd23 100644 (file)
@@ -126,6 +126,10 @@ struct type {
   void *link;              /**< holds temporary data - like in irnode_t.h */
   struct dbg_info* dbi;    /**< A pointer to information for debug support. */
 
+  /* ------------- fields for analyses ---------------*/
+  ir_node **allocations;    /**< array of all Alloc nodes with this type
+                             @@@ Should not be in here, hash table! */
+
 #ifdef DEBUG_libfirm
   int nr;             /**< a unique node number for each node to make output
                              readable. */