reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Analysis/LazyCallGraphTest.cpp
 2125   LazyCallGraph::Node &AN = CG.get(lookupFunction(*M, "a"));
 2126   LazyCallGraph::Node &BN = CG.get(lookupFunction(*M, "b"));
 2127   LazyCallGraph::Node &CN = CG.get(lookupFunction(*M, "c"));
 2128   LazyCallGraph::Node &DN = CG.get(lookupFunction(*M, "d"));
 2129   LazyCallGraph::Node &DeadN = CG.get(lookupFunction(*M, "dead"));
 2135   CG.insertEdge(AN, DeadN, LazyCallGraph::Edge::Ref);
 2136   CG.insertEdge(BN, DeadN, LazyCallGraph::Edge::Ref);
 2137   CG.insertEdge(CN, DeadN, LazyCallGraph::Edge::Ref);
 2138   CG.insertEdge(DN, DeadN, LazyCallGraph::Edge::Ref);
 2141   CG.buildRefSCCs();
 2142   auto I = CG.postorder_ref_scc_begin();
 2146   EXPECT_EQ(CG.postorder_ref_scc_end(), I);
 2152   EXPECT_EQ(&DeadRC, CG.lookupRefSCC(DeadN));
 2153   EXPECT_EQ(&C1, CG.lookupSCC(DN));
 2154   EXPECT_EQ(&C1, CG.lookupSCC(CN));
 2155   EXPECT_EQ(&C2, CG.lookupSCC(BN));
 2156   EXPECT_EQ(&RC1, CG.lookupRefSCC(DN));
 2157   EXPECT_EQ(&RC1, CG.lookupRefSCC(CN));
 2158   EXPECT_EQ(&RC1, CG.lookupRefSCC(BN));
 2159   EXPECT_EQ(&RC2, CG.lookupRefSCC(AN));
 2163   CG.removeDeadFunction(DeadN.getFunction());
 2167   I = CG.postorder_ref_scc_begin();
 2170   EXPECT_EQ(CG.postorder_ref_scc_end(), I);