Commit baafbf8e authored by Michael Beck's avatar Michael Beck
Browse files

updated header

more doxygen docu

[r13556]
parent 7a14fe6a
...@@ -17,14 +17,11 @@ ...@@ -17,14 +17,11 @@
* PURPOSE. * PURPOSE.
*/ */
/* /**
* Project: libFIRM * @file
* File name: ir/opt/funccall.c * @brief Optimization of function calls.
* Purpose: optimization of function calls * @author Michael Beck
* Author: Michael Beck * @version $Id$
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2006 Universitt Karlsruhe
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
......
...@@ -17,25 +17,14 @@ ...@@ -17,25 +17,14 @@
* PURPOSE. * PURPOSE.
*/ */
/*
* Project: libFIRM
* File name: ir/opt/ldstopt.h
* Purpose: optimization of real function calls
* Author: Michael Beck
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2005 Universität Karlsruhe
*/
/** /**
* @file funccall.h * @file
* * @brief Optimization of function calls.
* Optimization of real function calls. * @author Michael Beck
* * @version $Id$
* @author Michael Beck
*/ */
#ifndef _FUNCCALL_H_ #ifndef FIRM_OPT_FUNCCALL_H
#define _FUNCCALL_H_ #define FIRM_OPT_FUNCCALL_H
/** /**
* Optimize function calls by handling const functions. * Optimize function calls by handling const functions.
...@@ -59,12 +48,12 @@ ...@@ -59,12 +48,12 @@
* *
* If callee information is valid, we also optimize polymorphic Calls. * If callee information is valid, we also optimize polymorphic Calls.
* *
* @param force_run if set, an optimization run is startet even * @param force_run if non-zero, an optimization run is started even
* if no const function graph was detected. * if no const function graph was detected.
* Else calls are only optimized if at least one * Else calls are only optimized if at least one
* const function graph was detected. * const function graph was detected.
* *
* If the fontend created external entities with irg_const_function * If the fontend created external entities with the irg_const_function
* property set, the force_run parameter should be set, else * property set, the force_run parameter should be set, else
* should be unset. * should be unset.
* *
...@@ -72,4 +61,4 @@ ...@@ -72,4 +61,4 @@
*/ */
void optimize_funccalls(int force_run); void optimize_funccalls(int force_run);
#endif /* _FUNCCALL_H_ */ #endif /* FIRM_OPT_FUNCCALL_H */
...@@ -17,17 +17,17 @@ ...@@ -17,17 +17,17 @@
* PURPOSE. * PURPOSE.
*/ */
/* /**
* Project: libFIRM * @file
* File name: ir/opt/gvn_pre.c * @brief Global Value Numbering Partial Redundancy Elimination
* Purpose: Global Value Numbering Partial Redundancy Elimination * (VanDrunen Hosking 2004)
* (VanDrunen Hosking 2004) * @author Michael Beck, Rubino Geiss
* Author: Michael Beck, Rubino Geiss * @version $Id$
* Created: * @summary
* CVS-ID: $Id$ *
* Copyright: (c) 1998-2006 Universitt Karlsruhe * Currently completely broken because our stes so NOT preserve
* the topological sort!
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
...@@ -975,7 +975,7 @@ static void eliminate_nodes(elim_pair *pairs) ...@@ -975,7 +975,7 @@ static void eliminate_nodes(elim_pair *pairs)
/* /*
* Argh: Endless loops cause problems, because the * Argh: Endless loops cause problems, because the
* insert algorithm did not terminate. We get tranalated nodes that * insert algorithm did not terminate. We get translated nodes that
* references the origin. These nodes are translated again and again... * references the origin. These nodes are translated again and again...
* *
* The current fix is to use post-dominance. This simple ignores * The current fix is to use post-dominance. This simple ignores
...@@ -989,6 +989,8 @@ void do_gvn_pre(ir_graph *irg) ...@@ -989,6 +989,8 @@ void do_gvn_pre(ir_graph *irg)
block_info *p; block_info *p;
unsigned antic_iter, insert_iter; unsigned antic_iter, insert_iter;
assert(!"COMPLETELY BROKEN YET, DO NOT USE");
/* register a debug mask */ /* register a debug mask */
FIRM_DBG_REGISTER(dbg, "firm.opt.gvn_pre"); FIRM_DBG_REGISTER(dbg, "firm.opt.gvn_pre");
firm_dbg_set_mask(dbg, SET_LEVEL_2); firm_dbg_set_mask(dbg, SET_LEVEL_2);
......
...@@ -17,17 +17,15 @@ ...@@ -17,17 +17,15 @@
* PURPOSE. * PURPOSE.
*/ */
/* /**
* Project: libFIRM * @file
* File name: ir/opt/gvn_pre.h * @brief Global Value Numbering Partial Redundancy Elimination
* Purpose: Global Value Numbering Partial Redundancy Elimination * (VanDrunen Hosking 2004)
* Author: Michael Beck, Rubino Geiss * @author Michael Beck, Rubino Geiss
* Created: * @version $Id$
* CVS-ID: $Id$
* Copyright: (c) 1998-2006 Universität Karlsruhe
*/ */
#ifndef __FIRM_OPT_GVN_PRE_H__ #ifndef FIRM_OPT_GVN_PRE_H
#define __FIRM_OPT_GVN_PRE_H__ #define FIRM_OPT_GVN_PRE_H
#include "firm_types.h" #include "firm_types.h"
...@@ -37,7 +35,13 @@ ...@@ -37,7 +35,13 @@
* Can be used to replace place_code() completely. * Can be used to replace place_code() completely.
* *
* Based on VanDrunen and Hosking 2004. * Based on VanDrunen and Hosking 2004.
*
* @param irg the graph
*
* @note
* Currently completely broken because the used sets do NOT
* preserve the topological sort of its elements.
*/ */
void do_gvn_pre(ir_graph *irg); void do_gvn_pre(ir_graph *irg);
#endif /* __FIRM_OPT_GVN_PRE_H__ */ #endif /* FIRM_OPT_GVN_PRE_H */
...@@ -17,14 +17,11 @@ ...@@ -17,14 +17,11 @@
* PURPOSE. * PURPOSE.
*/ */
/* /**
* Project: libFIRM * @file
* File name: ir/opt/ldstopt.c * @brief Load/Store optimizations.
* Purpose: load store optimizations * @author Michael Beck
* Author: Michael Beck * @version $Id$
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2007 Universitt Karlsruhe
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
......
...@@ -17,27 +17,16 @@ ...@@ -17,27 +17,16 @@
* PURPOSE. * PURPOSE.
*/ */
/*
* Project: libFIRM
* File name: ir/opt/ldstopt.h
* Purpose: load/store optimizations
* Author: Michael Beck
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2007 Universität Karlsruhe
*/
/** /**
* @file ldstopt.h * @file
* * @brief Load/Store optimizations.
* Load/Store optimization. * @author Michael Beck
* * @version $Id$
* @author Michael Beck
*/ */
#ifndef _LDSTOPT_H_ #ifndef FIRM_OPT_LDSTOPT_H
#define _LDSTOPT_H_ #define FIRM_OPT_LDSTOPT_H
#include "irgraph.h" #include "firm_types.h"
/** Load/Store optimization. /** Load/Store optimization.
* *
...@@ -65,4 +54,4 @@ ...@@ -65,4 +54,4 @@
*/ */
void optimize_load_store(ir_graph *irg); void optimize_load_store(ir_graph *irg);
#endif /* _LDSTOPT_H_ */ #endif /* FIRM_OPT_LDSTOPT_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment