• Home
  • Raw
  • Download

Lines Matching refs:cdg

30 void GatherEdges(const ControlDependenceAnalysis& cdg,  in GatherEdges()  argument
32 cdg.ForEachBlockLabel([&](uint32_t label) { in GatherEdges()
33 ret.reserve(ret.size() + cdg.GetDependenceTargets(label).size()); in GatherEdges()
34 ret.insert(ret.end(), cdg.GetDependenceTargets(label).begin(), in GatherEdges()
35 cdg.GetDependenceTargets(label).end()); in GatherEdges()
41 cdg.ForEachBlockLabel([&](uint32_t label) { in GatherEdges()
43 cdg.GetDependenceSources(label).begin(), in GatherEdges()
44 cdg.GetDependenceSources(label).end()); in GatherEdges()
122 ControlDependenceAnalysis cdg; in TEST() local
123 cdg.ComputeControlDependenceGraph(cfg, pdom); in TEST()
127 EXPECT_TRUE(cdg.HasBlock(id)); in TEST()
129 EXPECT_TRUE(cdg.HasBlock(ControlDependenceAnalysis::kPseudoEntryBlock)); in TEST()
131 EXPECT_FALSE(cdg.HasBlock(5)); in TEST()
132 EXPECT_FALSE(cdg.HasBlock(25)); in TEST()
133 EXPECT_FALSE(cdg.HasBlock(UINT32_MAX)); in TEST()
137 cdg.ForEachBlockLabel([&block_labels](uint32_t id) { in TEST()
147 EXPECT_TRUE(cdg.WhileEachBlockLabel([&iters](uint32_t) { in TEST()
153 EXPECT_FALSE(cdg.WhileEachBlockLabel([&iters](uint32_t) { in TEST()
161 EXPECT_TRUE(cdg.IsDependent(12, 11)); in TEST()
162 EXPECT_TRUE(cdg.IsDependent(13, 11)); in TEST()
163 EXPECT_TRUE(cdg.IsDependent(15, 14)); in TEST()
164 EXPECT_TRUE(cdg.IsDependent(16, 14)); in TEST()
165 EXPECT_TRUE(cdg.IsDependent(18, 14)); in TEST()
166 EXPECT_TRUE(cdg.IsDependent(17, 16)); in TEST()
167 EXPECT_TRUE(cdg.IsDependent(10, 0)); in TEST()
168 EXPECT_TRUE(cdg.IsDependent(11, 0)); in TEST()
169 EXPECT_TRUE(cdg.IsDependent(14, 0)); in TEST()
170 EXPECT_TRUE(cdg.IsDependent(19, 0)); in TEST()
171 EXPECT_FALSE(cdg.IsDependent(14, 11)); in TEST()
172 EXPECT_FALSE(cdg.IsDependent(17, 14)); in TEST()
173 EXPECT_FALSE(cdg.IsDependent(19, 14)); in TEST()
174 EXPECT_FALSE(cdg.IsDependent(12, 0)); in TEST()
178 GatherEdges(cdg, edges); in TEST()
275 ControlDependenceAnalysis cdg; in TEST() local
276 cdg.ComputeControlDependenceGraph(cfg, pdom); in TEST()
279 GatherEdges(cdg, edges); in TEST()