diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-02 05:45:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-02 05:45:30 +0000 |
commit | f50b952b93013bee7b6f23274461a7696a91ae59 (patch) | |
tree | d423ae4253dd6a83a3f809c8ce28ef01b4b35a1c /include/llvm/Assembly | |
parent | 70b6337d681b1d0a62922ce806fc15c2b8a31e5f (diff) | |
download | external_llvm-f50b952b93013bee7b6f23274461a7696a91ae59.zip external_llvm-f50b952b93013bee7b6f23274461a7696a91ae59.tar.gz external_llvm-f50b952b93013bee7b6f23274461a7696a91ae59.tar.bz2 |
Enable printing of dominator related information.
Theis will eventually be moved!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r-- | include/llvm/Assembly/Writer.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h index b8bfbad..9a54bda 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/Assembly/Writer.h @@ -94,8 +94,33 @@ namespace cfg { class Interval; void WriteToOutput(const Interval *I, ostream &o); inline ostream &operator <<(ostream &o, const Interval *I) { - WriteToOutput(I, o); - return o; + 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; } } |