GCC Middle and Back End API Reference
|
#include <tree-streamer.h>
Data Fields | |
pointer_map< unsigned > * | node_map |
vec< tree > | nodes |
vec< hashval_t > | hashes |
Data structures and functions for streaming trees.
Copyright (C) 2011-2013 Free Software Foundation, Inc. Contributed by Diego Novillo dnovi llo@ googl e.co m
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/. Cache of pickled nodes. Used to avoid writing the same node more than once. The first time a tree node is streamed out, it is entered in this cache. Subsequent references to the same node are resolved by looking it up in this cache.
This is used in two ways:
vec<hashval_t> streamer_tree_cache_d::hashes |
The node hashes (if available).
Referenced by preload_common_nodes(), streamer_tree_cache_add_to_node_array(), streamer_tree_cache_create(), and streamer_tree_cache_insert().
pointer_map<unsigned>* streamer_tree_cache_d::node_map |
The mapping between tree nodes and slots into the nodes array.
Referenced by preload_common_nodes(), streamer_tree_cache_append(), streamer_tree_cache_create(), streamer_tree_cache_insert(), and streamer_tree_cache_replace_tree().
The nodes pickled so far.
Referenced by lto_read_tree_1(), preload_common_nodes(), streamer_tree_cache_add_to_node_array(), streamer_tree_cache_create(), and streamer_tree_cache_replace_tree().