emit comments in header
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 5 May 2006 08:55:17 +0000 (08:55 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Fri, 5 May 2006 08:55:17 +0000 (08:55 +0000)
ir/be/scripts/generate_new_opcodes.pl

index a628d69..1cc9e93 100755 (executable)
@@ -153,6 +153,7 @@ foreach my $op (keys(%nodes)) {
                # $complete_args = substr($complete_args, 2);
                $temp .= "$complete_args)";
                push(@obst_constructor, $temp." {\n");
+               push(@obst_header, $n{"comment"});
                push(@obst_header, $temp.";\n");
 
                # emit constructor code
@@ -279,7 +280,6 @@ foreach my $op (keys(%nodes)) {
 
                # close constructor function
                push(@obst_constructor, "}\n\n");
-
        } # constructor creation
 
        # set default values for state and flags if not given
@@ -299,6 +299,8 @@ foreach my $op (keys(%nodes)) {
        $temp .= "|M, ".translate_arity($arity).", 0, sizeof($arch\_attr_t) + $n_res * sizeof(arch_register_t *), &ops);\n";
        push(@obst_new_irop, $temp);
        push(@obst_enum_op, "  iro_$op,\n");
+
+       push(@obst_header, "\n");
 }
 push(@obst_enum_op, "  iro_$arch\_last_generated,\n");
 push(@obst_enum_op, "  iro_$arch\_last = iro_$arch\_last_generated");