be_abi_put_ignore_regs returns now number of ignore registers as unsigned
[libfirm] / ir / be / ppc32 / bearch_ppc32_t.h
index 27205dc..e4c5961 100644 (file)
@@ -1,10 +1,37 @@
-#ifndef _BEARCH_PPC32_T_H_
-#define _BEARCH_PPC32_T_H_
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief   declarations for arm backend -- private header
+ * @author  Moritz Kroll, Jens Mueller
+ * @version $Id$
+ */
+#ifndef FIRM_BE_PPC32_BEARCH_PPC32_T_H
+#define FIRM_BE_PPC32_BEARCH_PPC32_T_H
 
 #include "debug.h"
 #include "bearch_ppc32.h"
 #include "ppc32_nodes_attr.h"
 #include "../be.h"
+#include "../beemitter.h"
+#include "pset.h"
 #include "set.h"
 
 typedef struct _ppc32_isa_t ppc32_isa_t;
@@ -14,9 +41,8 @@ typedef struct _ppc32_code_gen_t {
        ir_graph                       *irg;              /**< current irg */
        const arch_env_t               *arch_env;         /**< the arch env */
        set                            *reg_set;          /**< set to memorize registers for FIRM nodes (e.g. phi) */
-       int                             emit_decls;       /**< flag indicating if decls were already emitted */
        ppc32_isa_t                    *isa;              /**< the isa instance */
-       const be_irg_t                 *birg;             /**< The be-irg (contains additional information about the irg) */
+       be_irg_t                       *birg;             /**< The be-irg (contains additional information about the irg) */
        unsigned                        area_size;        /**< size of call area for the current irg */
        ir_entity                      *area;             /**< the entity representing the call area or NULL for leaf functions */
        ir_node                        *start_succ_block; /**< the block succeeding the start block in the cfg */
@@ -26,12 +52,9 @@ typedef struct _ppc32_code_gen_t {
 
 
 struct _ppc32_isa_t {
-       const arch_isa_if_t   *impl;
-       const arch_register_t *sp;            /**< The stack pointer register. */
-       const arch_register_t *bp;            /**< The base pointer register. */
-       const int              stack_dir;     /**< -1 for decreasing, 1 for increasing. */
-       int                    num_codegens;
-       FILE                   *out;          /**< output file */
+       arch_isa_t             arch_isa;      /**< must be derived from arch_isa_t */
+       be_emit_env_t          emit;          /**< An emitter environment for the GAS emitter. */
+       pset                   *symbol_set;   /**< A set containing the indirect symbols. */
 };
 
 
@@ -52,5 +75,4 @@ typedef struct _ppc32_transform_env_t {
        DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */
 } ppc32_transform_env_t;
 
-
-#endif /* _BEARCH_PPC32_T_H_ */
+#endif