GCC Middle and Back End API Reference
graph.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void print_graph_cfg (const char *, struct function *)
 
void clean_graph_dump_file (const char *)
 
void finish_graph_dump_file (const char *)
 

Function Documentation

◆ clean_graph_dump_file()

void clean_graph_dump_file ( const char * base)
extern
Similar as clean_dump_file, but this time for graph output files.   

References open_graph_file(), and start_graph_dump().

Referenced by execute_function_dump(), and pass_init_dump_file().

◆ finish_graph_dump_file()

void finish_graph_dump_file ( const char * base)
extern
Do final work on the graph output file.   

References end_graph_dump(), and open_graph_file().

Referenced by emergency_dump_function(), and gcc::pass_manager::finish_optimization_passes().

◆ print_graph_cfg()

void print_graph_cfg ( const char * base,
struct function * fun )
extern
Header file for graph routines.
   Copyright (C) 1999-2024 Free Software Foundation, Inc.

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/>.   
Print a graphical representation of the CFG of function FUN.
First print all basic blocks.  Draw all edges at the end to get
subgraphs right for GraphViz, which requires nodes to be defined
before edges to cluster nodes properly.   

References open_graph_file(), and print_graph_cfg().