ia32: cleanup handling of 8/16bit operations
[libfirm] / ir / be / bearch.c
index 7082648..7f3bb4d 100644 (file)
@@ -55,9 +55,10 @@ static reg_out_info_t dummy_info = {
 };
 
 /* Initialize the architecture environment struct. */
-arch_env_t *arch_env_init(const arch_isa_if_t *isa_if, be_main_env_t *main_env)
+arch_env_t *arch_env_begin_codegeneration(const arch_isa_if_t *isa_if,
+                                          be_main_env_t *main_env)
 {
-       arch_env_t *arch_env = isa_if->init(main_env);
+       arch_env_t *arch_env = isa_if->begin_codegeneration(main_env);
        arch_env->main_env   = main_env;
        return arch_env;
 }
@@ -69,16 +70,13 @@ arch_env_t *arch_env_init(const arch_isa_if_t *isa_if, be_main_env_t *main_env)
  */
 static const arch_irn_ops_t *get_irn_ops(const ir_node *irn)
 {
-       const ir_op          *ops;
-       const arch_irn_ops_t *be_ops;
-
        if (is_Proj(irn)) {
                irn = get_Proj_pred(irn);
                assert(!is_Proj(irn));
        }
 
-       ops    = get_irn_op(irn);
-       be_ops = get_op_ops(ops)->be_ops;
+       ir_op                *ops    = get_irn_op(irn);
+       const arch_irn_ops_t *be_ops = get_op_ops(ops)->be_ops;
 
        return be_ops;
 }