diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2019-11-05 15:39:11 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2019-11-05 15:39:11 +0000 |
commit | 028d81b1599c365d8c60222ec5631a8f111d8574 (patch) | |
tree | 2593124dc042ecb237d2105645807c03717b03b9 /gcc/range-op.h | |
parent | 3619076a631eac18c0484acf6dff3e5e94b8e251 (diff) | |
download | gcc-028d81b1599c365d8c60222ec5631a8f111d8574.zip gcc-028d81b1599c365d8c60222ec5631a8f111d8574.tar.gz gcc-028d81b1599c365d8c60222ec5631a8f111d8574.tar.bz2 |
The base class for ranges is currently value_range_base, which is rather long and cumbersome.
The base class for ranges is currently value_range_base, which is
rather long and cumbersome. It also occurs more often than the derived
class of value_range. To avoid confusion, and save typing, this
patch does a global rename from value_range to value_range_equiv,
and from value_range_base to value_range.
This way, the base class is simply value_range, and the derived
class is value_range_equiv which explicitly states what it does.
From-SVN: r277847
Diffstat (limited to 'gcc/range-op.h')
-rw-r--r-- | gcc/range-op.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/range-op.h b/gcc/range-op.h index e531b91..3df9f1d 100644 --- a/gcc/range-op.h +++ b/gcc/range-op.h @@ -50,9 +50,9 @@ class range_operator { public: // Perform an operation between 2 ranges and return it. - virtual value_range_base fold_range (tree type, - const value_range_base &lh, - const value_range_base &rh) const; + virtual value_range fold_range (tree type, + const value_range &lh, + const value_range &rh) const; // Return the range for op[12] in the general case. LHS is the range for // the LHS of the expression, OP[12]is the range for the other @@ -65,16 +65,16 @@ public: // // i.e. [LHS] = ??? + OP2 // is re-formed as R = [LHS] - OP2. - virtual bool op1_range (value_range_base &r, tree type, - const value_range_base &lhs, - const value_range_base &op2) const; - virtual bool op2_range (value_range_base &r, tree type, - const value_range_base &lhs, - const value_range_base &op1) const; + virtual bool op1_range (value_range &r, tree type, + const value_range &lhs, + const value_range &op2) const; + virtual bool op2_range (value_range &r, tree type, + const value_range &lhs, + const value_range &op1) const; protected: // Perform an operation between 2 sub-ranges and return it. - virtual value_range_base wi_fold (tree type, + virtual value_range wi_fold (tree type, const wide_int &lh_lb, const wide_int &lh_ub, const wide_int &rh_lb, @@ -82,7 +82,7 @@ protected: }; extern range_operator *range_op_handler (enum tree_code code, tree type); -extern void range_cast (value_range_base &, tree type); +extern void range_cast (value_range &, tree type); extern void wi_set_zero_nonzero_bits (tree type, const wide_int &, const wide_int &, wide_int &maybe_nonzero, |