2001-07-03 05:37:26 +00:00
|
|
|
//===-- llvm/Analysis/Writer.h - Printer for Analysis routines ---*- C++ -*--=//
|
|
|
|
//
|
|
|
|
// This library provides routines to print out various analysis results to
|
|
|
|
// an output stream.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_ANALYSIS_WRITER_H
|
|
|
|
#define LLVM_ANALYSIS_WRITER_H
|
|
|
|
|
2002-04-08 21:52:32 +00:00
|
|
|
#include <iosfwd>
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
// This library provides support for printing out Intervals.
|
|
|
|
class Interval;
|
|
|
|
class IntervalPartition;
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const Interval *I, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const Interval *I) {
|
|
|
|
WriteToOutput(I, o); return o;
|
|
|
|
}
|
2001-07-03 15:28:08 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const IntervalPartition &IP, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
|
|
const IntervalPartition &IP) {
|
|
|
|
WriteToOutput(IP, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
// Stuff for printing out Dominator data structures...
|
|
|
|
class DominatorSet;
|
|
|
|
class ImmediateDominators;
|
|
|
|
class DominatorTree;
|
|
|
|
class DominanceFrontier;
|
2001-07-03 15:28:08 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const DominatorSet &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorSet &DS) {
|
|
|
|
WriteToOutput(DS, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const ImmediateDominators &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
|
|
const ImmediateDominators &ID) {
|
|
|
|
WriteToOutput(ID, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const DominatorTree &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorTree &DT) {
|
|
|
|
WriteToOutput(DT, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const DominanceFrontier &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
|
|
const DominanceFrontier &DF) {
|
|
|
|
WriteToOutput(DF, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
// Stuff for printing out Loop information
|
|
|
|
class Loop;
|
|
|
|
class LoopInfo;
|
2001-09-28 00:06:15 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const LoopInfo &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const LoopInfo &LI) {
|
|
|
|
WriteToOutput(LI, o); return o;
|
|
|
|
}
|
2001-11-26 18:47:46 +00:00
|
|
|
|
2002-04-28 16:19:42 +00:00
|
|
|
void WriteToOutput(const Loop *, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const Loop *L) {
|
|
|
|
WriteToOutput(L, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2001-11-26 18:47:46 +00:00
|
|
|
class InductionVariable;
|
2002-01-20 22:54:45 +00:00
|
|
|
void WriteToOutput(const InductionVariable &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const InductionVariable &IV) {
|
2001-11-26 18:47:46 +00:00
|
|
|
WriteToOutput(IV, o); return o;
|
|
|
|
}
|
|
|
|
|
2001-07-03 05:37:26 +00:00
|
|
|
#endif
|