aboutsummaryrefslogtreecommitdiff
path: root/gcc/data-streamer.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-04-18 07:56:52 +0200
committerAldy Hernandez <aldyh@redhat.com>2023-04-18 10:49:33 +0200
commit6e552ec218a04dac046066e2608202ba90d66f11 (patch)
tree507cc5dc793ec27e6655fcf0c1074e3ddacb2e95 /gcc/data-streamer.h
parent5baf2cccd0345a7ac3d4467343414f8b7ff1724b (diff)
downloadgcc-6e552ec218a04dac046066e2608202ba90d66f11.zip
gcc-6e552ec218a04dac046066e2608202ba90d66f11.tar.gz
gcc-6e552ec218a04dac046066e2608202ba90d66f11.tar.bz2
Abstract out REAL_VALUE_TYPE streaming.
In upcoming patches I will contribute code to stream out frange's as well as vrange's. This patch abstracts out the REAL_VALUE_TYPE streaming into their own functions, so that they may be used elsewhere. gcc/ChangeLog: * data-streamer.cc (bp_pack_real_value): New. (bp_unpack_real_value): New. * data-streamer.h (bp_pack_real_value): New. (bp_unpack_real_value): New. * tree-streamer-in.cc (unpack_ts_real_cst_value_fields): Use bp_unpack_real_value. * tree-streamer-out.cc (pack_ts_real_cst_value_fields): Use bp_pack_real_value.
Diffstat (limited to 'gcc/data-streamer.h')
-rw-r--r--gcc/data-streamer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/data-streamer.h b/gcc/data-streamer.h
index d8c7e21..19c9d6e 100644
--- a/gcc/data-streamer.h
+++ b/gcc/data-streamer.h
@@ -46,6 +46,8 @@ struct bitpack_d
/* In data-streamer.cc */
void bp_pack_var_len_unsigned (struct bitpack_d *, unsigned HOST_WIDE_INT);
void bp_pack_var_len_int (struct bitpack_d *, HOST_WIDE_INT);
+void bp_pack_real_value (struct bitpack_d *, const REAL_VALUE_TYPE *);
+void bp_unpack_real_value (struct bitpack_d *, REAL_VALUE_TYPE *);
unsigned HOST_WIDE_INT bp_unpack_var_len_unsigned (struct bitpack_d *);
HOST_WIDE_INT bp_unpack_var_len_int (struct bitpack_d *);