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...
|
2002-07-26 18:40:06 +00:00
|
|
|
class DominatorSetBase;
|
|
|
|
class ImmediateDominatorsBase;
|
|
|
|
class DominatorTreeBase;
|
|
|
|
class DominanceFrontierBase;
|
2001-07-03 15:28:08 +00:00
|
|
|
|
2002-07-26 18:40:06 +00:00
|
|
|
void WriteToOutput(const DominatorSetBase &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorSetBase &DS) {
|
2002-04-28 16:19:42 +00:00
|
|
|
WriteToOutput(DS, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-07-26 18:40:06 +00:00
|
|
|
void WriteToOutput(const ImmediateDominatorsBase &, std::ostream &o);
|
2002-04-28 16:19:42 +00:00
|
|
|
inline std::ostream &operator <<(std::ostream &o,
|
2002-07-26 18:40:06 +00:00
|
|
|
const ImmediateDominatorsBase &ID) {
|
2002-04-28 16:19:42 +00:00
|
|
|
WriteToOutput(ID, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-07-26 18:40:06 +00:00
|
|
|
void WriteToOutput(const DominatorTreeBase &, std::ostream &o);
|
|
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorTreeBase &DT) {
|
2002-04-28 16:19:42 +00:00
|
|
|
WriteToOutput(DT, o); return o;
|
|
|
|
}
|
2001-07-03 05:37:26 +00:00
|
|
|
|
2002-07-26 18:40:06 +00:00
|
|
|
void WriteToOutput(const DominanceFrontierBase &, std::ostream &o);
|
2002-04-28 16:19:42 +00:00
|
|
|
inline std::ostream &operator <<(std::ostream &o,
|
2002-07-26 18:40:06 +00:00
|
|
|
const DominanceFrontierBase &DF) {
|
2002-04-28 16:19:42 +00:00
|
|
|
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
|