diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2023-02-23 08:48:28 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-04-18 14:49:07 +0200 |
commit | 4d747ea3a4e5b94eda4a46dada0726eaa1b7b5fd (patch) | |
tree | c30a19d1f7a87b9b8c22ee521db42e2ab4cc1c6f /gcc/value-range.h | |
parent | fdbaab2dc886f78a1e75512eeee0faa17e77c862 (diff) | |
download | gcc-4d747ea3a4e5b94eda4a46dada0726eaa1b7b5fd.zip gcc-4d747ea3a4e5b94eda4a46dada0726eaa1b7b5fd.tar.gz gcc-4d747ea3a4e5b94eda4a46dada0726eaa1b7b5fd.tar.bz2 |
Add inchash support for vrange.
This patch provides inchash support for vrange. It is along the lines
of the streaming support I just posted and will be used for IPA
hashing of ranges.
gcc/ChangeLog:
* inchash.cc (hash::add_real_value): New.
* inchash.h (class hash): Add add_real_value.
* value-range.cc (add_vrange): New.
* value-range.h (inchash::add_vrange): New.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r-- | gcc/value-range.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h index f8aa0ca..5545cce 100644 --- a/gcc/value-range.h +++ b/gcc/value-range.h @@ -109,6 +109,11 @@ protected: const ENUM_BITFIELD(value_range_discriminator) m_discriminator : 4; }; +namespace inchash +{ + extern void add_vrange (const vrange &, hash &, unsigned flags = 0); +} + // An integer range without any storage. class GTY((user)) irange : public vrange |