2 * Copyright (C) 1995-2008 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 declarations for arm backend -- private header
23 * @author Moritz Kroll, Jens Mueller
26 #ifndef FIRM_BE_PPC32_BEARCH_PPC32_T_H
27 #define FIRM_BE_PPC32_BEARCH_PPC32_T_H
30 #include "bearch_ppc32.h"
31 #include "ppc32_nodes_attr.h"
33 #include "../beemitter.h"
37 typedef struct _ppc32_isa_t ppc32_isa_t;
39 typedef struct _ppc32_code_gen_t {
40 const arch_code_generator_if_t *impl; /**< implementation */
41 ir_graph *irg; /**< current irg */
42 const arch_env_t *arch_env; /**< the arch env */
43 set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */
44 ppc32_isa_t *isa; /**< the isa instance */
45 be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */
46 unsigned area_size; /**< size of call area for the current irg */
47 ir_entity *area; /**< the entity representing the call area or NULL for leaf functions */
48 ir_node *start_succ_block; /**< the block succeeding the start block in the cfg */
49 ir_node **blk_sched; /**< an array containing the scheduled blocks */
50 DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */
55 arch_env_t arch_env; /**< must be derived from arch_env_t */
56 pset *symbol_set; /**< A set containing the indirect symbols. */
60 /** this is a struct to minimize the number of parameters
61 for transformation walker */
62 typedef struct _ppc32_transform_env_t {
63 dbg_info *dbg; /**< The node debug info */
64 ir_graph *irg; /**< The irg, the node should be created in */
65 ir_node *block; /**< The block, the node should belong to */
66 ir_node *irn; /**< The irn, to be transformed */
67 ir_mode *mode; /**< The mode of the irn */
68 DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */
69 } ppc32_transform_env_t;