1 /* profile.h - Defines data exported from profile.c to other passes. 2 Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify it under 7 the terms of the GNU General Public License as published by the Free 8 Software Foundation; either version 2, or (at your option) any later 9 version. 10 11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY 12 WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GCC; see the file COPYING. If not, write to the Free 18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 19 02111-1307, USA. */ 20 21 #ifndef GCC_PROFILE_H 22 #define GCC_PROFILE_H 23 24 struct profile_info 25 { 26 /* Used by final, for allocating the proper amount of storage for the 27 instrumented arc execution counts. */ 28 29 int count_instrumented_edges; 30 31 /* Used by final, for writing correct # of instrumented edges 32 in this function. */ 33 34 int count_edges_instrumented_now; 35 36 /* Checksum of the cfg. Used for 'identification' of code. 37 Used by final. */ 38 39 long current_function_cfg_checksum; 40 41 /* Max. value of counter in program corresponding to the profile data 42 for the current function. */ 43 44 gcov_type max_counter_in_program; 45 46 /* The number of profiles merged to form the profile data for the current 47 function. */ 48 int count_profiles_merged; 49 50 }; 51 52 extern struct profile_info profile_info; 53 54 #endif 55