add an insertion operator.

llvm-svn: 96187
This commit is contained in:
Chris Lattner 2010-02-14 21:10:33 +00:00
parent 78291e3be8
commit dd2ec58276
1 changed files with 5 additions and 0 deletions

View File

@ -298,6 +298,11 @@ public: // Higher level manipulation routines.
bool canPatternMatch(std::string &Reason, const CodeGenDAGPatterns &CDP);
};
inline raw_ostream &operator<<(raw_ostream &OS, const TreePatternNode &TPN) {
TPN.print(OS);
return OS;
}
/// TreePattern - Represent a pattern, used for instructions, pattern
/// fragments, etc.