* $Id$
*/
-#ifndef _FIRM_IRARCH_H
-#define _FIRM_IRARCH_H
+#ifndef _FIRM_IR_IRARCH_H_
+#define _FIRM_IR_IRARCH_H_
-#include "irnode.h"
+#include "firm_types.h"
/**
* A parameter structure that drives the machine dependent Firm
*/
void arch_dep_replace_divmod_by_const(ir_node **div, ir_node **mod, ir_node *irn);
-#endif /* _FIRM_IRARCH_H */
+#endif /* _FIRM_IR_IRARCH_H_ */
* Copyright: (c) 2002-2003 Universität Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
+#ifndef _FIRM_IR_ICGCONS_H_
+#define _FIRM_IR_ICGCONS_H_
-
-#ifndef _CONSTRUCT_H_
-#define _CONSTRUCT_H_
-
-
-#include "entity.h"
+#include "firm_types.h"
/** The state of the interprocedural view.
*
the ir. Sets ip_view_no in irp. */
void cg_destruct(void);
-
-#endif /* _CONSTRUCT_H_ */
+#endif /* _FIRM_IR_ICGCONS_H_ */
*/
/**
+ * @file irgopt.h
+ *
* Entfernen von nicht erreichbaren (aufrufbaren) Methoden. Die Menge
* der nicht erreichbaren Methoden wird aus der Abschätzung der
* Aufrufrelation bestimmt.
*/
+#ifndef _FIRM_IR_ICGOPT_H_
+#define _FIRM_IR_ICGOPT_H_
-
-#ifndef _GC_IRGS_H_
-#define _GC_IRGS_H_
-
-
-#include "entity.h"
-
+#include "firm_types.h"
/* Entfernt alle Methoden, die von den Methoden aus "keep_arr"
* (bezgl. der Abschaetzung get_Call_callee) nicht erreichbar sind. Die
* Frees all interprocedural loop information. */
void gc_irgs(int n_keep, entity *keep_arr[]);
-
-#endif /* _GC_IRGS_H_ */
+#endif /* _FIRM_IR_ICGOPT_H_ */
* node.
*
*/
-#ifndef _IRCONS_H_
-#define _IRCONS_H_
+#ifndef _FIRM_IR_IRCONS_H_
+#define _FIRM_IR_IRCONS_H_
#include "firm_common.h"
#include "irnode.h"
*/
typedef ir_node *uninitialized_local_variable_func_t(ir_graph *irg, ir_mode *mode, int pos);
-#endif /* _IRCONS_H_ */
+#endif /* _FIRM_IR_IRCONS_H_ */
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
-
/**
* @file irdump.h
*
* Most routines use the name of the passed entity as the name of the
* file dumped to.
*/
+#ifndef _FIRM_IR_IRDUMP_H_
+#define _FIRM_IR_IRDUMP_H_
-
-# ifndef _IRDUMP_H_
-# define _IRDUMP_H_
-
-# include "irnode.h"
-# include "irgraph.h"
-# include "irloop.h"
+#include "irnode.h"
+#include "irgraph.h"
+#include "irloop.h"
/**
* Names of the 32 supported colors
*/
void dump_remv_node_info_callback(void *handle);
-# endif /* _IRDUMP_H_ */
+#endif /* _FIRM_IR_IRDUMP_H_ */
* @date 3.2.2005
*/
-#ifndef _FIRM_EDGES_H
-#define _FIRM_EDGES_H
+#ifndef _FIRM_IR_EDGES_H
+#define _FIRM_IR_EDGES_H
#include "firm_types.h"
*/
extern void edges_deactivate(ir_graph *irg);
-#endif /* _FIRM_EDGES_H */
+#endif /* _FIRM_IR_EDGES_H */
* 4. Verification flag
* This one controls the behavior of node and type verifications
*/
-#ifndef _IRFLAG_H_
-#define _IRFLAG_H_
+#ifndef _FIRM_IR_IRFLAG_H_
+#define _FIRM_IR_IRFLAG_H_
#include "firm_types.h"
*/
void do_node_verification(firm_verification_t mode);
-#endif /* _IRFLAG_H_ */
+#endif /* _FIRM_IR_IRFLAG_H_ */
*
* @author Martin Trapp, Christian Schaefer
*/
+#ifndef _FIRM_IR_IRGMOD_H_
+#define _FIRM_IR_IRGMOD_H_
-
-# ifndef _IRGMOD_H_
-# define _IRGMOD_H_
-
-# include "irnode.h"
+#include "firm_types.h"
/** Exchanges two nodes by conserving edges leaving old (i.e.,
pointers pointing to old). Turns the old node into an Id. */
*/
void part_block(ir_node *node);
-#endif /* ifndef _IRGMOD_H_ */
+#endif /* ifndef _FIRM_IR_IRGMOD_H_ */
*
* @author Christian Schaefer, Goetz Lindenmaier
*/
+#ifndef _FIRM_IR_IRGOPT_H_
+#define _FIRM_IR_IRGOPT_H_
-# ifndef _IRGOPT_H_
-# define _IRGOPT_H_
-
-# include "irgraph.h"
+#include "firm_types.h"
/** Applies local optimizations (see iropt.h) to all nodes reachable from node n.
*
*/
void remove_critical_cf_edges(ir_graph *irg);
-# endif /* _IRGOPT_H_ */
+#endif /* _FIRM_IR_IRGOPT_H_ */
*
* @author Martin Trapp, Christian Schaefer
*/
-#ifndef _IRGRAPH_H_
-#define _IRGRAPH_H_
+#ifndef _FIRM_IR_IRGRAPH_H_
+#define _FIRM_IR_IRGRAPH_H_
#include <stddef.h>
*/
size_t register_additional_graph_data(size_t size);
-# endif /* _IRGRAPH_H_ */
+#endif /* _FIRM_IR_IRGRAPH_H_ */
* Uses current_ir_graph (from irgraph.h)!!! Set it to the proper
* graph before starting the walker.
*/
+#ifndef _FIRM_IR_IRGWALK_H_
+#define _FIRM_IR_IRGWALK_H_
-
-# ifndef _IRGWALK_H_
-# define _IRGWALK_H_
-
-# include "firm_types.h"
+#include "firm_types.h"
/* type of callback function for ir_graph walk */
#ifndef _IRG_WALK_FUNC_TYPEDEF_
*/
void irg_walk_anchors(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env);
-# endif /* _IRGWALK_H_ */
+#endif /* _FIRM_IR_IRGWALK_H_ */
*
* @author Michael Beck
*/
-#ifndef __IRHOOKS_H__
-#define __IRHOOKS_H__
+#ifndef _FIRM_IR_IRHOOKS_H_
+#define _FIRM_IR_IRHOOKS_H_
#include "firm_config.h"
#include "irop.h"
/* the initializer, move to hooks_t.h some day */
int firm_init_hooks(void);
-#endif /* __IRHOOKS_H__ */
+#endif /* _FIRM_IR_IRHOOKS_H_ */
*
*/
-#ifndef _IRMODE_H_
-#define _IRMODE_H_
+#ifndef _FIRM_IR_IRMODE_H_
+#define _FIRM_IR_IRMODE_H_
#include "firm_types.h"
#include "ident.h"
*/
int mode_wrap_around(const ir_mode *mode);
-#endif /* _IRMODE_H_ */
+#endif /* _FIRM_IR_IRMODE_H_ */
* Copyright: (c) 1998-2003 Universität Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
-#ifndef _IRNODE_H_
-#define _IRNODE_H_
+#ifndef _FIRM_IR_IRNODE_H_
+#define _FIRM_IR_IRNODE_H_
#include <stddef.h>
}
#endif
-#endif /* _IRNODE_H_ */
+#endif /* _FIRM_IR_IRNODE_H_ */
* definition is close to the operations specified in UKA Tech-Report
* 1999-14
*/
-#ifndef _IROP_H_
-#define _IROP_H_
+#ifndef _FIRM_IR_IROP_H_
+#define _FIRM_IR_IROP_H_
#include "firm_types.h"
oparity_trinary, /**< an trinary operator -- considering 'numeric' arguments.*/
oparity_zero, /**< no operators, as e.g. Const. */
oparity_variable, /**< arity not fixed by opcode, but statically
- known. E.g., number of arguments to call. */
+ known. E.g., number of arguments to call. */
oparity_dynamic, /**< arity depends on state of firm representation.
- Can change by optimizations...
- We must allocate a dynamic in array for the node! */
+ Can change by optimizations...
+ We must allocate a dynamic in array for the node! */
oparity_any /**< other arity */
} op_arity;
/** The irop flags */
typedef enum {
irop_flag_none = 0x00000000, /**< nothing */
- irop_flag_labeled = 0x00000001, /**< if set, Output edge labels on in-edges in vcg graph */
- irop_flag_commutative = 0x00000002, /**< operation is commutative */
+ irop_flag_labeled = 0x00000001, /**< if set, Output edge labels on in-edges in vcg graph */
+ irop_flag_commutative = 0x00000002, /**< operation is commutative */
irop_flag_cfopcode = 0x00000004, /**< is a control flow operation */
- irop_flag_ip_cfopcode = 0x00000008, /**< operation manipulates interprocedural control flow */
- irop_flag_fragile = 0x00000010, /**< set if the operation can change the control flow because
+ irop_flag_ip_cfopcode = 0x00000008, /**< operation manipulates interprocedural control flow */
+ irop_flag_fragile = 0x00000010, /**< set if the operation can change the control flow because
of an exception */
irop_flag_forking = 0x00000020, /**< the operation is a forking control flow */
irop_flag_highlevel = 0x00000040, /**< the operation is a pure high-level one and can be
/** Returns the ir_op_ops of an ir_op. */
const ir_op_ops *get_op_ops(const ir_op *op);
-#endif /* _IROP_H_ */
+#endif /* _FIRM_IR_IROP_H_ */
* File name: ir/ir/iropt.h
* Purpose: iropt --- optimizations of an ir node.
* Author: Martin Trapp, Christian Schaefer
- * Modified by: Goetz Lindenmaier
+ * Modified by: Goetz Lindenmaier, Michael Beck
* Created:
* CVS-ID: $Id$
* Copyright: (c) 1998-2003 Universität Karlsruhe
*/
/**
-* @file iropt.h
-*
-* Declarations for optimizations of an ir node.
-*
-* @author Martin Trapp, Christian Schaefer
-*/
-
-
-# ifndef _IROPT_H_
-# define _IROPT_H_
+ * @file iropt.h
+ *
+ * Declarations for optimizations of an ir node.
+ *
+ * @author Martin Trapp, Christian Schaefer
+ */
+#ifndef _FIRM_IR_IROPT_H_
+#define _FIRM_IR_IROPT_H_
-# include "irnode.h"
-# include "irgraph.h"
-# include "irflag.h"
+#include "firm_types.h"
/** If the expression referenced can be evaluated statically
* computed_value returns a tarval representing the result.
* Else returns tarval_bad. */
-tarval *computed_value (ir_node *n);
+tarval *computed_value(ir_node *n);
/** Applies all optimizations to n that are expressible as a pattern
* in Firm, i.e., they need not a walk of the graph.
* An equivalent optimization is applied in the constructors defined in
* ircons.ch. There n is freed if a better node could be found.
*/
-ir_node *optimize_in_place (ir_node *n);
+ir_node *optimize_in_place(ir_node *n);
-# endif /* _IROPT_H_ */
+#endif /* _FIRM_IR_IROPT_H_ */
* @author Sebastian Hack
* @date 29.11.2004
*/
-
-#ifndef _IRPRINTF_H
-#define _IRPRINTF_H
+#ifndef _FIRM_IR_IRPRINTF_H_
+#define _FIRM_IR_IRPRINTF_H_
#include "firm_config.h"
#include <libcore/lc_printf.h>
#endif /* WITH_LIBCORE */
-#endif /* _IRPRINTF_H */
+#endif /* _FIRM_IR_IRPRINTF_H_ */
*/
/**
-* @file irprog.h
-*
-* ir representation of a program.
-*
-* @author Goetz Lindenmaier
-*
-* This file defines a construct that keeps all information about a
-* program:
-* - A reference point to the method to be executed on program start.
-* - A list of all procedures.
-* - A list of all types.
-* - A global type that contais all global variables and procedures that do
-* not belong to a class. This type represents the data segment of the
-* program. It is not the base class of
-* all classes in a class hierarchy (as, e.g., "object" in java).
-* - A degenerated graph that contains constant expressions.
-* - interprocedural outs state.
-* - a flag indicating validity of the interprocedural representation.
-* - the output file name
-*/
-
-# ifndef _IRPROG_H_
-# define _IRPROG_H_
-
-# include "irnode.h"
-# include "type.h"
-# include "irgraph.h"
+ * @file irprog.h
+ *
+ * ir representation of a program.
+ *
+ * @author Goetz Lindenmaier
+ *
+ * This file defines a construct that keeps all information about a
+ * program:
+ * - A reference point to the method to be executed on program start.
+ * - A list of all procedures.
+ * - A list of all types.
+ * - A global type that contais all global variables and procedures that do
+ * not belong to a class. This type represents the data segment of the
+ * program. It is not the base class of
+ * all classes in a class hierarchy (as, e.g., "object" in java).
+ * - A degenerated graph that contains constant expressions.
+ * - interprocedural outs state.
+ * - a flag indicating validity of the interprocedural representation.
+ * - the output file name
+ */
+
+#ifndef _FIRM_IR_IRPROG_H_
+#define _FIRM_IR_IRPROG_H_
+
+#include "irnode.h"
+#include "type.h"
+#include "irgraph.h"
/**
irg_callee_info_state get_irp_callee_info_state(void);
void set_irp_callee_info_state(irg_callee_info_state s);
-#endif /* ifndef _IRPROG_H_ */
+#endif /* ifndef _FIRM_IR_IRPROG_H_ */
* @file irprog_t.h
*/
-#ifndef _IRPROG_T_H_
-#define _IRPROG_T_H_
+#ifndef _FIRM_IR_IRPROG_T_H_
+#define _FIRM_IR_IRPROG_T_H_
#ifdef HAVE_CONFIG_H
#include "firm_config.h"
#define get_const_code_irg() _get_const_code_irg()
#define get_glob_type() _get_glob_type()
-#endif /* ifndef _IRPROG_T_H_ */
+#endif /* ifndef _FIRM_IR_IRPROG_T_H_ */
*
* $Id$
*/
-
-#ifndef _FIRM_REFLECT_H
-#define _FIRM_REFLECT_H
+#ifndef _FIRM_IR_REFLECT_H_
+#define _FIRM_IR_REFLECT_H_
#include <limits.h>
+#include "firm_types.h"
#include "irop.h"
-#include "irnode.h"
#define RFLCT_MC(m) rflct_ms_ ## m
typedef enum {
int rflct_signature_get_index(const rflct_sig_t *sig, int is_use, int num);
-#endif /* _FIRM_REFLECT_H */
+#endif /* _FIRM_IR_REFLECT_H_ */
*
* @author Christian Schaefer
*/
-#ifndef _IRVRFY_H_
-#define _IRVRFY_H_
+#ifndef _FIRM_IR_IRVRFY_H_
+#define _FIRM_IR_IRVRFY_H_
#include "firm_types.h"
* Tests the modes of checknode and its predecessors.
* checknode must be in current_ir_graph.
*
- * \return
+ * @return
* NON-zero on success
*/
int irn_vrfy(ir_node *checknode);
* Tests the modes of checknode and its predecessors.
* checknode must be in given ir_graph.
*
- * \return
+ * @return
* NON-zero on success
*/
int irn_vrfy_irg(ir_node *checknode, ir_graph *irg);
/**
* Same as irn_vrfy_irg, but temporary sets verification mode to
* NODE_VERIFICATION_ERROR_ONLY.
- * \return
+ * @return
* NON-zero on success
*/
int irn_vrfy_irg_dump(ir_node *checknode, ir_graph *irg, const char **bad_string);
* Calls irn_vrfy() for each node in irg.
* Graph must be in state "op_pin_state_pinned".
*
- * \return
+ * @return
* NON-zero on success.
*/
int irg_verify(ir_graph *irg, unsigned flags);
*/
void vrfy_enable_entity_tests(int enable);
-# endif /* _IRVRFY_H_ */
+#endif /* _FIRM_IR_IRVRFY_H_ */
* Licence: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
-#ifndef __PSEUDO_IRG_H__
-#define __PSEUDO_IRG_H__
-
-#include "entity.h"
-#include "irgraph.h"
+#ifndef _FIRM_IR_PSEUDO_IRG_H_
+#define _FIRM_IR_PSEUDO_IRG_H_
+#include "firm_types.h"
/** Create a new ir graph to build a pseudo representation of a procedure.
*
void set_visit_pseudo_irgs(int x);
int get_visit_pseudo_irgs(void);
-#endif
+#endif /* _FIRM_IR_PSEUDO_IRG_H_ */
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
-#ifndef _TYPE_T_H_
-#define _TYPE_T_H_
+#ifndef _FIRM_TR_TYPE_T_H_
+#define _FIRM_TR_TYPE_T_H_
#include "firm_config.h"
#include "type.h"
#define get_method_calling_convention(method) _get_method_calling_convention(method)
#define set_method_calling_convention(method, cc_mask) _set_method_calling_convention(method, cc_mask)
-#endif /* _TYPE_T_H_ */
+#endif /* _FIRM_TR_TYPE_T_H_ */