Home
last modified time | relevance | path

Searched defs:GraphTraits (Results 1 – 19 of 19) sorted by relevance

/llvm-project/llvm/unittests/ADT/
H A DDirectedGraphTest.cpp55 template <> struct GraphTraits<DGTestNode *> { struct
56 using NodeRef = DGTestNode *;
58 static DGTestNode *DGTestGetTargetNode(DGEdge<DGTestNode, DGTestEdge> *P) { in DGTestGetTargetNode()
64 using ChildIteratorType =
66 using ChildEdgeIteratorType = DGTestNode::iterator;
68 static NodeRef getEntryNode(NodeRef N) { return N; } in getEntryNode()
69 static ChildIteratorType child_begin(NodeRef N) { in child_begin()
72 static ChildIteratorType child_end(NodeRef N) { in child_end()
76 static ChildEdgeIteratorType child_edge_begin(NodeRef N) { in child_edge_begin()
79 static ChildEdgeIteratorType child_edge_end(NodeRef N) { return N->end(); } in child_edge_end()
[all …]
/llvm-project/llvm/lib/CodeGen/
H A DMachineBlockFrequencyInfo.cpp90 template <> struct GraphTraits<MachineBlockFrequencyInfo *> { struct
91 NodeRefllvm::GraphTraits global() argument
92 ChildIteratorTypellvm::GraphTraits global() argument
93 nodes_iteratorllvm::GraphTraits global() argument
95 getEntryNodellvm::GraphTraits getEntryNode() argument
99 child_beginllvm::GraphTraits child_begin() argument
103 child_endllvm::GraphTraits child_end() argument
105 nodes_beginllvm::GraphTraits nodes_begin() argument
109 nodes_endllvm::GraphTraits nodes_end() argument
H A DMachineScheduler.cpp4373 template<> struct GraphTraits< global() struct
/llvm-project/llvm/include/llvm/ADT/
H A DGraphTraits.h37 struct GraphTraits { global() struct
103 NodeRefGraphTraits global() argument
[all...]
/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfo.cpp99 struct GraphTraits<BlockFrequencyInfo *> { struct
100 using NodeRef = const BasicBlock *;
101 using ChildIteratorType = const_succ_iterator;
102 using nodes_iterator = pointer_iterator<Function::const_iterator>;
104 static NodeRef getEntryNode(const BlockFrequencyInfo *G) { in getEntryNode()
108 static ChildIteratorType child_begin(const NodeRef N) { in child_begin()
112 static ChildIteratorType child_end(const NodeRef N) { return succ_end(N); } in child_end()
114 static nodes_iterator nodes_begin(const BlockFrequencyInfo *G) { in nodes_begin()
118 static nodes_iterator nodes_end(const BlockFrequencyInfo *G) { in nodes_end()
H A DCallPrinter.cpp117 struct GraphTraits<CallGraphDOTInfo *> struct
119 static NodeRef getEntryNode(CallGraphDOTInfo *CGInfo) { in getEntryNode()
125 PairTy;
126 static const CallGraphNode *CGGetValuePtr(const PairTy &P) { in CGGetValuePtr()
132 nodes_iterator;
134 static nodes_iterator nodes_begin(CallGraphDOTInfo *CGInfo) { in nodes_begin()
137 static nodes_iterator nodes_end(CallGraphDOTInfo *CGInfo) { in nodes_end()
H A DBlockFrequencyInfoImpl.cpp673 template <> struct GraphTraits<IrreducibleGraph> { struct
674 using GraphT = bfi_detail::IrreducibleGraph;
675 using NodeRef = const GraphT::IrrNode *;
676 using ChildIteratorType = GraphT::IrrNode::iterator;
678 static NodeRef getEntryNode(const GraphT &G) { return G.StartIrr; } in getEntryNode()
679 static ChildIteratorType child_begin(NodeRef N) { return N->succ_begin(); } in child_begin()
680 static ChildIteratorType child_end(NodeRef N) { return N->succ_end(); } in child_end()
H A DMemorySSA.cpp2296 struct GraphTraits<DOTFuncMSSAInfo *> : public GraphTraits<const BasicBlock *> { struct
2297 getEntryNodellvm::GraphTraits getEntryNode() argument
2302 nodes_iteratorllvm::GraphTraits global() argument
2304 nodes_beginllvm::GraphTraits nodes_begin() argument
2308 nodes_endllvm::GraphTraits nodes_end() argument
2312 sizellvm::GraphTraits size() argument
/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp462 struct GraphTraits<ModuleManager> { argument
461 struct GraphTraits<ModuleManager> { global() struct
463 ChildIteratorTypellvm::GraphTraits global() argument
464 nodes_iteratorllvm::GraphTraits global() argument
466 child_beginllvm::GraphTraits child_begin() argument
470 child_endllvm::GraphTraits child_end() argument
474 nodes_beginllvm::GraphTraits nodes_begin() argument
478 nodes_endllvm::GraphTraits nodes_end() argument
/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBlockCoverageInference.cpp276 struct GraphTraits<DotFuncBCIInfo *> : public GraphTraits<const BasicBlock *> { struct
277 static NodeRef getEntryNode(DotFuncBCIInfo *Info) { in getEntryNode()
282 using nodes_iterator = pointer_iterator<Function::const_iterator>;
284 static nodes_iterator nodes_begin(DotFuncBCIInfo *Info) { in nodes_begin()
288 static nodes_iterator nodes_end(DotFuncBCIInfo *Info) { in nodes_end()
292 static size_t size(DotFuncBCIInfo *Info) { in size()
H A DPGOInstrumentation.cpp2322 template <> struct GraphTraits<PGOUseFunc *> { global() struct
2323 NodeRefllvm::GraphTraits global() argument
2324 ChildIteratorTypellvm::GraphTraits global() argument
2325 nodes_iteratorllvm::GraphTraits global() argument
2327 getEntryNodellvm::GraphTraits getEntryNode() argument
2331 child_beginllvm::GraphTraits child_begin() argument
2335 child_endllvm::GraphTraits child_end() argument
2337 nodes_beginllvm::GraphTraits nodes_begin() argument
2341 nodes_endllvm::GraphTraits nodes_end() argument
/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp587 template <> struct GraphTraits<ArgumentGraphNode *> { global() struct
588 NodeRefllvm::GraphTraits global() argument
589 ChildIteratorTypellvm::GraphTraits global() argument
591 getEntryNodellvm::GraphTraits getEntryNode() argument
592 child_beginllvm::GraphTraits child_begin() argument
593 child_endllvm::GraphTraits child_end() argument
597 struct GraphTraits<ArgumentGraph *> : public GraphTraits<ArgumentGraphNode *> { global() struct
598 getEntryNodellvm::GraphTraits getEntryNode() argument
600 nodes_beginllvm::GraphTraits nodes_begin() argument
604 nodes_endllvm::GraphTraits nodes_end() argument
H A DMemProfContextDisambiguation.cpp2275 struct GraphTraits<const CallsiteContextGraph<DerivedCCG, FuncTy, CallTy> *> { global() struct
2276 GraphTypeGraphTraits global() argument
2277 NodeRefGraphTraits global() argument
2279 NodePtrTyGraphTraits global() argument
2280 getNodeGraphTraits getNode() argument
2282 nodes_iteratorGraphTraits global() argument
2286 nodes_beginGraphTraits nodes_begin() argument
2290 nodes_endGraphTraits nodes_end() argument
2294 getEntryNodeGraphTraits getEntryNode() argument
2319 GetCalleeGraphTraits global() argument
2324 child_endGraphTraits global() argument
H A DAttributor.cpp4145 struct GraphTraits<AADepGraph *> : public GraphTraits<AADepGraphNode *> { in DepGetVal() argument
4139 template <> struct GraphTraits<AADepGraphNode *> { global() struct
4140 NodeRefllvm::GraphTraits global() argument
4141 DepTyllvm::GraphTraits global() argument
4142 EdgeRefllvm::GraphTraits global() argument
4144 getEntryNodellvm::GraphTraits getEntryNode() argument
4147 ChildIteratorTypellvm::GraphTraits global() argument
4149 ChildEdgeIteratorTypellvm::GraphTraits global() argument
4151 child_beginllvm::GraphTraits child_begin() argument
4153 child_endllvm::GraphTraits child_end() argument
4157 struct GraphTraits<AADepGraph *> : public GraphTraits<AADepGraphNode *> { global() struct
4158 getEntryNodellvm::GraphTraits getEntryNode() argument
4160 nodes_iteratorllvm::GraphTraits global() argument
4163 nodes_beginllvm::GraphTraits nodes_begin() argument
4165 nodes_endllvm::GraphTraits nodes_end() argument
/llvm-project/llvm/lib/Passes/
H A DStandardInstrumentations.cpp2106 template <> struct GraphTraits<DotCfgDiffDisplayGraph *> { global() struct
2107 NodeRefllvm::GraphTraits global() argument
2108 ChildIteratorTypellvm::GraphTraits global() argument
2109 nodes_iteratorllvm::GraphTraits global() argument
2110 EdgeRefllvm::GraphTraits global() argument
2111 ChildEdgeIteratorllvm::GraphTraits global() argument
2113 getEntryNodellvm::GraphTraits getEntryNode() argument
2116 child_beginllvm::GraphTraits child_begin() argument
2119 child_endllvm::GraphTraits child_end() argument
2120 nodes_beginllvm::GraphTraits nodes_begin() argument
2123 nodes_endllvm::GraphTraits nodes_end() argument
2126 child_edge_beginllvm::GraphTraits child_edge_begin() argument
2129 child_edge_endllvm::GraphTraits child_edge_end() argument
2130 edge_destllvm::GraphTraits edge_dest() argument
2131 sizellvm::GraphTraits size() argument
/llvm-project/llvm/lib/Transforms/Utils/
H A DFixIrreducible.cpp246 template <> struct GraphTraits<Loop> : LoopBodyTraits {}; global() struct
/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp438 template <> struct GraphTraits<RematGraph *> { global() struct
439 NodeRefllvm::GraphTraits global() argument
440 ChildIteratorTypellvm::GraphTraits global() argument
442 getEntryNodellvm::GraphTraits getEntryNode() argument
443 child_beginllvm::GraphTraits child_begin() argument
446 child_endllvm::GraphTraits child_end() argument
/llvm-project/llvm/lib/Target/X86/
H A DX86LoadValueInjectionLoadHardening.cpp188 : GraphTraits<ImmutableGraph<MachineInstr *, int> *> {}; struct
/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4002 template <> struct GraphTraits<BoUpSLP *> { global() struct
4003 TreeEntryllvm::GraphTraits global() argument
4006 NodeRefllvm::GraphTraits global() argument
4008 ContainerTyllvm::GraphTraits global() argument
4012 ChildIteratorTypellvm::GraphTraits global() argument
4024 getEntryNodellvm::GraphTraits getEntryNode() argument
4028 child_beginllvm::GraphTraits child_begin() argument
4032 child_endllvm::GraphTraits child_end() argument
4038 nodes_iteratorllvm::GraphTraits global() argument
4052 nodes_beginllvm::GraphTraits nodes_begin() argument
4056 nodes_endllvm::GraphTraits nodes_end() argument
4060 sizellvm::GraphTraits size() argument