2 * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief Internal backend global data structures.
23 * @author Sebastian Hack
26 #ifndef FIRM_BE_BE_T_H
27 #define FIRM_BE_BE_T_H
29 #include "firm_types.h"
36 #include "be_dbgout.h"
40 #define DUMP_INITIAL (1 << 0)
41 #define DUMP_ABI (1 << 1)
42 #define DUMP_SCHED (1 << 2)
43 #define DUMP_PREPARED (1 << 3)
44 #define DUMP_RA (1 << 4)
45 #define DUMP_FINAL (1 << 5)
46 #define DUMP_BE (1 << 6)
64 /** Backend options */
66 unsigned dump_flags; /**< backend dumping flags */
67 int timing; /**< time the backend phases */
68 int opt_profile; /**< instrument code for profiling */
69 int omit_fp; /**< try to omit the frame pointer */
70 int stabs_debug_support; /**< enable stabs debugging support */
71 int vrfy_option; /**< backend verify option */
72 int scheduler; /**< the scheduler */
73 char ilp_server[128]; /**< the ilp server name */
74 char ilp_solver[128]; /**< the ilp solver name */
75 int statev; /**< enable stat event dumping */
79 struct be_main_env_t {
82 be_options_t *options;
83 arch_code_generator_t *cg;
84 arch_irn_handler_t *phi_handler;
85 dbg_handle *db_handle;
90 * Put the registers to be ignored in this IRG into a bitset.
91 * @param birg The backend IRG data structure.
92 * @param cls The register class.
93 * @param bs The bitset (may be NULL).
94 * @return The number of registers to be ignored.
96 unsigned be_put_ignore_regs(const be_irg_t *birg, const arch_register_class_t *cls,
99 #endif /* FIRM_BE_BE_T_H */