Lines Matching defs:ContextEdge

252   struct ContextEdge;
290 std::vector<std::shared_ptr<ContextEdge>> CalleeEdges;
294 std::vector<std::shared_ptr<ContextEdge>> CallerEdges;
298 const std::vector<std::shared_ptr<ContextEdge>> *
392 ContextEdge *findEdgeFromCallee(const ContextNode *Callee);
393 ContextEdge *findEdgeFromCaller(const ContextNode *Caller);
394 void eraseCalleeEdge(const ContextEdge *Edge);
395 void eraseCallerEdge(const ContextEdge *Edge);
422 struct ContextEdge {
433 ContextEdge(ContextNode *Callee, ContextNode *Caller, uint8_t AllocType,
466 friend raw_ostream &operator<<(raw_ostream &OS, const ContextEdge &Edge) {
524 using EdgeIter = typename std::vector<std::shared_ptr<ContextEdge>>::iterator;
543 /// This will also perform the necessary clearing of the ContextEdge members
547 void removeEdgeFromGraph(ContextEdge *Edge, EdgeIter *EI = nullptr,
698 moveEdgeToNewCalleeClone(const std::shared_ptr<ContextEdge> &Edge,
705 void moveEdgeToExistingCalleeClone(const std::shared_ptr<ContextEdge> &Edge,
715 void moveCalleeEdgeToNewCaller(const std::shared_ptr<ContextEdge> &Edge,
758 using ContextEdge =
759 typename CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextEdge;
950 const std::vector<std::shared_ptr<ContextEdge<DerivedCCG, FuncTy, CallTy>>>
958 const std::shared_ptr<ContextEdge<DerivedCCG, FuncTy, CallTy>> &r) {
1050 std::shared_ptr<ContextEdge> Edge = std::make_shared<ContextEdge>(
1058 ContextEdge *Edge, EdgeIter *EI, bool CalleeIter) {
1112 typename CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextEdge *
1122 typename CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextEdge *
1133 eraseCalleeEdge(const ContextEdge *Edge) {
1135 CalleeEdges, [Edge](const std::shared_ptr<ContextEdge> &CalleeEdge) {
1144 eraseCallerEdge(const ContextEdge *Edge) {
1146 CallerEdges, [Edge](const std::shared_ptr<ContextEdge> &CallerEdge) {
1308 DenseSet<const ContextEdge *> &Visited,
1325 DenseSet<const ContextEdge *> Visited;
1357 auto NewEdge = std::make_shared<ContextEdge>(
1363 auto NewEdge = std::make_shared<ContextEdge>(
1379 const std::shared_ptr<ContextEdge<DerivedCCG, FuncTy, CallTy>> &Edge) {
2423 auto NewEdge = std::make_shared<ContextEdge>(
2817 void CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextEdge::dump()
2824 void CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextEdge::print(
2921 using EdgePtrTy = std::shared_ptr<ContextEdge<DerivedCCG, FuncTy, CallTy>>;
2928 mapped_iterator<typename std::vector<std::shared_ptr<ContextEdge<
3046 const std::shared_ptr<ContextEdge> &Edge,
3061 moveEdgeToExistingCalleeClone(const std::shared_ptr<ContextEdge> &Edge,
3115 auto NewEdge = std::make_shared<ContextEdge>(
3151 auto NewEdge = std::make_shared<ContextEdge>(
3177 moveCalleeEdgeToNewCaller(const std::shared_ptr<ContextEdge> &Edge,
3234 auto NewEdge = std::make_shared<ContextEdge>(
3370 [&](const std::shared_ptr<ContextEdge> &A,
3371 const std::shared_ptr<ContextEdge> &B) {
3758 Clone->CallerEdges, [&](const std::shared_ptr<ContextEdge> &E) {
3783 Clone->CallerEdges, [&](const std::shared_ptr<ContextEdge> &E) {
3788 const std::shared_ptr<ContextEdge> &Edge = *EI;