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

References

unittests/Analysis/LazyCallGraphTest.cpp
  753   CG.buildRefSCCs();
  754   for (LazyCallGraph::RefSCC &RC : CG.postorder_ref_sccs())
  757   LazyCallGraph::Node &A1 = *CG.lookup(lookupFunction(*M, "a1"));
  758   LazyCallGraph::Node &A2 = *CG.lookup(lookupFunction(*M, "a2"));
  759   LazyCallGraph::Node &A3 = *CG.lookup(lookupFunction(*M, "a3"));
  760   LazyCallGraph::Node &B1 = *CG.lookup(lookupFunction(*M, "b1"));
  761   LazyCallGraph::Node &B2 = *CG.lookup(lookupFunction(*M, "b2"));
  762   LazyCallGraph::Node &B3 = *CG.lookup(lookupFunction(*M, "b3"));
  763   LazyCallGraph::Node &C1 = *CG.lookup(lookupFunction(*M, "c1"));
  764   LazyCallGraph::Node &C2 = *CG.lookup(lookupFunction(*M, "c2"));
  765   LazyCallGraph::Node &C3 = *CG.lookup(lookupFunction(*M, "c3"));
  766   LazyCallGraph::Node &D1 = *CG.lookup(lookupFunction(*M, "d1"));
  767   LazyCallGraph::Node &D2 = *CG.lookup(lookupFunction(*M, "d2"));
  768   LazyCallGraph::Node &D3 = *CG.lookup(lookupFunction(*M, "d3"));
  769   LazyCallGraph::RefSCC &ARC = *CG.lookupRefSCC(A1);
  770   LazyCallGraph::RefSCC &BRC = *CG.lookupRefSCC(B1);
  771   LazyCallGraph::RefSCC &CRC = *CG.lookupRefSCC(C1);
  772   LazyCallGraph::RefSCC &DRC = *CG.lookupRefSCC(D1);
  773   ASSERT_EQ(&ARC, CG.lookupRefSCC(A2));
  774   ASSERT_EQ(&ARC, CG.lookupRefSCC(A3));
  775   ASSERT_EQ(&BRC, CG.lookupRefSCC(B2));
  776   ASSERT_EQ(&BRC, CG.lookupRefSCC(B3));
  777   ASSERT_EQ(&CRC, CG.lookupRefSCC(C2));
  778   ASSERT_EQ(&CRC, CG.lookupRefSCC(C3));
  779   ASSERT_EQ(&DRC, CG.lookupRefSCC(D2));
  780   ASSERT_EQ(&DRC, CG.lookupRefSCC(D3));
  808   EXPECT_EQ(&ARC, CG.lookupRefSCC(A1));
  809   EXPECT_EQ(&ARC, CG.lookupRefSCC(A2));
  810   EXPECT_EQ(&ARC, CG.lookupRefSCC(A3));
  811   EXPECT_EQ(&BRC, CG.lookupRefSCC(B1));
  812   EXPECT_EQ(&BRC, CG.lookupRefSCC(B2));
  813   EXPECT_EQ(&BRC, CG.lookupRefSCC(B3));
  814   EXPECT_EQ(&CRC, CG.lookupRefSCC(C1));
  815   EXPECT_EQ(&CRC, CG.lookupRefSCC(C2));
  816   EXPECT_EQ(&CRC, CG.lookupRefSCC(C3));
  817   EXPECT_EQ(&CRC, CG.lookupRefSCC(D1));
  818   EXPECT_EQ(&CRC, CG.lookupRefSCC(D2));
  819   EXPECT_EQ(&CRC, CG.lookupRefSCC(D3));
  826   auto I = CG.postorder_ref_scc_begin(), E = CG.postorder_ref_scc_end();
  826   auto I = CG.postorder_ref_scc_begin(), E = CG.postorder_ref_scc_end();