aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-set.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2017-11-18 07:35:18 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2017-11-18 07:35:18 +0000
commitcde30fe04594843d87226653c19dbc5e05fad7b4 (patch)
treeb5e137d10e39d84e2c7bf7e20768a34595c91cd5 /gcc/hash-set.h
parentf32e0e16b20cfbbbca6c8c5c799eb22aa870700b (diff)
downloadgcc-cde30fe04594843d87226653c19dbc5e05fad7b4.zip
gcc-cde30fe04594843d87226653c19dbc5e05fad7b4.tar.gz
gcc-cde30fe04594843d87226653c19dbc5e05fad7b4.tar.bz2
hash-set.h (hash_set::empty): New.
* hash-set.h (hash_set::empty): New. * tree-ssa-threadbackward.h: Delete. * tree-ssa-threadbackward.c (class thread_jumps): New. Move max_threaded_paths into class. (fsm_find_thread_path): Remove arguments that are now in class. (profitable_jump_thread_path): Rename to... (thread_jumps::profitable_jump_thread_path): ...this. (convert_and_register_jump_thread_path): Rename to... (thread_jumps::convert_and_register_current_path): ...this. (check_subpath_and_update_thread_path): Rename to... (thread_jumps::check_subpath_and_update_thread_path): ...this. (register_jump_thread_path_if_profitable): Rename to... (thread_jumps::register_jump_thread_path_if_profitable): ...this. (handle_phi): Rename to... (thread_jumps::handle_phi): ...this. (handle_assignment): Rename to... (thread_jumps::handle_assignment): ...this. (fsm_find_control_statement_thread_paths): Rename to... (thread_jumps::fsm_find_control_statement_thread_paths): ...this. (find_jump_threads_backwards): Rename to... (thread_jumps::find_jump_threads_backwards): ...this. Initialize path local data. (pass_thread_jumps::execute): Call find_jump_threads_backwards from within thread_jumps class. (pass_early_thread_jumps::execute): Same. From-SVN: r254913
Diffstat (limited to 'gcc/hash-set.h')
-rw-r--r--gcc/hash-set.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/hash-set.h b/gcc/hash-set.h
index d2247d3..8ce796d 100644
--- a/gcc/hash-set.h
+++ b/gcc/hash-set.h
@@ -80,6 +80,10 @@ public:
size_t elements () const { return m_table.elements (); }
+ /* Clear the hash table. */
+
+ void empty () { m_table.empty (); }
+
class iterator
{
public: