PIPS
print.c
Go to the documentation of this file.
1 /*
2 
3  $Id: print.c 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 #ifdef HAVE_CONFIG_H
25  #include "pips_config.h"
26 #endif
27 
28 /* functions to print a interprocedural control flow graph
29  *
30  * They should be called by pipsmake
31  *
32  * Lei Zhou, February 91
33  */
34 #include <stdio.h>
35 #include <string.h>
36 
37 #include "genC.h"
38 #include "linear.h"
39 
40 #include "ri.h"
41 #include "text.h"
42 
43 #include "icfg.h"
44 
45 bool print_icfg(const string module_name)
46 {
47  return generic_print_icfg(module_name, false, false, false, NULL);
48 }
49 
51 {
52  return generic_print_icfg(module_name, false, true, false, NULL);
53 }
54 
56 {
57  return generic_print_icfg(module_name, true, true, false, NULL);
58 }
const char * module_name(const char *s)
Return the module part of an entity name.
Definition: entity_names.c:296
bool print_icfg_with_loops(const string module_name)
Definition: print.c:50
bool print_icfg(const string module_name)
functions to print a interprocedural control flow graph
Definition: print.c:45
bool print_icfg_with_control(const string module_name)
Definition: print.c:55
bool generic_print_icfg(const string, bool, bool, bool, text(*)(const string))
Definition: icfg_scan.c:713