#include "config.h"#include "system.h"#include "tree.h"#include "splay-tree.h"#include "diagnostic.h"#include "toplev.h"#include "tree-dump.h"#include "langhooks.h"

Go to the source code of this file.
| #define COLUMN_ALIGNMENT 15 |
| #define EOL_COLUMN 55 |
| #define SOL_COLUMN 25 |
Definition at line 144 of file tree-dump.c.
Referenced by dump_maybe_newline(), and dump_new_line().
| static void dequeue_and_dump | ( | dump_info_p | di | ) | [static] |
Definition at line 238 of file tree-dump.c.
References abort, BINFO_BASETYPES, dump_node_info::binfo_p, BINFO_TYPE, bit_position(), DECL_ALIGN, DECL_ARG_TYPE, DECL_ARGUMENTS, DECL_ARTIFICIAL, DECL_ASSEMBLER_NAME, DECL_ASSEMBLER_NAME_SET_P, DECL_CONTEXT, DECL_EXTERNAL, DECL_FIELD_OFFSET, DECL_INITIAL, DECL_LANG_SPECIFIC, DECL_NAME, DECL_P, DECL_REGISTER, DECL_SAVED_TREE, DECL_SIZE, DECL_SOURCE_FILE, DECL_SOURCE_LINE, DUMP_BINFO, dump_child, dump_flag, dump_index(), dump_int(), dump_maybe_newline(), dump_pointer(), dump_string(), dump_string_field(), EXPR_WFL_NODE, filename, fprintf(), i, IDENTIFIER_LENGTH, IDENTIFIER_POINTER, dump_node_info::index, index(), int, IS_EXPR_CODE_CLASS, splay_tree_node_s::key, dump_queue::next, dump_queue::node, NULL, queue_and_dump_index(), queue_and_dump_type(), sprintf(), strlen(), strrchr(), TDF_ADDRESS, TDF_SLIM, TREE_CHAIN, TREE_CODE, TREE_CODE_CLASS, tree_code_name, TREE_INT_CST_HIGH, TREE_INT_CST_LOW, TREE_OPERAND, TREE_PUBLIC, TREE_PURPOSE, TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_TYPE, TREE_UNSIGNED, TREE_USED, TREE_VALUE, TREE_VEC_ELT, TREE_VEC_LENGTH, TREE_VIA_PRIVATE, TREE_VIA_PROTECTED, TREE_VIA_PUBLIC, TREE_VIA_VIRTUAL, TYPE_ALIGN, TYPE_ARG_TYPES, TYPE_BINFO, TYPE_DOMAIN, TYPE_FIELDS, TYPE_MAIN_VARIANT, TYPE_MAX_VALUE, TYPE_METHOD_BASETYPE, TYPE_METHODS, TYPE_MIN_VALUE, TYPE_NAME, TYPE_PRECISION, TYPE_QUAL_CONST, TYPE_QUAL_RESTRICT, TYPE_QUAL_VOLATILE, TYPE_SIZE, TYPE_UNQUALIFIED, TYPE_VALUES, and splay_tree_node_s::value.
Referenced by dump_node().
| FILE* dump_begin | ( | enum tree_dump_index | phase, | |
| int * | flag_ptr | |||
| ) |
Definition at line 703 of file tree-dump.c.
Referenced by build_tree_cfg(), c_genericize(), c_objc_common_finish_file(), cp_finish_file(), dump_class_hierarchy(), dump_function(), dump_vtable(), dump_vtt(), execute_one_pass(), finish_file(), finish_optimization_passes(), init_cgraph(), and open_dump_file().
| int dump_enabled_p | ( | enum tree_dump_index | phase | ) |
Definition at line 729 of file tree-dump.c.
Referenced by c_expand_body(), cgraph_optimize(), cgraph_preserve_function_body_p(), cgraph_remove_node(), dump_begin(), expand_body(), open_dump_file(), rest_of_handle_global_alloc(), and rest_of_handle_old_regalloc().
Definition at line 748 of file tree-dump.c.
References fclose().
Referenced by build_tree_cfg(), c_genericize(), c_objc_common_finish_file(), close_dump_file(), cp_finish_file(), dump_class_hierarchy(), dump_function(), dump_vtable(), dump_vtt(), execute_one_pass(), finish_file(), and finish_optimization_passes().
| int dump_flag | ( | dump_info_p | di, | |
| int | flag, | |||
| tree | node | |||
| ) |
Definition at line 612 of file tree-dump.c.
| const char* dump_flag_name | ( | enum tree_dump_index | phase | ) |
| static void dump_index | ( | dump_info_p | di, | |
| unsigned int | index | |||
| ) | [static] |
Definition at line 91 of file tree-dump.c.
References fprintf().
Referenced by dequeue_and_dump(), and queue_and_dump_index().
| void dump_int | ( | dump_info_p | di, | |
| const char * | field, | |||
| int | i | |||
| ) |
Definition at line 194 of file tree-dump.c.
Referenced by cp_dump_tree(), dequeue_and_dump(), and dump_stmt().
| static void dump_maybe_newline | ( | dump_info_p | di | ) | [static] |
Definition at line 162 of file tree-dump.c.
References COLUMN_ALIGNMENT, dump_new_line(), EOL_COLUMN, fprintf(), and SOL_COLUMN.
Referenced by dequeue_and_dump(), dump_int(), dump_pointer(), dump_real(), dump_string(), dump_string_field(), and queue_and_dump_index().
| static void dump_new_line | ( | dump_info_p | di | ) | [static] |
Definition at line 152 of file tree-dump.c.
References fprintf(), and SOL_COLUMN.
Referenced by dump_maybe_newline().
Definition at line 623 of file tree-dump.c.
Referenced by c_genericize(), c_objc_common_finish_file(), cp_finish_file(), dump_function(), dump_function_to_file(), and finish_file().
| void dump_pointer | ( | dump_info_p | di, | |
| const char * | field, | |||
| void * | ptr | |||
| ) |
| void dump_string | ( | dump_info_p | di, | |
| const char * | string | |||
| ) |
Definition at line 207 of file tree-dump.c.
Referenced by c_dump_tree(), cp_dump_tree(), dequeue_and_dump(), dump_access(), and dump_op().
| static void dump_string_field | ( | dump_info_p | di, | |
| const char * | field, | |||
| const char * | string | |||
| ) | [static] |
Definition at line 222 of file tree-dump.c.
References dump_maybe_newline(), fprintf(), and strlen().
Referenced by cp_dump_tree(), dequeue_and_dump(), and dump_access().
| int dump_switch_p | ( | char * | arg | ) | const |
Definition at line 759 of file tree-dump.c.
References end_ptr, dump_file_info::flags, flags, length, memcmp, dump_option_value_info::name, ptr, skip_leading_substring, dump_file_info::state, strchr, strlen(), TDI_end, dump_option_value_info::value, and warning.
Referenced by c_common_decode_option(), common_handle_option(), and java_decode_option().
| static void dump_string_field PARAMS | ( | (dump_info_p, const char *, const char *) | ) | [static] |
| static void dequeue_and_dump PARAMS | ( | (dump_info_p) | ) | [static] |
| static void dump_index PARAMS | ( | (dump_info_p, unsigned int) | ) | [static] |
| static unsigned int queue PARAMS | ( | (dump_info_p, tree, int) | ) | [static] |
| static unsigned int queue | ( | dump_info_p | di, | |
| tree | t, | |||
| int | flags | |||
| ) | [static] |
Definition at line 50 of file tree-dump.c.
References dump_node_info::binfo_p, DUMP_BINFO, dump_node_info::index, index(), dump_queue::next, dump_queue::node, splay_tree_insert(), and xmalloc().
Referenced by REGION_INFO_MGR::Acquire_Rgn_Info(), calculate_global_regs_live(), REGIONAL_CFG::Compute_Node_Prof_Info(), REGIONAL_CFG::Compute_Nodes_To_Be_Duplicated(), REGIONAL_CFG::Compute_Scope_Based_On_Main_Exit(), dump_node(), fix_bb_placements(), SCC_DIRECTED_GRAPH16::Get_Level(), Perform_Gather_Scatter(), pop_function_context_from(), pxftcflush_(), queue_and_dump_index(), read_md_rtx(), single_reachable_address(), and REGIONAL_CFG::Update_BB_Prof_Info().
| void queue_and_dump_index | ( | dump_info_p | di, | |
| const char * | field, | |||
| tree | t, | |||
| int | flags | |||
| ) |
Definition at line 104 of file tree-dump.c.
Referenced by dequeue_and_dump(), and queue_and_dump_type().
| void queue_and_dump_type | ( | dump_info_p | di, | |
| tree | t | |||
| ) |
struct dump_file_info dump_files[TDI_end] [static] |
Initial value:
{
{".tu", "dump-translation-unit", 0, 0},
{".class", "dump-class-hierarchy", 0, 0},
{".original", "dump-tree-original", 0, 0},
{".optimized", "dump-tree-optimized", 0, 0},
{".inlined", "dump-tree-inlined", 0, 0},
}
Definition at line 671 of file tree-dump.c.
struct dump_option_value_info dump_options[] [static] |
Initial value:
{
{"address", TDF_ADDRESS},
{"slim", TDF_SLIM},
{"all", ~0},
{NULL, 0}
}
Definition at line 689 of file tree-dump.c.
Referenced by process_cmd_line().
1.5.6