mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
8fc2f2072d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2369 91177308-0d34-0410-b5e6-96231b3b80d8
77 lines
2.3 KiB
C++
77 lines
2.3 KiB
C++
//===-- 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
|
|
|
|
#include <iosfwd>
|
|
|
|
// This library provides support for printing out Intervals.
|
|
class Interval;
|
|
class IntervalPartition;
|
|
|
|
void WriteToOutput(const Interval *I, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const Interval *I) {
|
|
WriteToOutput(I, o); return o;
|
|
}
|
|
|
|
void WriteToOutput(const IntervalPartition &IP, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
const IntervalPartition &IP) {
|
|
WriteToOutput(IP, o); return o;
|
|
}
|
|
|
|
// Stuff for printing out Dominator data structures...
|
|
class DominatorSet;
|
|
class ImmediateDominators;
|
|
class DominatorTree;
|
|
class DominanceFrontier;
|
|
|
|
void WriteToOutput(const DominatorSet &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorSet &DS) {
|
|
WriteToOutput(DS, o); return o;
|
|
}
|
|
|
|
void WriteToOutput(const ImmediateDominators &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
const ImmediateDominators &ID) {
|
|
WriteToOutput(ID, o); return o;
|
|
}
|
|
|
|
void WriteToOutput(const DominatorTree &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const DominatorTree &DT) {
|
|
WriteToOutput(DT, o); return o;
|
|
}
|
|
|
|
void WriteToOutput(const DominanceFrontier &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o,
|
|
const DominanceFrontier &DF) {
|
|
WriteToOutput(DF, o); return o;
|
|
}
|
|
|
|
// Stuff for printing out Loop information
|
|
class Loop;
|
|
class LoopInfo;
|
|
|
|
void WriteToOutput(const LoopInfo &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const LoopInfo &LI) {
|
|
WriteToOutput(LI, o); return o;
|
|
}
|
|
|
|
void WriteToOutput(const Loop *, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const Loop *L) {
|
|
WriteToOutput(L, o); return o;
|
|
}
|
|
|
|
class InductionVariable;
|
|
void WriteToOutput(const InductionVariable &, std::ostream &o);
|
|
inline std::ostream &operator <<(std::ostream &o, const InductionVariable &IV) {
|
|
WriteToOutput(IV, o); return o;
|
|
}
|
|
|
|
#endif
|