xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/tree-ssa-threadedge.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
11debfc3dSmrg /* Header file for SSA jump threading.
2*8feb0f0bSmrg    Copyright (C) 2013-2020 Free Software Foundation, Inc.
31debfc3dSmrg 
41debfc3dSmrg This file is part of GCC.
51debfc3dSmrg 
61debfc3dSmrg GCC is free software; you can redistribute it and/or modify it under
71debfc3dSmrg the terms of the GNU General Public License as published by the Free
81debfc3dSmrg Software Foundation; either version 3, or (at your option) any later
91debfc3dSmrg version.
101debfc3dSmrg 
111debfc3dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
121debfc3dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
131debfc3dSmrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
141debfc3dSmrg  for more details.
151debfc3dSmrg 
161debfc3dSmrg You should have received a copy of the GNU General Public License
171debfc3dSmrg along with GCC; see the file COPYING3.  If not see
181debfc3dSmrg <http://www.gnu.org/licenses/>.  */
191debfc3dSmrg 
201debfc3dSmrg #ifndef GCC_TREE_SSA_THREADEDGE_H
211debfc3dSmrg #define GCC_TREE_SSA_THREADEDGE_H
221debfc3dSmrg 
231debfc3dSmrg extern vec<tree> ssa_name_values;
241debfc3dSmrg #define SSA_NAME_VALUE(x) \
251debfc3dSmrg     (SSA_NAME_VERSION (x) < ssa_name_values.length () \
261debfc3dSmrg      ? ssa_name_values[SSA_NAME_VERSION (x)] \
271debfc3dSmrg      : NULL_TREE)
281debfc3dSmrg extern void set_ssa_name_value (tree, tree);
291debfc3dSmrg extern void threadedge_initialize_values (void);
301debfc3dSmrg extern void threadedge_finalize_values (void);
311debfc3dSmrg extern bool potentially_threadable_block (basic_block);
321debfc3dSmrg extern void propagate_threaded_block_debug_into (basic_block, basic_block);
33a2dc1f3fSmrg class evrp_range_analyzer;
341debfc3dSmrg extern void thread_outgoing_edges (basic_block, gcond *,
351debfc3dSmrg 				   const_and_copies *,
361debfc3dSmrg 				   avail_exprs_stack *,
37a2dc1f3fSmrg 				   evrp_range_analyzer *,
381debfc3dSmrg 				   tree (*) (gimple *, gimple *,
391debfc3dSmrg 					     avail_exprs_stack *, basic_block));
401debfc3dSmrg 
411debfc3dSmrg #endif /* GCC_TREE_SSA_THREADEDGE_H */
42