testsuite: simplify target requirements for various Power9 testcases.
[official-gcc.git] / gcc / gimple-ssa-evrp-analyze.h
blobc6d27f5c109a61f4df0cffe1f4f14496087dcb7c
1 /* Support routines for Value Range Propagation (VRP).
2 Copyright (C) 2016-2020 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_GIMPLE_SSA_EVRP_ANALYZE_H
21 #define GCC_GIMPLE_SSA_EVRP_ANALYZE_H
23 class evrp_range_analyzer : public vr_values
25 public:
26 evrp_range_analyzer (bool update_global_ranges);
27 ~evrp_range_analyzer (void)
29 stack.release ();
32 void enter (basic_block);
33 void push_marker (void);
34 void pop_to_marker (void);
35 void leave (basic_block);
36 void record_ranges_from_stmt (gimple *, bool);
38 /* Record a new unwindable range. */
39 void push_value_range (tree var, value_range_equiv *vr);
41 /* A bit of a wart. This should ideally go away. */
42 void vrp_visit_cond_stmt (gcond *cond, edge *e)
44 simplify_using_ranges simpl (this);
45 simpl.vrp_visit_cond_stmt (cond, e);
48 private:
49 DISABLE_COPY_AND_ASSIGN (evrp_range_analyzer);
51 void pop_value_range ();
52 value_range_equiv *try_find_new_range (tree, tree op, tree_code code,
53 tree limit);
54 void record_ranges_from_incoming_edge (basic_block);
55 void record_ranges_from_phis (basic_block);
56 void set_ssa_range_info (tree, value_range_equiv *);
58 /* STACK holds the old VR. */
59 auto_vec<std::pair <tree, value_range_equiv *> > stack;
61 /* True if we are updating global ranges, false otherwise. */
62 bool m_update_global_ranges;
65 #endif /* GCC_GIMPLE_SSA_EVRP_ANALYZE_H */