unified .h include guards
fixed include structure (every files includes needed headers)
[r13560]
21 files changed:
- * This is the main ia32 firm backend driver.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief This is the main ia32 firm backend driver.
+ * @author Christian Wuerdig
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
-#ifndef _BEARCH_IA32_T_H_
-#define _BEARCH_IA32_T_H_
+/**
+ * @file
+ * @brief This is the main ia32 firm backend driver.
+ * @author Christian Wuerdig
+ * @version $Id$
+ */
+#ifndef FIRM_BE_IA32_BEARCH_IA32_T_H
+#define FIRM_BE_IA32_BEARCH_IA32_T_H
#ifdef NDEBUG
#define SET_IA32_ORIG_NODE(n, o)
#ifdef NDEBUG
#define SET_IA32_ORIG_NODE(n, o)
#define SET_IA32_ORIG_NODE(n, o) set_ia32_orig_node(n, o);
#endif /* NDEBUG */
#define SET_IA32_ORIG_NODE(n, o) set_ia32_orig_node(n, o);
#endif /* NDEBUG */
const ir_mode *imode, const ir_mode *omode,
void *context);
const ir_mode *imode, const ir_mode *omode,
void *context);
-#endif /* _BEARCH_IA32_T_H_ */
+#endif /* FIRM_BE_IA32_BEARCH_IA32_T_H */
- * This file contains macros to update ia32 firm statistics
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief This file contains macros to update ia32 firm statistics.
+ * @author Christian Wuerdig
+ * @version $Id$
-#ifndef _IA32_DBG_STAT_H_
-#define _IA32_DBG_STAT_H_
+#ifndef FIRM_BE_IA32_IA32_DBG_STAT_H
+#define FIRM_BE_IA32_IA32_DBG_STAT_H
#include "irhooks.h"
#include "dbginfo_t.h"
#include "irhooks.h"
#include "dbginfo_t.h"
__dbg_info_merge_pair(nadd, lea, dbg_backend); \
} while(0)
__dbg_info_merge_pair(nadd, lea, dbg_backend); \
} while(0)
-#endif /* _IA32_DBG_STAT_H_ */
+#endif /* FIRM_BE_IA32_IA32_DBG_STAT_H */
- * @brief This file implements the node emitter.
- * @author Christian Wuerdig, Matthias Braun
- * @version $Id$
+ * @brief This file implements the ia32 node emitter.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * Header file for ia32 emitter, containing some function definitions and types.
- * @author Christian Wuerdig, Matthias Braun
- * $Id$
+ * @file
+ * @brief This file implements the ia32 node emitter.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
-#ifndef _IA32_EMITTER_H_
-#define _IA32_EMITTER_H_
+#ifndef FIRM_BE_IA32_IA32_EMITTER_H
+#define FIRM_BE_IA32_IA32_EMITTER_H
-#include "../bearch_t.h"
#include "../beemitter.h"
#include "bearch_ia32_t.h"
#include "../beemitter.h"
#include "bearch_ia32_t.h"
void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
-#endif /* _IA32_EMITTER_H_ */
+#endif /* FIRM_BE_IA32_IA32_EMITTER_H */
- * Function prototypes for irg finishing.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief This file implements functions to finalize the irg for emit.
+ * @author Christian Wuerdig
+ * @version $Id$
+#ifndef FIRM_BE_IA32_IA32_FINISH_H
+#define FIRM_BE_IA32_IA32_FINISH_H
-#ifndef _IA32_FINISH_H_
-#define _IA32_FINISH_H_
+#include "irgraph.h"
+#include "bearch_ia32_t.h"
- * Check 2-Addesscode constraints and call peephole optimizations.
+ * Check 2-Addresscode constraints and call peephole optimizations.
* @param irg The irg to finish
* @param cg The codegenerator object for the irg
*/
void ia32_finish_irg(ir_graph *irg, ia32_code_gen_t *cg);
* @param irg The irg to finish
* @param cg The codegenerator object for the irg
*/
void ia32_finish_irg(ir_graph *irg, ia32_code_gen_t *cg);
-#endif /* _IA32_FINISH_H_ */
+#endif /* FIRM_BE_IA32_IA32_FINISH_H */
* @author Matthias Braun
* @version $Id$
*/
* @author Matthias Braun
* @version $Id$
*/
-#ifndef FIRM_BE_IA32_FPU_H
-#define FIRM_BE_IA32_FPU_H
+#ifndef FIRM_BE_IA32_IA32_FPU_H
+#define FIRM_BE_IA32_IA32_FPU_H
#include "bearch_ia32_t.h"
#include "bearch_ia32_t.h"
*/
void ia32_setup_fpu_mode(ia32_code_gen_t *cg);
*/
void ia32_setup_fpu_mode(ia32_code_gen_t *cg);
+#endif /* FIRM_BE_IA32_IA32_FPU_H */
- * This file implements the mapping of 64Bit intrinsic functions to
- * code or library calls.
- * @author Michael Beck
- * $Id$
+ * @file
+ * @brief This file implements the mapping of 64Bit intrinsic
+ * functions to code or library calls.
+ * @author Michael Beck
+ * @version $Id$
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
- * Register mapping for firm nodes. Stolen from bearch_firm :)
- * Calculate requirements for register parameter.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Register param constraints and some other register handling tools.
+ * @author Christian Wuerdig
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * General reqister mapping stuff.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Register param constraints and some other register handling tools.
+ * @author Christian Wuerdig
+ * @version $Id$
-
-#ifndef _IA32_MAP_REGS_H_
-#define _IA32_MAP_REGS_H_
+#ifndef FIRM_BE_IA32_IA32_MAP_REGS_H
+#define FIRM_BE_IA32_IA32_MAP_REGS_H
#include "set.h"
#include "../bearch_t.h"
#include "set.h"
#include "../bearch_t.h"
-#include "ia32_nodes_attr.h"
/**
* Convenience macro to check if register <code>out<\code>
/**
* Convenience macro to check if register <code>out<\code>
*/
const arch_register_t *ia32_get_RegParam_reg(int n, ir_mode **modes, long nr, unsigned cc);
*/
const arch_register_t *ia32_get_RegParam_reg(int n, ir_mode **modes, long nr, unsigned cc);
-#endif /* _IA32_MAP_REGS_H_ */
+#endif /* FIRM_BE_IA32_IA32_MAP_REGS_H */
+ * @file
+ * @brief Handling of ia32 specific firm opcodes.
+ * @author Christian Wuerdig
+ * @version $Id$
+ *
* This file implements the creation of the achitecture specific firm opcodes
* and the coresponding node constructors for the ia32 assembler irg.
* This file implements the creation of the achitecture specific firm opcodes
* and the coresponding node constructors for the ia32 assembler irg.
- * @author Christian Wuerdig
- * $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * Function prototypes for the assembler ir node constructors.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Handling of ia32 specific firm opcodes.
+ * @author Christian Wuerdig
+ * @version $Id$
+ *
+ * This file implements the creation of the achitecture specific firm opcodes
+ * and the coresponding node constructors for the ia32 assembler irg.
-
-#ifndef _IA32_NEW_NODES_H_
-#define _IA32_NEW_NODES_H_
+#ifndef FIRM_BE_IA32_IA32_NEW_NODES_H
+#define FIRM_BE_IA32_IA32_NEW_NODES_H
#include "firm_config.h"
#include "ia32_nodes_attr.h"
#include "firm_config.h"
#include "ia32_nodes_attr.h"
/* Include the generated headers */
#include "gen_ia32_new_nodes.h"
/* Include the generated headers */
#include "gen_ia32_new_nodes.h"
-#endif /* _IA32_NEW_NODES_H_ */
+#endif /* FIRM_BE_IA32_IA32_NEW_NODES_H */
- * Type definitions for ia32 node attributes.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Type definitions for ia32 node attributes.
+ * @author Christian Wuerdig
+ * @version $Id$
-
-#ifndef _IA32_NODES_ATTR_H_
-#define _IA32_NODES_ATTR_H_
+#ifndef FIRM_BE_IA32_IA32_NODES_ATTR_H
+#define FIRM_BE_IA32_IA32_NODES_ATTR_H
const arch_register_t *slots[1]; /**< register slots for assigned registers */
} ia32_attr_t;
const arch_register_t *slots[1]; /**< register slots for assigned registers */
} ia32_attr_t;
-#endif /* _IA32_NODES_ATTR_H_ */
+#endif /* FIRM_BE_IA32_IA32_NODES_ATTR_H */
- * Project: libFIRM
- * File name: ir/be/ia32/ia32_optimize.c
- * Purpose: Implements several optimizations for IA32
- * Author: Christian Wuerdig
- * CVS-ID: $Id$
- * Copyright: (c) 2006 Universitaet Karlsruhe
- * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+ * @file
+ * @brief Implements several optimizations for IA32.
+ * @author Christian Wuerdig
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * Function prototypes for ia32 optimizations
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Implements several optimizations for IA32.
+ * @author Christian Wuerdig
+ * @version $Id$
+#ifndef FIRM_BE_IA32_IA32_OPTIMIZE_H
+#define FIRM_BE_IA32_IA32_OPTIMIZE_H
-#ifndef _IA32_OPTIMIZE_H_
-#define _IA32_OPTIMIZE_H_
+#include "irgraph.h"
+#include "bearch_ia32_t.h"
/**
* Prepares irg for codegeneration. Places consts and transform reference mode
/**
* Prepares irg for codegeneration. Places consts and transform reference mode
*/
void ia32_peephole_optimization(ir_graph *irg, ia32_code_gen_t *cg);
*/
void ia32_peephole_optimization(ir_graph *irg, ia32_code_gen_t *cg);
-#endif /* _IA32_OPTIMIZE_H_ */
+#endif /* FIRM_BE_IA32_IA32_OPTIMIZE_H */
- * This file implements the IR transformation from firm into ia32-Firm.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief This file implements the IR transformation from firm into ia32-Firm.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * Function prototypes for Firm into ia32-Firm transformations.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief This file implements the IR transformation from firm into ia32-Firm.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
-
-#ifndef _IA32_TRANSFORM_H_
-#define _IA32_TRANSFORM_H_
+#ifndef FIRM_BE_IA32_IA32_TRANSFORM_H
+#define FIRM_BE_IA32_IA32_TRANSFORM_H
#include "firm_config.h"
#include "bearch_ia32_t.h"
#include "firm_config.h"
#include "bearch_ia32_t.h"
*/
void ia32_transform_graph(ia32_code_gen_t *cg);
*/
void ia32_transform_graph(ia32_code_gen_t *cg);
-#if 0
-/**
- * Enters all transform functions into the generic pointer
- */
-void ia32_register_transformers(void);
-
-/**
- * Transforms the given Firm node into one or more appropriate ia32 nodes.
- */
-void ia32_transform_node(ir_node *node, void *env);
-#endif
-
/**
* The Psi selector can be a tree of compares combined with "And"s and "Or"s.
* We create a Set node, respectively a xCmp in case the Psi is a float, for each
/**
* The Psi selector can be a tree of compares combined with "And"s and "Or"s.
* We create a Set node, respectively a xCmp in case the Psi is a float, for each
*/
ir_entity *ia32_gen_fp_known_const(ia32_known_const_t kct);
*/
ir_entity *ia32_gen_fp_known_const(ia32_known_const_t kct);
-#endif /* _IA32_TRANSFORM_H_ */
+#endif /* FIRM_BE_IA32_IA32_TRANSFORM_H */
- * Contains implementation of some useful functions for ia32 backend.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Contains implementation of some useful functions for ia32 backend.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * Contains some useful functions for ia32 backend.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief Contains implementation of some useful functions for ia32 backend.
+ * @author Christian Wuerdig, Matthias Braun
+ * @version $Id$
+#ifndef FIRM_BE_IA32_IA32_UTIL_H
+#define FIRM_BE_IA32_IA32_UTIL_H
-#ifndef _IA32_UTIL_H_
-#define _IA32_UTIL_H_
+#include "irnode.h"
+#include "irmode.h"
/**
* Returns the first Proj with given mode connected to irn.
/**
* Returns the first Proj with given mode connected to irn.
*/
ir_node *ia32_get_res_proj(const ir_node *irn);
*/
ir_node *ia32_get_res_proj(const ir_node *irn);
-#endif /* _IA32_UTIL_H_ */
+#endif /* FIRM_BE_IA32_IA32_UTIL_H */
- * This file implements the x87 support and virtual to stack
- * register translation for the ia32 backend.
- *
- * @author: Michael Beck
- *
- * $Id$
+ * @file
+ * @brief This file implements the x87 support and virtual to stack
+ * register translation for the ia32 backend.
+ * @author Michael Beck
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
- * This file implements the x87 support and virtual to stack
- * register translation.
- *
- * $Id$
+ * @file
+ * @brief This file implements the x87 support and virtual to stack
+ * register translation for the ia32 backend.
+ * @author Michael Beck
+ * @version $Id$
-#ifndef _IA32_X87_H_
-#define _IA32_X87_H_
+#ifndef FIRM_BE_IA32_IA32_X87_H
+#define FIRM_BE_IA32_IA32_X87_H
-#include "../bearch_t.h"
+#include "../bearch.h"
+#include "../beirg.h"
/**
* Run a simulation and fix all virtual instructions for a graph.
/**
* Run a simulation and fix all virtual instructions for a graph.
*/
void x87_simulate_graph(const arch_env_t *env, be_irg_t *birg);
*/
void x87_simulate_graph(const arch_env_t *env, be_irg_t *birg);
-#endif /* _IA32_X87_H_ */
+#endif /* FIRM_BE_IA32_IA32_X87_H */