aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op-mixed.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-06-10 16:09:58 -0400
committerAndrew MacLeod <amacleod@redhat.com>2023-06-12 10:48:30 -0400
commitb08b98254a973e67472c9c31bfd9b7e8af6a5133 (patch)
tree2e1b733b7d65811be624cd5aa91dc9e068c16755 /gcc/range-op-mixed.h
parentb23d6b957f0a083b252c616d48f92b933f753262 (diff)
downloadgcc-b08b98254a973e67472c9c31bfd9b7e8af6a5133.zip
gcc-b08b98254a973e67472c9c31bfd9b7e8af6a5133.tar.gz
gcc-b08b98254a973e67472c9c31bfd9b7e8af6a5133.tar.bz2
Move operator_min to the unified range-op table.
* range-op-mixed.h (class operator_min): Move from... * range-op.cc (unified_table::unified_table): Add MIN_EXPR. (class operator_min): Move from here. (integral_table::integral_table): Remove MIN_EXPR.
Diffstat (limited to 'gcc/range-op-mixed.h')
-rw-r--r--gcc/range-op-mixed.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/range-op-mixed.h b/gcc/range-op-mixed.h
index 8a11d61..7bd9b5e 100644
--- a/gcc/range-op-mixed.h
+++ b/gcc/range-op-mixed.h
@@ -596,4 +596,15 @@ private:
const wide_int &rh_ub) const final override;
};
+class operator_min : public range_operator
+{
+public:
+ void update_bitmask (irange &r, const irange &lh,
+ const irange &rh) const final override;
+private:
+ void wi_fold (irange &r, tree type, const wide_int &lh_lb,
+ const wide_int &lh_ub, const wide_int &rh_lb,
+ const wide_int &rh_ub) const final override;
+};
+
#endif // GCC_RANGE_OP_MIXED_H