comparison gcc/coverage.h @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents a06113de4d67
children 84e7813d76e9
comparison
equal deleted inserted replaced
15:561a7518be6b 16:04ced10e8804
1 /* coverage.h - Defines data exported from coverage.c 1 /* coverage.h - Defines data exported from coverage.c
2 Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008 2 Copyright (C) 1998-2017 Free Software Foundation, Inc.
3 Free Software Foundation, Inc.
4 3
5 This file is part of GCC. 4 This file is part of GCC.
6 5
7 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
23 22
24 #include "gcov-io.h" 23 #include "gcov-io.h"
25 24
26 extern void coverage_init (const char *); 25 extern void coverage_init (const char *);
27 extern void coverage_finish (void); 26 extern void coverage_finish (void);
28 27 extern void coverage_remove_note_file (void);
29 /* Complete the coverage information for the current function. Once
30 per function. */
31 extern void coverage_end_function (void);
32 28
33 /* Start outputting coverage information for the current 29 /* Start outputting coverage information for the current
34 function. Repeatable per function. */ 30 function. */
35 extern int coverage_begin_output (void); 31 extern int coverage_begin_function (unsigned, unsigned);
32
33 /* Complete the coverage information for the current function. */
34 extern void coverage_end_function (unsigned, unsigned);
35
36 /* Compute the control flow checksum for the function FN given as argument. */
37 extern unsigned coverage_compute_cfg_checksum (struct function *fn);
38
39 /* Compute the profile id of function N. */
40 extern unsigned coverage_compute_profile_id (struct cgraph_node *n);
41
42 /* Compute the line number checksum for the current function. */
43 extern unsigned coverage_compute_lineno_checksum (void);
36 44
37 /* Allocate some counters. Repeatable per function. */ 45 /* Allocate some counters. Repeatable per function. */
38 extern int coverage_counter_alloc (unsigned /*counter*/, unsigned/*num*/); 46 extern int coverage_counter_alloc (unsigned /*counter*/, unsigned/*num*/);
39 /* Use a counter from the most recent allocation. */ 47 /* Use a counter from the most recent allocation. */
40 extern tree tree_coverage_counter_ref (unsigned /*counter*/, unsigned/*num*/); 48 extern tree tree_coverage_counter_ref (unsigned /*counter*/, unsigned/*num*/);
42 extern tree tree_coverage_counter_addr (unsigned /*counter*/, unsigned/*num*/); 50 extern tree tree_coverage_counter_addr (unsigned /*counter*/, unsigned/*num*/);
43 51
44 /* Get all the counters for the current function. */ 52 /* Get all the counters for the current function. */
45 extern gcov_type *get_coverage_counts (unsigned /*counter*/, 53 extern gcov_type *get_coverage_counts (unsigned /*counter*/,
46 unsigned /*expected*/, 54 unsigned /*expected*/,
55 unsigned /*cfg_checksum*/,
56 unsigned /*lineno_checksum*/,
47 const struct gcov_ctr_summary **); 57 const struct gcov_ctr_summary **);
48 58
49 extern tree get_gcov_type (void); 59 extern tree get_gcov_type (void);
60 extern bool coverage_node_map_initialized_p (void);
50 61
51 #endif 62 #endif