Commit aaa4dbc3 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

bescripts: Rename 'irn_flags_' to 'irn_flags' in the generated node constructors.

parent d3ad0b49
......@@ -57,25 +57,25 @@ $default_copy_attr = "amd64_copy_attr";
%init_attr = (
amd64_attr_t =>
"init_amd64_attributes(res, irn_flags_, in_reqs, n_res, op_mode);",
"init_amd64_attributes(res, irn_flags, in_reqs, n_res, op_mode);",
amd64_addr_attr_t =>
"init_amd64_attributes(res, irn_flags_, in_reqs, n_res, op_mode);\n"
"init_amd64_attributes(res, irn_flags, in_reqs, n_res, op_mode);\n"
."\tattr->insn_mode = insn_mode;\n"
."\tattr->addr = addr;",
amd64_binop_addr_attr_t =>
"be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n"
"be_info_init_irn(res, irn_flags, in_reqs, n_res);\n"
."\t*attr = *attr_init;",
amd64_switch_jmp_attr_t =>
"init_amd64_attributes(res, irn_flags_, in_reqs, n_res, op_mode);\n"
"init_amd64_attributes(res, irn_flags, in_reqs, n_res, op_mode);\n"
."\tinit_amd64_switch_attributes(res, table, table_entity);",
amd64_cc_attr_t =>
"init_amd64_attributes(res, irn_flags_, in_reqs, n_res, op_mode);\n"
"init_amd64_attributes(res, irn_flags, in_reqs, n_res, op_mode);\n"
."\tinit_amd64_cc_attributes(res, cc);",
amd64_movimm_attr_t =>
"init_amd64_attributes(res, irn_flags_, in_reqs, n_res, op_mode);\n"
"init_amd64_attributes(res, irn_flags, in_reqs, n_res, op_mode);\n"
."\tinit_amd64_movimm_attributes(res, insn_mode, imm);",
amd64_shift_attr_t =>
"be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n"
"be_info_init_irn(res, irn_flags, in_reqs, n_res);\n"
."\t*attr = *attr_init;\n",
);
......
......@@ -52,22 +52,22 @@ $default_attr_type = "arm_attr_t";
$default_copy_attr = "arm_copy_attr";
%init_attr = (
arm_attr_t => "\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);",
arm_attr_t => "\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);",
arm_Address_attr_t =>
"\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_arm_Address_attributes(res, entity, offset);",
arm_CondJmp_attr_t => "\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);",
arm_SwitchJmp_attr_t => "\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);",
arm_fConst_attr_t => "\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);",
arm_CondJmp_attr_t => "\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);",
arm_SwitchJmp_attr_t => "\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);",
arm_fConst_attr_t => "\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);",
arm_load_store_attr_t =>
"\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_arm_load_store_attributes(res, ls_mode, entity, entity_sign, offset, is_frame_entity);",
arm_shifter_operand_t =>
"\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);\n",
"\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);\n",
arm_cmp_attr_t =>
"\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);\n",
"\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);\n",
arm_farith_attr_t =>
"\tinit_arm_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_arm_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_arm_farith_attributes(res, op_mode);",
);
......
......@@ -99,30 +99,30 @@ $custom_init_attr_func = \&ia32_custom_init_attr;
%init_attr = (
ia32_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);",
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);",
ia32_call_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_call_attributes(res, pop, call_tp);",
ia32_condcode_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_condcode_attributes(res, condition_code);",
ia32_switch_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_switch_attributes(res, switch_table);",
ia32_copyb_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_copyb_attributes(res, size);",
ia32_immediate_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_immediate_attributes(res, imm);",
ia32_x87_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_x87_attributes(res);",
ia32_climbframe_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_climbframe_attributes(res, count);",
ia32_return_attr_t =>
"\tinit_ia32_attributes(res, irn_flags_, in_reqs, n_res);\n".
"\tinit_ia32_attributes(res, irn_flags, in_reqs, n_res);\n".
"\tinit_ia32_return_attributes(res, pop);",
);
......
......@@ -46,7 +46,7 @@ if(!defined($default_attr_type)) {
}
if(! %init_attr) {
%init_attr = (
$default_attr_type => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);",
$default_attr_type => "be_info_init_irn(res, irn_flags, in_reqs, n_res);",
);
}
......@@ -188,7 +188,7 @@ sub create_constructor {
# emit constructor code
$temp = <<EOF;
arch_irn_flags_t irn_flags_ = arch_irn_flags_none;
arch_irn_flags_t irn_flags = arch_irn_flags_none;
EOF
if ($arity != $ARITY_VARIABLE) {
......@@ -301,14 +301,14 @@ EOF
if (not defined($known_irn_flags{$flag})) {
print STDERR "WARNING: irn_flag '$flag' in opcode $op is unknown\n";
} else {
$temp .= "\tirn_flags_ |= " . $known_irn_flags{$flag} . ";\n";
$temp .= "\tirn_flags |= " . $known_irn_flags{$flag} . ";\n";
}
}
$temp .= "\n";
}
# lookup init function
my $attr_init_code = "(void)in;(void)irn_flags_;(void)in_reqs;(void)n_res;";
my $attr_init_code = "(void)in;(void)irn_flags;(void)in_reqs;(void)n_res;";
if ($attr_type ne "") {
$attr_init_code = $init_attr{$attr_type};
if(!defined($attr_init_code)) {
......
......@@ -105,16 +105,16 @@ $default_attr_type = "sparc_attr_t";
$default_copy_attr = "sparc_copy_attr";
%init_attr = (
sparc_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);",
sparc_load_store_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);",
sparc_jmp_cond_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);",
sparc_switch_jmp_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n".
sparc_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);",
sparc_load_store_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);",
sparc_jmp_cond_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);",
sparc_switch_jmp_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);\n".
"\tinit_sparc_switch_jmp_attributes(res, table, jump_table);\n",
sparc_fp_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n".
sparc_fp_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);\n".
"\tinit_sparc_fp_attributes(res, fp_mode);\n",
sparc_fp_conv_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n".
sparc_fp_conv_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);\n".
"\tinit_sparc_fp_conv_attributes(res, src_mode, dest_mode);\n",
sparc_call_attr_t => "be_info_init_irn(res, irn_flags_, in_reqs, n_res);\n".
sparc_call_attr_t => "be_info_init_irn(res, irn_flags, in_reqs, n_res);\n".
"\tinit_sparc_call_attributes(res, call_type);",
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment