be_abi_put_ignore_regs returns now number of ignore registers as unsigned
[libfirm] / ir / be / ppc32 / bearch_ppc32_t.h
index 9a8bf14..e4c5961 100644 (file)
@@ -30,6 +30,8 @@
 #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;
@@ -39,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 */
@@ -51,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. */
 };