[llvm-commits] [llvm] r96187 - /llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
Chris Lattner
sabre at nondot.org
Sun Feb 14 13:10:33 PST 2010
Author: lattner
Date: Sun Feb 14 15:10:33 2010
New Revision: 96187
URL: http://llvm.org/viewvc/llvm-project?rev=96187&view=rev
Log:
add an insertion operator.
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h?rev=96187&r1=96186&r2=96187&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h Sun Feb 14 15:10:33 2010
@@ -298,6 +298,11 @@
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.
More information about the llvm-commits
mailing list