PIPS
print.c File Reference
#include <stdio.h>
#include <string.h>
#include "linear.h"
#include "genC.h"
#include "misc.h"
#include "ri.h"
#include "ri-util.h"
#include "callgraph.h"
+ Include dependency graph for print.c:

Go to the source code of this file.

Functions

void print_callees (callees c)
 functions to print a call graph More...
 
bool print_decorated_call_graph (const string module_name, text(*module_to_text)(const string))
 
bool print_call_graph (const string module_name)
 

Function Documentation

◆ print_call_graph()

bool print_call_graph ( const string  module_name)
Parameters
module_nameodule_name

Definition at line 82 of file print.c.

83 {
84  bool success = false;
86  return success;
87 }
bool print_decorated_call_graph(const string module_name, text(*module_to_text)(const string))
Definition: print.c:64
const char * module_name(const char *s)
Return the module part of an entity name.
Definition: entity_names.c:296
bool success
Definition: gpips-local.h:59

References module_name(), and print_decorated_call_graph().

+ Here is the call graph for this function:

◆ print_callees()

void print_callees ( callees  c)

functions to print a call graph

print.c

They should be called by pipsmake

Lei Zhou, February 91 Modification:

  • Callgraph prints only callees, nothing else. January 93
  • GO: Decoration of callgraphs, with some analyze results June 95 Print callees for debugging purpose

Definition at line 52 of file print.c.

53 {
54  list l = callees_callees(c);
55 
56  MAP(STRING, mn, {
57  printf("%s\n", mn);
58  }, l);
59 }
#define STRING(x)
Definition: genC.h:87
#define MAP(_map_CASTER, _map_item, _map_code, _map_list)
Apply/map an instruction block on all the elements of a list (old fashioned)
Definition: newgen_list.h:226
#define callees_callees(x)
Definition: ri.h:675
int printf()
The structure used to build lists in NewGen.
Definition: newgen_list.h:41

References callees_callees, MAP, printf(), and STRING.

Referenced by callgraph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_decorated_call_graph()

bool print_decorated_call_graph ( const string  module_name,
text(*)(const string module_to_text 
)
Parameters
module_nameodule_name

Definition at line 64 of file print.c.

67 {
68  bool success = false;
70 
72  pips_debug(1, "===%s===\n", module_name);
73  success = module_to_callgraph(mod, module_to_text);
74  debug_off();
75 
76  return success;
77 }
#define CALLGRAPH_DEBUG_LEVEL
bool module_to_callgraph(entity module, text(*module_to_text)(const string))
Definition: callgraph.c:270
#define debug_on(env)
Definition: misc-local.h:157
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
Definition: misc-local.h:145
#define debug_off()
Definition: misc-local.h:160
entity module_name_to_entity(const char *mn)
This is an alias for local_name_to_top_level_entity.
Definition: entity.c:1479

References CALLGRAPH_DEBUG_LEVEL, debug_off, debug_on, module_name(), module_name_to_entity(), module_to_callgraph(), and pips_debug.

Referenced by print_call_graph(), print_call_graph_with_complexities(), print_call_graph_with_preconditions(), print_call_graph_with_total_preconditions(), and print_call_graph_with_transformers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: