5 File name: ir/ana/pto_name.h
6 Purpose: Names for abstract objects
9 Created: Sat Nov 13 19:35:27 CET 2004
11 Copyright: (c) 1999-2004 Universität Karlsruhe
12 Licence: This file is protected by the GPL - GNU GENERAL PUBLIC LICENSE.
19 # include "pto_comp.h" /* for pto_t */
24 /* ===================================================
26 =================================================== */
28 /* ===================================================
30 =================================================== */
31 typedef enum desc_kind_enum {
37 /* abstract super class for all descriptors */
38 typedef struct desc_str
45 ir_node *node; /* allocation node */
46 struct desc_str *prev; /* linked list */
49 /* object descriptor */
50 typedef struct obj_desc_str
57 ir_node *node; /* allocation node */
58 struct desc_str *prev; /* linked list */
65 /* array descriptor */
66 typedef struct arr_desc_str
73 ir_node *node; /* allocation node */
74 struct desc_str *prev; /* linked list */
79 /* ===================================================
81 =================================================== */
82 /* Dump all names to a file of the given name */
83 void pto_dump_names (const char*);
85 /* Find the given descriptor's entry for the given entity */
86 qset_t *get_entry (desc_t*, entity*);
88 /* get a new descriptor for the given type at the given node */
89 desc_t *new_name (type*, ir_node*);
91 /* get a new descriptor for the given (presumably static) entity */
92 desc_t *new_ent_name (entity*);
94 /* Initialise the name module */
95 void pto_name_init (void);
97 /* Cleanup the name module */
98 void pto_name_cleanup (void);
100 /* ===================================================
102 =================================================== */
105 # endif /* not defined _PTO_NAME_ */
111 Revision 1.5 2004/12/06 12:52:09 liekweg
114 Revision 1.4 2004/11/30 15:49:27 liekweg
117 Revision 1.3 2004/11/30 14:47:54 liekweg
118 fix initialisation; do correct iteration
120 Revision 1.2 2004/11/24 14:53:56 liekweg
123 Revision 1.1 2004/11/18 16:37:34 liekweg