avoid unnecessary passing around of arch_env_t* in backend APIs
[libfirm] / ir / be / beinsn_t.h
index 620ee4f..1f30f50 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -54,7 +54,7 @@ struct _be_insn_t {
                                            [use_start-n_ops) uses */
        ir_node *next_insn;            /**< next instruction in schedule */
        ir_node *irn;                  /**< ir_node of the instruction */
-       unsigned in_constraints  : 1;  /**< instruction has input contraints */
+       unsigned in_constraints  : 1;  /**< instruction has input constraints */
        unsigned out_constraints : 1;  /**< instruction has output constraints */
        unsigned has_constraints : 1;  /**< in_constraints or out_constraints true */
        unsigned pre_colored     : 1;  /**< all defined values already have a register assigned */
@@ -62,7 +62,6 @@ struct _be_insn_t {
 
 struct _be_insn_env_t {
        struct obstack              *obst;
-       const arch_env_t            *aenv;
        const arch_register_class_t *cls;
        bitset_t                    *ignore_colors;
 };
@@ -72,6 +71,6 @@ struct _be_insn_env_t {
 
 be_insn_t *be_scan_insn(const be_insn_env_t *env, ir_node *irn);
 
-be_insn_env_t *be_insn_env_init(be_insn_env_t *ie, const be_irg_t *birg, const arch_register_class_t *cls, struct obstack *obst);
+be_insn_env_t *be_insn_env_init(be_insn_env_t *ie, ir_graph *irg, const arch_register_class_t *cls, struct obstack *obst);
 
 #endif /* FIRM_BE_BEINSN_T_H */