mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Checkin of new Analysis result printing header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d98049e38
commit
1a46243e7f
49
include/llvm/Analysis/Writer.h
Normal file
49
include/llvm/Analysis/Writer.h
Normal file
@ -0,0 +1,49 @@
|
||||
//===-- 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 "llvm/Assembly/Writer.h"
|
||||
|
||||
namespace cfg {
|
||||
|
||||
// This library provides support for printing out Intervals.
|
||||
class Interval;
|
||||
void WriteToOutput(const Interval *I, ostream &o);
|
||||
inline ostream &operator <<(ostream &o, const Interval *I) {
|
||||
WriteToOutput(I, o); return o;
|
||||
}
|
||||
|
||||
// Stuff for printing out Dominator data structures...
|
||||
class DominatorSet;
|
||||
class ImmediateDominators;
|
||||
class DominatorTree;
|
||||
class DominanceFrontier;
|
||||
|
||||
void WriteToOutput(const DominatorSet &, ostream &o);
|
||||
inline ostream &operator <<(ostream &o, const DominatorSet &DS) {
|
||||
WriteToOutput(DS, o); return o;
|
||||
}
|
||||
|
||||
void WriteToOutput(const ImmediateDominators &, ostream &o);
|
||||
inline ostream &operator <<(ostream &o, const ImmediateDominators &ID) {
|
||||
WriteToOutput(ID, o); return o;
|
||||
}
|
||||
|
||||
void WriteToOutput(const DominatorTree &, ostream &o);
|
||||
inline ostream &operator <<(ostream &o, const DominatorTree &DT) {
|
||||
WriteToOutput(DT, o); return o;
|
||||
}
|
||||
|
||||
void WriteToOutput(const DominanceFrontier &, ostream &o);
|
||||
inline ostream &operator <<(ostream &o, const DominanceFrontier &DF) {
|
||||
WriteToOutput(DF, o); return o;
|
||||
}
|
||||
} // End namespace CFG
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user