2 * Internal backend global data structures.
3 * @author Sebastian Hack
10 #include "firm_types.h"
20 #define DUMP_INITIAL (1 << 0)
21 #define DUMP_ABI (1 << 1)
22 #define DUMP_SCHED (1 << 2)
23 #define DUMP_PREPARED (1 << 3)
24 #define DUMP_RA (1 << 4)
25 #define DUMP_FINAL (1 << 5)
26 #define DUMP_BE (1 << 6)
40 BE_SCHED_SELECT_TRIVIAL = 0,
41 BE_SCHED_SELECT_REGPRESS = 1,
42 BE_SCHED_SELECT_MUCHNIK = 2,
43 BE_SCHED_SELECT_HEUR = 3,
44 BE_SCHED_SELECT_HMUCHNIK = 4
47 struct _be_options_t {
56 struct _be_main_env_t {
58 struct _be_node_factory_t *node_factory;
59 struct _arch_env_t *arch_env;
60 struct _be_options_t *options;
61 struct _arch_code_generator_t *cg;
62 struct _arch_irn_handler_t *phi_handler;
63 DEBUG_ONLY(firm_dbg_module_t *dbg;)
68 struct _be_main_env_t *main_env;
69 struct _be_abi_irg_t *abi;
70 struct _arch_code_generator_t *cg;
74 * Put the registers to be ignored in this IRG into a bitset.
75 * @param birg The backend IRG data structure.
76 * @param cls The register class.
77 * @param bs The bitset (may be NULL).
78 * @return The number of registers to be ignored.
80 int be_put_ignore_regs(const struct _be_irg_t *birg, const struct _arch_register_class_t *cls, bitset_t *bs);