mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
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
This commit is contained in:
parent
8bbc979052
commit
7a8738c844
@ -62,9 +62,31 @@ namespace cfg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WriteToOutput(const CallGraphNode *, ostream &o);
|
void WriteToOutput(const CallGraphNode *, ostream &o);
|
||||||
inline ostream &operator <<(ostream &o, const CallGraphNode *CG) {
|
inline ostream &operator <<(ostream &o, const CallGraphNode *CGN) {
|
||||||
WriteToOutput(CG, o); return o;
|
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
|
} // 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
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user