pto_init: Initialisation Functions
*/
+# include <assert.h>
# include <obstack.h>
+#ifdef HAVE_STRING_H
# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
# include "pto.h"
# include "pto_init.h"
# include "typewalk.h"
# include "irgwalk.h"
+# include "tv.h"
# include "xmalloc.h"
+# include "gnu_ext.h"
+
/* Local Defines: */
# define obstack_chunk_alloc xmalloc
# define obstack_chunk_free free
/* ===================================================
Local Implementation:
=================================================== */
-/* Allocate a new pto */
+/** Allocate a new pto */
static pto_t *new_pto (ir_node *node)
{
pto_t *pto = obstack_alloc (pto_obst, sizeof (pto_t));
return (pto);
}
-/* Allocate a new alloc_pto */
+/** Allocate a new alloc_pto */
static alloc_pto_t *new_alloc_pto (ir_node *alloc, int n_ctxs)
{
int i;
return (alloc_pto);
}
-/* Allocate a new pto for a symconst */
+/** Allocate a new pto for a symconst */
static pto_t* new_symconst_pto (ir_node *symconst)
{
pto_t *pto;
}
}
-/* Helper to pto_init_graph --- clear the links of the given node */
+/** Helper to pto_init_graph --- clear the links of the given node */
static void clear_node_link (ir_node *node, void *_unused)
{
set_irn_link (node, NULL);
}
-/* Helper to pto_init_graph --- clear the links of all nodes */
+/** Helper to pto_init_graph --- clear the links of all nodes */
static void clear_graph_links (ir_graph *graph)
{
irg_walk_graph (graph, clear_node_link, NULL, NULL);
}
-/* Reset ALL the pto values for a new pass */
+/** Reset ALL the pto values for a new pass */
static void reset_node_pto (ir_node *node, void *env)
{
reset_env_t *reset_env = (reset_env_t*) env;
/* HERE ("end"); */
}
-/* Initialise primary name sources */
+/** Initialise primary name sources */
static void init_pto (ir_node *node, void *env)
{
init_env_t *init_env = (init_env_t*) env;
}
-/* Initialise the given graph for a new pass run */
+/** Initialise the given graph for a new pass run */
static void pto_init_graph_allocs (ir_graph *graph)
{
graph_info_t *ginfo = ecg_get_info (graph);
}
/* Initialise the Init module */
-void pto_init_init ()
+void pto_init_init (void)
{
pto_obst = (struct obstack*) xmalloc (sizeof (struct obstack));
}
/* Cleanup the Init module */
-void pto_init_cleanup ()
+void pto_init_cleanup (void)
{
obstack_free (pto_obst, NULL);
memset (pto_obst, 0x00, sizeof (struct obstack));
/* Initialise the Names of the Types/Entities */
-void pto_init_type_names ()
+void pto_init_type_names (void)
{
/* HERE ("start"); */
type_walk (clear_type_link, NULL, NULL);
\f
/*
$Log$
+ Revision 1.20 2005/12/05 12:19:54 beck
+ added missing include <assert.h> (not anymore included in libFirm)
+
+ Revision 1.19 2005/06/17 17:42:32 beck
+ added doxygen docu
+ fixed (void) function headers
+
+ Revision 1.18 2005/02/16 13:27:52 beck
+ added needed tv.h include
+
+ Revision 1.17 2005/01/14 14:12:51 liekweg
+ prepare gnu extension fix
+
Revision 1.16 2005/01/14 13:36:50 liekweg
don't put environments on the stack; handle consts