Unify NEGATE_EXPR range operator
commit56518befc2663ddc082e34dddd66b6334a3d4da5
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 9 Jun 2023 17:43:12 +0000 (9 13:43 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Sat, 10 Jun 2023 00:33:03 +0000 (9 20:33 -0400)
tree214c4958b470b252d48016ef10c450a9fe0ed544
parentd5818a361779e19b9c17295c6a014c4145c73937
Unify NEGATE_EXPR range operator

Move the declaration of the class to the range-op-mixed header, add the
floating point prototypes as well, and use it in the new unified table.

* range-op-float.cc (foperator_negate): Remove.  Move prototypes
to range-op-mixed.h
(operator_negate::fold_range): Rename from foperator_negate.
(operator_negate::op1_range): Ditto.
(float_table::float_table): Remove NEGATE_EXPR.
* range-op-mixed.h (class operator_negate): Combined from integer
and float files.
* range-op.cc (op_negate): New object.
(unified_table::unified_table): Add NEGATE_EXPR.
(class operator_negate): Move to range-op-mixed.h.
(integral_table::integral_table): Remove NEGATE_EXPR.
(pointer_table::pointer_table): Remove NEGATE_EXPR.
gcc/range-op-float.cc
gcc/range-op-mixed.h
gcc/range-op.cc