1 #ifndef _BEARCH_ARM_T_H_
2 #define _BEARCH_ARM_T_H_
7 #include "bearch_arm.h"
8 #include "arm_nodes_attr.h"
12 typedef struct _arm_code_gen_t {
13 const arch_code_generator_if_t *impl; /**< implementation */
14 ir_graph *irg; /**< current irg */
15 FILE *out; /**< output file */
16 const arch_env_t *arch_env; /**< the arch env */
17 set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */
18 int emit_decls; /**< flag indicating if decls were already emitted */
19 const be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */
20 ir_type *int_tp; /**< the int type, needed for Call conversion */
21 int have_fp; /**< non-zero, if fp hardware instructions are emitted */
22 DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */
26 typedef struct _arm_isa_t {
27 const arch_isa_if_t *impl;
28 const arch_register_t *sp; /**< The stack pointer register. */
29 const arch_register_t *bp; /**< The base pointer register. */
30 const int stack_dir; /**< -1 for decreasing, 1 for increasing. */
32 int gen_reg_names; /**< use generic register names instead of SP, LR, PC */
33 arm_code_gen_t *cg; /**< current code generator */
37 typedef struct _arm_irn_ops_t {
38 const arch_irn_ops_if_t *impl;
43 /* this is a struct to minimize the number of parameters
44 for transformation walker */
45 typedef struct _arm_transform_env_t {
46 arm_code_gen_t *cg; /**< current code generator */
47 dbg_info *dbg; /**< The node debug info */
48 ir_graph *irg; /**< The irg, the node should be created in */
49 ir_node *block; /**< The block, the node should belong to */
50 ir_node *irn; /**< The irn, to be transformed */
51 ir_mode *mode; /**< The mode of the irn */
52 DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */
53 } arm_transform_env_t;
56 #endif /* _BEARCH_ARM_T_H_ */