fix bad mode in a%a optimisation
[libfirm] / ir / ir / irdumptxt.c
index 6dd2df6..75b5a71 100644 (file)
@@ -201,6 +201,8 @@ int dump_irnode_to_file(FILE *F, ir_node *n) {
                        (get_irp_loop_nesting_depth_state() != loop_nesting_depth_none) &&
                        (get_irp_callgraph_state() == irp_callgraph_and_calltree_consistent))
                        fprintf(F, "    final evaluation:           **%8.2lf**\n", get_irn_final_cost(n));
+    if (has_Block_label(n))
+      fprintf(F, "    Label: %lu\n", get_Block_label(n));
 
                /* not dumped: graph_arr */
                /* not dumped: mature    */
@@ -324,6 +326,10 @@ int dump_irnode_to_file(FILE *F, ir_node *n) {
                        fprintf(F, "  kind: enumeration\n");
                        fprintf(F, "  name: %s\n", get_enumeration_name(get_SymConst_enum(n)));
                        break;
+               case symconst_label:
+                       fprintf(F, "  kind: label\n");
+                       fprintf(F, "  label: %lu\n", get_SymConst_label(n));
+                       break;
                }
                fprintf(F, "  type of value: %s \n", get_type_name_ex(get_SymConst_value_type(n), &bad));
        } break;
@@ -808,9 +814,14 @@ void dump_entity(ir_entity *ent) {
   dump_entity_to_file(stdout, ent, dump_verbosity_max);
 }
 
-void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix, unsigned verbosity,
-                                    int *max_disp, int disp[], const char *comma) {
-
+void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix,
+                                   unsigned verbosity, int *max_disp,
+                                   int disp[], const char *comma)
+{
+       (void) verbosity;
+       (void) max_disp;
+       (void) disp;
+       (void) comma;
 #if 0   /* Outputs loop depth of all occurrences. */
        int n_acc = get_entity_n_accesses(ent);
        int max_L_freq = -1;
@@ -912,6 +923,8 @@ void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix, unsign
 void dump_typecsv_to_file(FILE *F, ir_type *tp, dump_verbosity verbosity, const char *comma) {
        int i;
        char buf[1024 + 10];
+       (void) comma;
+
        if (!is_Class_type(tp)) return;   // we also want array types. Stupid, these are classes in java.
 
        if (verbosity & dump_verbosity_accessStats) {
@@ -1150,6 +1163,14 @@ void dump_type_to_file(FILE *F, ir_type *tp, dump_verbosity verbosity) {
                break;
 
        case tpo_primitive:
+               if (verbosity & dump_verbosity_typeattrs) {
+                       ir_type *base_tp = get_primitive_base_type(tp);
+                       if (base_tp != NULL)
+                               fprintf(F, "\n  base type: %s (%ld)", get_type_name(tp), get_type_nr(tp));
+                       fprintf(F, "\n");
+               }
+               break;
+
        case tpo_id:
        case tpo_none:
        case tpo_unknown: