aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-26 18:47:46 +0000
committerChris Lattner <sabre@nondot.org>2001-11-26 18:47:46 +0000
commit7a8738c844c3dc75c10ed6526244cb89cd8069df (patch)
treea23d99725116ab2aa25b10250076873cfc2500df /include
parent8bbc97905277859da8fad2ca7e9b5ce8a6b313c1 (diff)
downloadexternal_llvm-7a8738c844c3dc75c10ed6526244cb89cd8069df.zip
external_llvm-7a8738c844c3dc75c10ed6526244cb89cd8069df.tar.gz
external_llvm-7a8738c844c3dc75c10ed6526244cb89cd8069df.tar.bz2
Add writer support for call graph nodes and loops and induction variables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/Writer.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Writer.h b/include/llvm/Analysis/Writer.h
index a368af0..2b43231 100644
--- a/include/llvm/Analysis/Writer.h
+++ b/include/llvm/Analysis/Writer.h
@@ -62,9 +62,31 @@ namespace cfg {
}
void WriteToOutput(const CallGraphNode *, ostream &o);
- inline ostream &operator <<(ostream &o, const CallGraphNode *CG) {
- WriteToOutput(CG, o); return o;
+ inline ostream &operator <<(ostream &o, const CallGraphNode *CGN) {
+ WriteToOutput(CGN, o); return o;
}
+
+ // Stuff for printing out Loop information
+ class Loop;
+ class LoopInfo;
+
+ void WriteToOutput(const LoopInfo &, ostream &o);
+ inline ostream &operator <<(ostream &o, const LoopInfo &LI) {
+ WriteToOutput(LI, o); return o;
+ }
+
+ void WriteToOutput(const Loop *, ostream &o);
+ inline ostream &operator <<(ostream &o, const Loop *L) {
+ WriteToOutput(L, o); return o;
+ }
+
} // End namespace CFG
+class InductionVariable;
+void WriteToOutput(const InductionVariable &, ostream &o);
+inline ostream &operator <<(ostream &o, const InductionVariable &IV) {
+ WriteToOutput(IV, o); return o;
+}
+
+
#endif