Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 1 | //===--- CompilationGraph.h - The LLVM Compiler Driver ----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open |
| 6 | // Source License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // Compilation graph - definition. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H |
| 15 | #define LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H |
| 16 | |
| 17 | #include "AutoGenerated.h" |
| 18 | #include "Tool.h" |
| 19 | |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 20 | #include "llvm/ADT/GraphTraits.h" |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 21 | #include "llvm/ADT/IntrusiveRefCntPtr.h" |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 22 | #include "llvm/ADT/iterator" |
| 23 | #include "llvm/ADT/SmallVector.h" |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 24 | #include "llvm/ADT/StringMap.h" |
| 25 | #include "llvm/System/Path.h" |
| 26 | |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 27 | #include <string> |
| 28 | |
Mikhail Glushenkov | be9d9a1 | 2008-05-06 18:08:59 +0000 | [diff] [blame] | 29 | namespace llvmc { |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 30 | |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 31 | // An edge of the compilation graph. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 32 | class Edge : public llvm::RefCountedBaseVPTR<Edge> { |
| 33 | public: |
| 34 | Edge(const std::string& T) : ToolName_(T) {} |
| 35 | virtual ~Edge() {}; |
| 36 | |
| 37 | const std::string& ToolName() const { return ToolName_; } |
| 38 | virtual bool isEnabled() const = 0; |
| 39 | virtual bool isDefault() const = 0; |
| 40 | private: |
| 41 | std::string ToolName_; |
| 42 | }; |
| 43 | |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 44 | // Edges that have no properties are instances of this class. |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 45 | class SimpleEdge : public Edge { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 46 | public: |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 47 | SimpleEdge(const std::string& T) : Edge(T) {} |
Mikhail Glushenkov | 6591c89 | 2008-05-06 17:23:50 +0000 | [diff] [blame] | 48 | bool isEnabled() const { return false;} |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 49 | bool isDefault() const { return true;} |
| 50 | }; |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 51 | |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 52 | // A node of the compilation graph. |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 53 | struct Node { |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 54 | // A Node holds a list of the outward edges. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 55 | typedef llvm::SmallVector<llvm::IntrusiveRefCntPtr<Edge>, 3> container_type; |
| 56 | typedef container_type::iterator iterator; |
| 57 | typedef container_type::const_iterator const_iterator; |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 58 | |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 59 | Node() : OwningGraph(0), InEdges(0) {} |
| 60 | Node(CompilationGraph* G) : OwningGraph(G), InEdges(0) {} |
| 61 | Node(CompilationGraph* G, Tool* T) : |
| 62 | OwningGraph(G), ToolPtr(T), InEdges(0) {} |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 63 | |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 64 | bool HasChildren() const { return !OutEdges.empty(); } |
Mikhail Glushenkov | 0260658 | 2008-05-06 18:07:14 +0000 | [diff] [blame] | 65 | const std::string Name() const |
| 66 | { return ToolPtr ? ToolPtr->Name() : "root"; } |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 67 | |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 68 | // Iteration. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 69 | iterator EdgesBegin() { return OutEdges.begin(); } |
| 70 | const_iterator EdgesBegin() const { return OutEdges.begin(); } |
| 71 | iterator EdgesEnd() { return OutEdges.end(); } |
| 72 | const_iterator EdgesEnd() const { return OutEdges.end(); } |
| 73 | |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 74 | // Add an outward edge. Takes ownership of the Edge object. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 75 | void AddEdge(Edge* E) |
| 76 | { OutEdges.push_back(llvm::IntrusiveRefCntPtr<Edge>(E)); } |
| 77 | |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 78 | // Inward edge counter. Used to implement topological sort. |
| 79 | // TOTHINK: Move the mutable counter back into Tool classes? Makes |
| 80 | // us more const-correct. |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 81 | void IncrInEdges() { ++InEdges; } |
| 82 | void DecrInEdges() { --InEdges; } |
| 83 | bool HasNoInEdges() const { return InEdges == 0; } |
| 84 | |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 85 | // Needed to implement NodeChildIterator/GraphTraits |
| 86 | CompilationGraph* OwningGraph; |
| 87 | // The corresponding Tool. |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 88 | // WARNING: ToolPtr can be NULL (for the root node). |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 89 | llvm::IntrusiveRefCntPtr<Tool> ToolPtr; |
| 90 | // Links to children. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 91 | container_type OutEdges; |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 92 | // Inward edge counter. Updated in |
| 93 | // CompilationGraph::insertEdge(). Used for topological sorting. |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 94 | unsigned InEdges; |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 95 | }; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 96 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 97 | class NodesIterator; |
| 98 | |
Mikhail Glushenkov | 0260658 | 2008-05-06 18:07:14 +0000 | [diff] [blame] | 99 | // The compilation graph itself. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 100 | class CompilationGraph { |
Mikhail Glushenkov | 4f6e3a4 | 2008-05-06 17:28:03 +0000 | [diff] [blame] | 101 | // Main data structure. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 102 | typedef llvm::StringMap<Node> nodes_map_type; |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 103 | // These are used to map from language names to tools. (We can |
| 104 | // have several tools associated with each language name, hence |
| 105 | // the need for a vector of Edges.) |
Mikhail Glushenkov | 4f6e3a4 | 2008-05-06 17:28:03 +0000 | [diff] [blame] | 106 | typedef |
| 107 | llvm::SmallVector<llvm::IntrusiveRefCntPtr<Edge>, 3> tools_vector_type; |
| 108 | typedef llvm::StringMap<tools_vector_type> tools_map_type; |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 109 | |
| 110 | // Map from file extensions to language names. |
| 111 | LanguageMap ExtsToLangs; |
| 112 | // Map from language names to lists of tool names. |
| 113 | tools_map_type ToolsMap; |
| 114 | // Map from tool names to Tool objects. |
| 115 | nodes_map_type NodesMap; |
| 116 | |
| 117 | public: |
| 118 | |
| 119 | CompilationGraph(); |
| 120 | |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 121 | // insertVertex - insert a new node into the graph. Takes |
| 122 | // ownership of the object. |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 123 | void insertNode(Tool* T); |
| 124 | |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 125 | // insertEdge - Insert a new edge into the graph. Takes ownership |
Mikhail Glushenkov | c74bfc9 | 2008-05-06 17:26:53 +0000 | [diff] [blame] | 126 | // of the Edge object. |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 127 | void insertEdge(const std::string& A, Edge* E); |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 128 | |
Mikhail Glushenkov | d752c3f | 2008-05-06 16:36:50 +0000 | [diff] [blame] | 129 | // Build - Build target(s) from the input file set. Command-line |
| 130 | // options are passed implicitly as global variables. |
Mikhail Glushenkov | 0260658 | 2008-05-06 18:07:14 +0000 | [diff] [blame] | 131 | int Build(llvm::sys::Path const& tempDir); |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 132 | |
| 133 | // Return a reference to the node correponding to the given tool |
| 134 | // name. Throws std::runtime_error. |
| 135 | Node& getNode(const std::string& ToolName); |
| 136 | const Node& getNode(const std::string& ToolName) const; |
| 137 | |
| 138 | // viewGraph - This function is meant for use from the debugger. |
| 139 | // You can just say 'call G->viewGraph()' and a ghostview window |
| 140 | // should pop up from the program, displaying the compilation |
| 141 | // graph. This depends on there being a 'dot' and 'gv' program |
| 142 | // in your path. |
| 143 | void viewGraph(); |
| 144 | |
| 145 | // Write a CompilationGraph.dot file. |
| 146 | void writeGraph(); |
| 147 | |
| 148 | // GraphTraits support |
| 149 | friend NodesIterator GraphBegin(CompilationGraph*); |
| 150 | friend NodesIterator GraphEnd(CompilationGraph*); |
| 151 | friend void PopulateCompilationGraph(CompilationGraph&); |
| 152 | |
| 153 | private: |
| 154 | // Helper functions. |
| 155 | |
| 156 | // Find out which language corresponds to the suffix of this file. |
| 157 | const std::string& getLanguage(const llvm::sys::Path& File) const; |
| 158 | |
| 159 | // Return a reference to the list of tool names corresponding to |
| 160 | // the given language name. Throws std::runtime_error. |
| 161 | const tools_vector_type& getToolsVector(const std::string& LangName) const; |
Mikhail Glushenkov | 2ba4c5a | 2008-05-06 17:25:51 +0000 | [diff] [blame] | 162 | |
| 163 | // Pass the input file through the toolchain. |
Mikhail Glushenkov | 35a85e8 | 2008-05-06 18:10:20 +0000 | [diff] [blame^] | 164 | void PassThroughGraph (const llvm::sys::Path& In, const Node* StartNode, |
| 165 | const llvm::sys::Path& TempDir) const; |
Mikhail Glushenkov | 2ba4c5a | 2008-05-06 17:25:51 +0000 | [diff] [blame] | 166 | |
Mikhail Glushenkov | 0260658 | 2008-05-06 18:07:14 +0000 | [diff] [blame] | 167 | // Find head of the toolchain corresponding to the given file. |
| 168 | const Node* FindToolChain(const llvm::sys::Path& In) const; |
| 169 | |
| 170 | // Sort the nodes in topological order. |
| 171 | void TopologicalSort(std::vector<const Node*>& Out); |
| 172 | // Call TopologicalSort and filter the resulting list to include |
| 173 | // only Join nodes. |
| 174 | void TopologicalSortFilterJoinNodes(std::vector<const Node*>& Out); |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 175 | }; |
| 176 | |
| 177 | /// GraphTraits support code. |
| 178 | |
| 179 | // Auxiliary class needed to implement GraphTraits support. Can be |
| 180 | // generalised to something like value_iterator for map-like |
| 181 | // containers. |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 182 | class NodesIterator : public llvm::StringMap<Node>::iterator { |
| 183 | typedef llvm::StringMap<Node>::iterator super; |
| 184 | typedef NodesIterator ThisType; |
| 185 | typedef Node* pointer; |
| 186 | typedef Node& reference; |
| 187 | |
| 188 | public: |
| 189 | NodesIterator(super I) : super(I) {} |
| 190 | |
| 191 | inline reference operator*() const { |
| 192 | return super::operator->()->second; |
| 193 | } |
| 194 | inline pointer operator->() const { |
| 195 | return &super::operator->()->second; |
| 196 | } |
| 197 | }; |
| 198 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 199 | inline NodesIterator GraphBegin(CompilationGraph* G) { |
| 200 | return NodesIterator(G->NodesMap.begin()); |
| 201 | } |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 202 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 203 | inline NodesIterator GraphEnd(CompilationGraph* G) { |
| 204 | return NodesIterator(G->NodesMap.end()); |
| 205 | } |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 206 | |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 207 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 208 | // Another auxiliary class needed by GraphTraits. |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 209 | class NodeChildIterator : public bidirectional_iterator<Node, ptrdiff_t> { |
| 210 | typedef NodeChildIterator ThisType; |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 211 | typedef Node::container_type::iterator iterator; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 212 | |
| 213 | CompilationGraph* OwningGraph; |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 214 | iterator EdgeIter; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 215 | public: |
| 216 | typedef Node* pointer; |
| 217 | typedef Node& reference; |
| 218 | |
| 219 | NodeChildIterator(Node* N, iterator I) : |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 220 | OwningGraph(N->OwningGraph), EdgeIter(I) {} |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 221 | |
| 222 | const ThisType& operator=(const ThisType& I) { |
| 223 | assert(OwningGraph == I.OwningGraph); |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 224 | EdgeIter = I.EdgeIter; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 225 | return *this; |
| 226 | } |
| 227 | |
| 228 | inline bool operator==(const ThisType& I) const |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 229 | { return EdgeIter == I.EdgeIter; } |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 230 | inline bool operator!=(const ThisType& I) const |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 231 | { return EdgeIter != I.EdgeIter; } |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 232 | |
| 233 | inline pointer operator*() const { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 234 | return &OwningGraph->getNode((*EdgeIter)->ToolName()); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 235 | } |
| 236 | inline pointer operator->() const { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 237 | return &OwningGraph->getNode((*EdgeIter)->ToolName()); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 238 | } |
| 239 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 240 | ThisType& operator++() { ++EdgeIter; return *this; } // Preincrement |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 241 | ThisType operator++(int) { // Postincrement |
| 242 | ThisType tmp = *this; |
| 243 | ++*this; |
| 244 | return tmp; |
| 245 | } |
| 246 | |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 247 | inline ThisType& operator--() { --EdgeIter; return *this; } // Predecrement |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 248 | inline ThisType operator--(int) { // Postdecrement |
| 249 | ThisType tmp = *this; |
| 250 | --*this; |
| 251 | return tmp; |
| 252 | } |
| 253 | |
| 254 | }; |
| 255 | } |
| 256 | |
| 257 | namespace llvm { |
| 258 | template <> |
Mikhail Glushenkov | be9d9a1 | 2008-05-06 18:08:59 +0000 | [diff] [blame] | 259 | struct GraphTraits<llvmc::CompilationGraph*> { |
| 260 | typedef llvmc::CompilationGraph GraphType; |
| 261 | typedef llvmc::Node NodeType; |
| 262 | typedef llvmc::NodeChildIterator ChildIteratorType; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 263 | |
| 264 | static NodeType* getEntryNode(GraphType* G) { |
| 265 | return &G->getNode("root"); |
| 266 | } |
| 267 | |
| 268 | static ChildIteratorType child_begin(NodeType* N) { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 269 | return ChildIteratorType(N, N->OutEdges.begin()); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 270 | } |
| 271 | static ChildIteratorType child_end(NodeType* N) { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 272 | return ChildIteratorType(N, N->OutEdges.end()); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 273 | } |
| 274 | |
Mikhail Glushenkov | be9d9a1 | 2008-05-06 18:08:59 +0000 | [diff] [blame] | 275 | typedef llvmc::NodesIterator nodes_iterator; |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 276 | static nodes_iterator nodes_begin(GraphType *G) { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 277 | return GraphBegin(G); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 278 | } |
| 279 | static nodes_iterator nodes_end(GraphType *G) { |
Mikhail Glushenkov | 0a17493 | 2008-05-06 16:36:06 +0000 | [diff] [blame] | 280 | return GraphEnd(G); |
Mikhail Glushenkov | 0d08db0 | 2008-05-06 16:35:25 +0000 | [diff] [blame] | 281 | } |
| 282 | }; |
| 283 | |
Mikhail Glushenkov | b90cd83 | 2008-05-06 16:34:12 +0000 | [diff] [blame] | 284 | } |
| 285 | |
| 286 | #endif // LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H |