X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fscripts%2Fgenerate_regalloc_if.pl;h=f892e3d2344da8b1783025dff25713e319eeb723;hb=49bec3440763fcbac6bee60638cc8d699b12af11;hp=50ebc66471d2118f6d787c8500b84109b2dd202f;hpb=8a1c0ad68eaba7cecab7a3abd552681ad893de3e;p=libfirm diff --git a/ir/be/scripts/generate_regalloc_if.pl b/ir/be/scripts/generate_regalloc_if.pl index 50ebc6647..f892e3d23 100755 --- a/ir/be/scripts/generate_regalloc_if.pl +++ b/ir/be/scripts/generate_regalloc_if.pl @@ -22,7 +22,6 @@ # This script generates C code which creates ands sets up functions and # data structures for the register allocator. # Creation: 2005/11/14 -# $Id$ use strict; use Data::Dumper; @@ -61,26 +60,18 @@ sub translate_reg_type { my @types; if ($t & 1) { - push(@types, "arch_register_type_caller_save"); - } - - if ($t & 2) { - push(@types, "arch_register_type_callee_save"); - } - - if ($t & 4) { push(@types, "arch_register_type_ignore"); } - if ($t & 8) { + if ($t & 2) { push(@types, "arch_register_type_joker"); } - if ($t & 16) { + if ($t & 4) { push(@types, "arch_register_type_virtual"); } - if ($t & 32) { + if ($t & 8) { push(@types, "arch_register_type_state"); } @@ -181,13 +172,9 @@ foreach my $class_name (keys(%reg_classes)) { $flags_prepared .= "arch_register_class_flag_$flag"; } } else { - $flags_prepared = "0"; + $flags_prepared = "arch_register_class_flag_none"; } - $single_constraints_decls .= <{dwarf})) { + $dwarf_number = $_->{dwarf}; + } $regtypes_def .= <