Lines Matching defs:counter

79 /* Cumulative counter information for whole program.  */
80 static unsigned prg_ctr_mask; /* Mask of counter types generated. */
99 /* Trees representing the counter table arrays. */
102 /* The names of the counter tables. Not used if we're
326 get_coverage_counts (unsigned counter, unsigned expected,
346 elt.ctr = counter;
358 error ("coverage mismatch for function %qs while reading counter %qs",
360 ctr_names[counter]);
366 error ("coverage mismatch for function %qs while reading counter %qs",
368 ctr_names[counter]);
383 coverage_counter_alloc (unsigned counter, unsigned num)
391 if (!tree_ctr_tables[counter])
400 tree_ctr_tables[counter]
402 TREE_STATIC (tree_ctr_tables[counter]) = 1;
403 ASM_GENERATE_INTERNAL_LABEL (buf, "LPBX", counter + 1);
404 DECL_NAME (tree_ctr_tables[counter]) = get_identifier (buf);
405 DECL_ALIGN (tree_ctr_tables[counter]) = TYPE_ALIGN (gcov_type_node);
407 fn_b_ctrs[counter] = fn_n_ctrs[counter];
408 fn_n_ctrs[counter] += num;
409 fn_ctr_mask |= 1 << counter;
416 tree_coverage_counter_ref (unsigned counter, unsigned no)
420 gcc_assert (no < fn_n_ctrs[counter] - fn_b_ctrs[counter]);
421 no += prg_n_ctrs[counter] + fn_b_ctrs[counter];
424 return build4 (ARRAY_REF, gcov_type_node, tree_ctr_tables[counter],
718 the counter being processed and TYPE is the gcov_ctr_info
722 build_ctr_info_value (unsigned int counter, tree type)
731 prg_n_ctrs[counter]),
735 if (prg_n_ctrs[counter])
740 prg_n_ctrs[counter] - 1);
745 TREE_TYPE (tree_ctr_tables[counter]) = array_type;
746 DECL_SIZE (tree_ctr_tables[counter]) = TYPE_SIZE (array_type);
747 DECL_SIZE_UNIT (tree_ctr_tables[counter]) = TYPE_SIZE_UNIT (array_type);
748 assemble_variable (tree_ctr_tables[counter], 0, 0, 0);
752 tree_ctr_tables[counter]),
760 get_identifier (ctr_merge_functions[counter]),