2 * Internal backend global data structures.
3 * @author Sebastian Hack
10 #include "firm_types.h"
18 #include "be_dbgout.h"
21 #define DUMP_INITIAL (1 << 0)
22 #define DUMP_ABI (1 << 1)
23 #define DUMP_SCHED (1 << 2)
24 #define DUMP_PREPARED (1 << 3)
25 #define DUMP_RA (1 << 4)
26 #define DUMP_FINAL (1 << 5)
27 #define DUMP_BE (1 << 6)
45 /** Backend options */
46 struct _be_options_t {
47 unsigned dump_flags; /**< backend dumping flags */
48 int timing; /**< time the backend phases */
49 int opt_profile; /**< instrument code for profiling */
50 int omit_fp; /**< try to omit the frame pointer */
51 int stabs_debug_support; /**< enable stabs debugging support */
52 int vrfy_option; /**< backend verify option */
53 int scheduler; /**< the scheduler */
54 char ilp_server[128]; /**< the ilp server name */
55 char ilp_solver[128]; /**< the ilp solver name */
56 char stat_file_name[256]; /**< name of the file where the statistics are put to */
59 struct _be_main_env_t {
61 struct _be_node_factory_t *node_factory;
62 struct _arch_env_t *arch_env;
63 struct _be_options_t *options;
64 struct _arch_code_generator_t *cg;
65 struct _arch_irn_handler_t *phi_handler;
66 dbg_handle *db_handle;
67 DEBUG_ONLY(firm_dbg_module_t *dbg;)
71 * An irg with additional analysis data about this irg. Also includes some
76 struct _be_main_env_t *main_env;
77 struct _be_abi_irg_t *abi;
78 struct _arch_code_generator_t *cg;
79 ir_exec_freq *exec_freq;
80 be_dom_front_info_t *dom_front;
84 void be_assure_liveness(be_irg_t *birg);
85 void be_invalidate_liveness(be_irg_t *birg);
87 void be_assure_dom_front(be_irg_t *birg);
88 void be_invalidate_dom_front(be_irg_t *birg);
91 * Put the registers to be ignored in this IRG into a bitset.
92 * @param birg The backend IRG data structure.
93 * @param cls The register class.
94 * @param bs The bitset (may be NULL).
95 * @return The number of registers to be ignored.
97 int be_put_ignore_regs(const struct _be_irg_t *birg, const struct _arch_register_class_t *cls, bitset_t *bs);