fixed handling of other_same/other_different constraint handling
[libfirm] / ir / ana2 / pto_name.h
index fd22727..5b1ed95 100644 (file)
@@ -1,20 +1,33 @@
 /* -*- c -*- */
 
 /*
-  Project:     libFIRM
-  File name:   ir/ana/pto_name.h
-  Purpose:     Names for abstract objects
-  Author:      Florian
-  Modified by:
-  Created:     Sat Nov 13 19:35:27 CET 2004
-  CVS-ID:      $Id$
-  Copyright:   (c) 1999-2004 Universität Karlsruhe
-  Licence:     This file is protected by the GPL -  GNU GENERAL PUBLIC LICENSE.
-*/
-
-
-# ifndef _PTO_NAME_
-# define _PTO_NAME_
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief    Names for abstract objects
+ * @author   Florian
+ * @date     Sat Nov 13 19:35:27 CET 2004
+ * @version  $Id$
+ */
+# ifndef FIRM_ANA2_PTO_NAME_H
+# define FIRM_ANA2_PTO_NAME_H
 
 # include "pto_comp.h"          /* for pto_t */
 # include "irnode.h"
@@ -38,8 +51,11 @@ typedef enum desc_kind_enum {
 typedef struct desc_str
 {
   int id;
+  int visit;
+  int ctx;
+  int col_idx;
   desc_kind_t kind;
-  type *tp;
+  ir_type *tp;
   ir_node *node;                /* allocation node */
   struct desc_str *prev;        /* linked list */
 } desc_t;
@@ -48,13 +64,16 @@ typedef struct desc_str
 typedef struct obj_desc_str
 {
   int id;
+  int visit;
+  int ctx;
+  int col_idx;
   desc_kind_t kind;
-  type *tp;
+  ir_type *tp;
   ir_node *node;                /* allocation node */
   struct desc_str *prev;        /* linked list */
 
   int n_fields;
-  entity **fields;
+  ir_entity **fields;
   qset_t **values;
 } obj_desc_t;
 
@@ -62,8 +81,11 @@ typedef struct obj_desc_str
 typedef struct arr_desc_str
 {
   int id;
+  int visit;
+  int ctx;
+  int col_idx;
   desc_kind_t kind;
-  type *tp;
+  ir_type *tp;
   ir_node *node;                /* allocation node */
   struct desc_str *prev;        /* linked list */
 
@@ -74,16 +96,16 @@ typedef struct arr_desc_str
    Global Prototypes:
    =================================================== */
 /* Dump all names to a file of the given name */
-void pto_dump (const char*);
+void pto_dump_names (const char*);
 
 /* Find the given descriptor's entry for the given entity */
-qset_t *get_entry (desc_t*, entity*);
+qset_t *get_entry (desc_t*, ir_entity*);
 
 /* get a new descriptor for the given type at the given node */
-desc_t *new_name (type*, ir_node*);
+desc_t *new_name (ir_type*, ir_node*, int);
 
 /* get a new descriptor for the given (presumably static) entity */
-desc_t *new_ent_name (entity*);
+desc_t *new_ent_name (ir_entity*);
 
 /* Initialise the name module */
 void pto_name_init (void);
@@ -96,12 +118,27 @@ void pto_name_cleanup (void);
    =================================================== */
 
 
-# endif /* not defined _PTO_NAME_ */
+# endif
 
 
 \f
 /*
   $Log$
+  Revision 1.8  2006/12/13 19:46:47  beck
+  rename type entity into ir_entity
+
+  Revision 1.7  2006/01/13 22:00:15  beck
+  renamed all types 'type' to 'ir_type'
+
+  Revision 1.6  2004/12/15 13:30:41  liekweg
+  print yet nicer names
+
+  Revision 1.5  2004/12/06 12:52:09  liekweg
+  colorize name dump
+
+  Revision 1.4  2004/11/30 15:49:27  liekweg
+  include 'dump'
+
   Revision 1.3  2004/11/30 14:47:54  liekweg
   fix initialisation; do correct iteration