diff options
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFGraph.h')
-rw-r--r-- | llvm/lib/Target/Hexagon/RDFGraph.h | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFGraph.h b/llvm/lib/Target/Hexagon/RDFGraph.h index e91dff084b8..585f43e116f 100644 --- a/llvm/lib/Target/Hexagon/RDFGraph.h +++ b/llvm/lib/Target/Hexagon/RDFGraph.h @@ -924,10 +924,6 @@ namespace rdf { return MM; } - template <typename T> struct Print; - template <typename T> - raw_ostream &operator<< (raw_ostream &OS, const Print<T> &P); - template <typename T> struct Print { Print(const T &x, const DataFlowGraph &g) : Obj(x), G(g) {} @@ -942,6 +938,29 @@ namespace rdf { : Print<NodeAddr<T>>(x, g) {} }; + raw_ostream &operator<<(raw_ostream &OS, const Print<RegisterRef> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeId> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeAddr<DefNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeAddr<UseNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<NodeAddr<PhiUseNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeAddr<RefNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeList> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeSet> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<NodeAddr<PhiNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<NodeAddr<StmtNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<NodeAddr<InstrNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<NodeAddr<BlockNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<NodeAddr<FuncNode *>> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<RegisterSet> &P); + raw_ostream &operator<<(raw_ostream &OS, const Print<RegisterAggr> &P); + raw_ostream &operator<<(raw_ostream &OS, + const Print<DataFlowGraph::DefStack> &P); + } // end namespace rdf } // end namespace llvm |