Commit d2c1b019 authored by Matthias Braun's avatar Matthias Braun
Browse files

reorganize backend headers (kill some _t variants in favor of a be_types.h)

[r26317]
parent f0c26317
......@@ -29,7 +29,7 @@
#include "irnode.h"
#include "debug.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "../beemitter.h"
#include "bearch_TEMPLATE_t.h"
......
......@@ -28,7 +28,7 @@
#include "irnode.h"
#include "set.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "TEMPLATE_nodes_attr.h"
int TEMPLATE_cmp_irn_reg_assoc(const void *a, const void *b, size_t len);
......
......@@ -39,7 +39,7 @@
#include "irprintf.h"
#include "xmalloc.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "TEMPLATE_nodes_attr.h"
#include "TEMPLATE_new_nodes.h"
......
......@@ -25,7 +25,7 @@
#ifndef FIRM_BE_TEMPLATE_TEMPLATE_NODES_ATTR_H
#define FIRM_BE_TEMPLATE_TEMPLATE_NODES_ATTR_H
#include "../bearch_t.h"
#include "../bearch.h"
typedef struct TEMPLATE_attr_t TEMPLATE_attr_t;
......
......@@ -34,14 +34,15 @@
#include "bitset.h"
#include "debug.h"
#include "../bearch_t.h"
#include "be.h"
#include "../bearch.h"
#include "../benode_t.h"
#include "../belower.h"
#include "../besched_t.h"
#include "be.h"
#include "../besched.h"
#include "../beabi.h"
#include "../bemodule.h"
#include "../begnuas.h"
#include "../belistsched.h"
#include "bearch_TEMPLATE_t.h"
......
......@@ -25,7 +25,7 @@
#ifndef FIRM_BE_TEMPLATE_BEARCH_TEMPLATE_H
#define FIRM_BE_TEMPLATE_BEARCH_TEMPLATE_H
#include "../bearch_t.h"
#include "../bearch.h"
extern const arch_isa_if_t TEMPLATE_isa_if;
......
......@@ -45,7 +45,7 @@
#include "../besched.h"
#include "../beblocksched.h"
#include "../beirg_t.h"
#include "../beirg.h"
#include "../begnuas.h"
#include "../be_dbgout.h"
......
......@@ -31,7 +31,7 @@
#include "irargs_t.h"
#include "debug.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "bearch_arm_t.h"
......
......@@ -29,7 +29,7 @@
#include "irnode.h"
#include "set.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "arm_nodes_attr.h"
const arch_register_t *arm_get_RegParam_reg(int n);
......
......@@ -40,7 +40,7 @@
#include "irprintf.h"
#include "xmalloc.h"
#include "../bearch_t.h"
#include "../bearch.h"
#include "arm_nodes_attr.h"
#include "arm_new_nodes.h"
......
......@@ -28,7 +28,7 @@
#include "firm_types.h"
#include "irnode_t.h"
#include "../bearch_t.h"
#include "../bearch.h"
/**
* Possible ARM register shift types.
......
......@@ -39,7 +39,7 @@
#include "error.h"
#include "../benode_t.h"
#include "../beirg_t.h"
#include "../beirg.h"
#include "../beutil.h"
#include "../betranshlp.h"
#include "bearch_arm_t.h"
......
......@@ -44,18 +44,19 @@
#include "array_t.h"
#include "irtools.h"
#include "../bearch_t.h" /* the general register allocator interface */
#include "../bearch.h" /* the general register allocator interface */
#include "../benode_t.h"
#include "../belower.h"
#include "../besched_t.h"
#include "../besched.h"
#include "be.h"
#include "../beabi.h"
#include "../bemachine.h"
#include "../beilpsched.h"
#include "../bemodule.h"
#include "../beirg_t.h"
#include "../beirg.h"
#include "../bespillslots.h"
#include "../begnuas.h"
#include "../belistsched.h"
#include "bearch_arm_t.h"
......
......@@ -26,7 +26,7 @@
#ifndef FIRM_BE_ARM_BEARCH_ARM_H
#define FIRM_BE_ARM_BEARCH_ARM_H
#include "../bearch_t.h"
#include "../bearch.h"
extern const arch_isa_if_t arm_isa_if;
......
......@@ -28,8 +28,8 @@
#define FIRM_BE_BE_DBGOUT_T_H
#include "obst.h"
#include "beabi_t.h"
#include "firm_types.h"
#include "be_types.h"
typedef struct dbg_handle dbg_handle;
......
......@@ -34,8 +34,7 @@
#include "pmap.h"
#include "be.h"
#include "bearch_t.h"
#include "beirg.h"
#include "be_types.h"
#define DUMP_NONE 0
#define DUMP_INITIAL (1 << 0)
......
......@@ -19,12 +19,38 @@
/**
* @file
* @brief Type declarations for the ABI module.
* @author Sebastian Hack
* @version $Id$
* @brief Forward declarations of backend types
* @author Matthias Braun
* @version $Id: besched.h 25982 2009-05-15 22:09:38Z matze $
*/
#ifndef FIRM_BE_BEABI_T_H
#define FIRM_BE_BEABI_T_H
#ifndef FIRM_BE_TYPES_H
#define FIRM_BE_TYPES_H
typedef unsigned int sched_timestep_t;
typedef struct be_irg_t be_irg_t;
typedef struct arch_register_class_t arch_register_class_t;
typedef struct arch_register_req_t arch_register_req_t;
typedef struct arch_register_t arch_register_t;
typedef struct arch_flag_t arch_flag_t;
typedef struct arch_inverse_t arch_inverse_t;
typedef struct arch_isa_if_t arch_isa_if_t;
typedef struct arch_env_t arch_env_t;
typedef struct arch_code_generator_t arch_code_generator_t;
typedef struct arch_code_generator_if_t arch_code_generator_if_t;
/**
* Some flags describing a node in more detail.
*/
typedef enum arch_irn_flags_t {
arch_irn_flags_none = 0, /**< Node flags. */
arch_irn_flags_dont_spill = 1U << 0, /**< This must not be spilled. */
arch_irn_flags_rematerializable = 1U << 1, /**< This can be replicated instead of spilled/reloaded. */
arch_irn_flags_modify_flags = 1U << 2 /**< I modify flags. */
} arch_irn_flags_t;
typedef struct _be_lv_t be_lv_t;
typedef struct _be_lv_info_t be_lv_info_t;
typedef struct _be_abi_call_flags_bits_t be_abi_call_flags_bits_t;
typedef union _be_abi_call_flags_t be_abi_call_flags_t;
......@@ -33,4 +59,19 @@ typedef struct _be_abi_call_t be_abi_call_t;
typedef struct _be_abi_irg_t be_abi_irg_t;
typedef struct _be_stack_layout_t be_stack_layout_t;
#endif /* FIRM_BE_BEABI_T_H */
typedef struct _be_dom_front_info_t be_dom_front_info_t;
typedef struct _list_sched_selector_t list_sched_selector_t;
typedef struct _ilp_sched_selector_t ilp_sched_selector_t;
typedef struct _ilp_sched_selector_if_t ilp_sched_selector_if_t;
typedef struct _be_execution_unit_type_t be_execution_unit_type_t;
typedef struct _be_execution_unit_t be_execution_unit_t;
typedef struct _be_machine_t be_machine_t;
typedef struct backend_info_t backend_info_t;
typedef struct sched_info_t sched_info_t;
typedef struct reg_out_info_t reg_out_info_t;
#endif
......@@ -48,11 +48,11 @@
#include "be.h"
#include "beabi.h"
#include "bearch_t.h"
#include "bearch.h"
#include "benode_t.h"
#include "belive_t.h"
#include "besched_t.h"
#include "beirg_t.h"
#include "besched.h"
#include "beirg.h"
#include "bessaconstr.h"
typedef struct _be_abi_call_arg_t {
......
......@@ -35,7 +35,7 @@
#include "be.h"
#include "beirg.h"
#include "bearch.h"
#include "beabi_t.h"
#include "beabi.h"
struct _be_abi_call_flags_bits_t {
unsigned left_to_right : 1; /**< Arguments are from left to right. */
......
......@@ -27,7 +27,7 @@
#include <string.h>
#include "bearch_t.h"
#include "bearch.h"
#include "benode_t.h"
#include "beinfo.h"
#include "ircons_t.h"
......
Markdown is supported
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