diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-28 15:29:40 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-28 15:29:40 +0000 |
commit | fc44a215aec90430e9d4b4c066c6b93f7ebc915d (patch) | |
tree | 35ba8ad462caf0907fefeff0406e6ef831248073 /gcc/data-streamer.h | |
parent | a706be2ea60dedff74ab4a1589b6e7acad2a34c7 (diff) | |
download | gcc-fc44a215aec90430e9d4b4c066c6b93f7ebc915d.tar.gz |
* data-streamer-in.c (streamer_read_gcov_count): New function.
* gimple-streamer-out.c: Include value-prof.h.
(output_gimple_stmt): Output histogram.
(output_bb): Use streamer_write_gcov_count.
* value-prof.c: Include data-streamer.h
(dump_histogram_value): Add HIST_TYPE_MAX.
(stream_out_histogram_value): New function.
(stream_in_histogram_value): New function.
* value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
(stream_out_histogram_value, stream_in_histogram_value): Declare.
* data-streamer-out.c (streamer_write_gcov_count): New function.
(streamer_write_gcov_count_stream): New function.
* lto-cgraph.c (lto_output_edge): Update counter streaming.
(lto_output_node): Likewise.
(input_node, input_edge): Likewise.
* lto-streamer-out.c (output_cfg): Update streaming.
* lto-streamer-in.c (input_cfg): Likewise.
* data-streamer.h (streamer_write_gcov_count,
streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
* gimple-streamer-in.c: Include value-prof.h
(input_gimple_stmt): Input histograms.
(input_bb): Update profile streaming.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197205 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/data-streamer.h')
-rw-r--r-- | gcc/data-streamer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/data-streamer.h b/gcc/data-streamer.h index 288da283d8f..e2ab7adfad6 100644 --- a/gcc/data-streamer.h +++ b/gcc/data-streamer.h @@ -63,6 +63,7 @@ HOST_WIDE_INT bp_unpack_var_len_int (struct bitpack_d *); void streamer_write_zero (struct output_block *); void streamer_write_uhwi (struct output_block *, unsigned HOST_WIDE_INT); void streamer_write_hwi (struct output_block *, HOST_WIDE_INT); +void streamer_write_gcov_count (struct output_block *, gcov_type); void streamer_write_string (struct output_block *, struct lto_output_stream *, const char *, bool); unsigned streamer_string_index (struct output_block *, const char *, @@ -77,6 +78,7 @@ void bp_pack_string (struct output_block *, struct bitpack_d *, void streamer_write_uhwi_stream (struct lto_output_stream *, unsigned HOST_WIDE_INT); void streamer_write_hwi_stream (struct lto_output_stream *, HOST_WIDE_INT); +void streamer_write_gcov_count_stream (struct lto_output_stream *, gcov_type); /* In data-streamer-in.c */ const char *string_for_index (struct data_in *, unsigned int, unsigned int *); @@ -89,6 +91,7 @@ const char *bp_unpack_indexed_string (struct data_in *, struct bitpack_d *, const char *bp_unpack_string (struct data_in *, struct bitpack_d *); unsigned HOST_WIDE_INT streamer_read_uhwi (struct lto_input_block *); HOST_WIDE_INT streamer_read_hwi (struct lto_input_block *); +gcov_type streamer_read_gcov_count (struct lto_input_block *); /* Returns a hash code for P. Adapted from libiberty's htab_hash_string to support strings that may not end in '\0'. */ |