6 #ifndef JLM_JLM_LLVM_IR_PRINT_HPP
7 #define JLM_JLM_LLVM_IR_PRINT_HPP
18 class ControlFlowGraph;
19 class InterProceduralGraph;
20 class InterProceduralGraphModule;
25 to_dot(
const ControlFlowGraph & cfg);
30 fputs(
to_dot(cfg).c_str(), out);
37 to_str(
const InterProceduralGraph & ipg);
40 to_dot(
const InterProceduralGraph & ipg);
45 fputs(
to_str(ipg).c_str(), out);
52 fputs(
to_dot(ipg).c_str(), out);
58 static inline std::string
67 fputs(
to_str(im).c_str(), out);
74 to_str(
const AggregationNode & n,
const AnnotationMap & dm);
76 static inline std::string
83 print(
const AggregationNode & n,
const AnnotationMap & dm, FILE * out);
InterProceduralGraph & ipgraph() noexcept
Global memory state passed between functions.
std::string to_dot(const ControlFlowGraph &cfg)
static void print_ascii(const InterProceduralGraph &ipg, FILE *out)
void print(const AggregationNode &n, const AnnotationMap &dm, FILE *out)
std::string to_str(const InterProceduralGraph &clg)
static void print_dot(const ControlFlowGraph &cfg, FILE *out)