GCC Middle and Back End API Reference
tree-dump.h File Reference
#include "splay-tree.h"
#include "dumpfile.h"
Include dependency graph for tree-dump.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dump_node_info
 
struct  dump_queue
 
struct  dump_info
 

Macros

#define DUMP_NONE   0
 
#define DUMP_BINFO   1
 
#define dump_child(field, child)    queue_and_dump_index (di, field, child, DUMP_NONE)
 

Typedefs

typedef struct dump_infodump_info_p
 
typedef struct dump_node_infodump_node_info_p
 
typedef struct dump_queuedump_queue_p
 

Functions

void dump_pointer (dump_info_p, const char *, void *)
 
void dump_int (dump_info_p, const char *, int)
 
void dump_string (dump_info_p, const char *)
 
void dump_string_field (dump_info_p, const char *, const char *)
 
void queue_and_dump_index (dump_info_p, const char *, const_tree, int)
 
void queue_and_dump_type (dump_info_p, const_tree)
 
int dump_flag (dump_info_p, dump_flags_t, const_tree)
 

Macro Definition Documentation

◆ DUMP_BINFO

#define DUMP_BINFO   1

Referenced by dequeue_and_dump(), and queue().

◆ dump_child

#define dump_child ( field,
child )    queue_and_dump_index (di, field, child, DUMP_NONE)
Dump the CHILD and its children.   

Referenced by dequeue_and_dump().

◆ DUMP_NONE

#define DUMP_NONE   0
Flags used with queue functions.   

Referenced by dump_node(), and queue_and_dump_type().

Typedef Documentation

◆ dump_info_p

Tree-dumping functionality for intermediate representation.
   Copyright (C) 1999-2024 Free Software Foundation, Inc.
   Written by Mark Mitchell <mark@codesourcery.com>

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/>.   

◆ dump_node_info_p

Information about a node to be dumped.   

◆ dump_queue_p

A dump_queue is a link in the queue of things to be dumped.   

Function Documentation

◆ dump_flag()

int dump_flag ( dump_info_p di,
dump_flags_t flag,
const_tree node )
extern
Return nonzero if FLAG has been specified for the dump, and NODE
is not the root node of the dump.   

References dump_info::flags, and dump_info::node.

◆ dump_int()

void dump_int ( dump_info_p di,
const char * field,
int i )
extern
Dump integer I using FIELD to identify it.   

References dump_info::column, dump_maybe_newline(), ggc_alloc(), i, and dump_info::stream.

Referenced by dequeue_and_dump().

◆ dump_pointer()

void dump_pointer ( dump_info_p di,
const char * field,
void * ptr )
extern
Dump pointer PTR using FIELD to identify it.   

References dump_info::column, dump_maybe_newline(), ggc_alloc(), HOST_WIDE_INT_PRINT, and dump_info::stream.

Referenced by dequeue_and_dump().

◆ dump_string()

void dump_string ( dump_info_p di,
const char * string )
extern

◆ dump_string_field()

void dump_string_field ( dump_info_p di,
const char * field,
const char * string )
extern
Dump the string field S.   

References dump_info::column, dump_maybe_newline(), ggc_alloc(), and dump_info::stream.

Referenced by dequeue_and_dump().

◆ queue_and_dump_index()

void queue_and_dump_index ( dump_info_p di,
const char * field,
const_tree t,
int flags )
extern
If T has not already been output, queue it for subsequent output.
FIELD is a string to print before printing the index.  Then, the
index of T is printed.   

References dump_info::column, dump_index(), dump_maybe_newline(), ggc_alloc(), dump_info::nodes, queue, dump_info::stream, and splay_tree_node< T >::value().

Referenced by dequeue_and_dump(), and queue_and_dump_type().

◆ queue_and_dump_type()

void queue_and_dump_type ( dump_info_p di,
const_tree t )
extern
Dump the type of T.   

References DUMP_NONE, queue_and_dump_index(), and TREE_TYPE.

Referenced by dequeue_and_dump().