Lines Matching refs:manager
45 PassManager manager; in TEST() local
46 EXPECT_EQ(0u, manager.NumPasses()); in TEST()
48 manager.AddPass<StripDebugInfoPass>(); in TEST()
49 EXPECT_EQ(1u, manager.NumPasses()); in TEST()
50 EXPECT_STREQ("strip-debug", manager.GetPass(0)->name()); in TEST()
52 manager.AddPass(MakeUnique<NullPass>()); in TEST()
53 EXPECT_EQ(2u, manager.NumPasses()); in TEST()
54 EXPECT_STREQ("strip-debug", manager.GetPass(0)->name()); in TEST()
55 EXPECT_STREQ("null", manager.GetPass(1)->name()); in TEST()
57 manager.AddPass<StripDebugInfoPass>(); in TEST()
58 EXPECT_EQ(3u, manager.NumPasses()); in TEST()
59 EXPECT_STREQ("strip-debug", manager.GetPass(0)->name()); in TEST()
60 EXPECT_STREQ("null", manager.GetPass(1)->name()); in TEST()
61 EXPECT_STREQ("strip-debug", manager.GetPass(2)->name()); in TEST()
63 manager.AddPass<NullPassWithArgs>(1u); in TEST()
64 manager.AddPass<NullPassWithArgs>("null pass args"); in TEST()
65 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}); in TEST()
66 manager.AddPass<NullPassWithArgs>(std::initializer_list<int>{1, 2}, 3); in TEST()
67 EXPECT_EQ(7u, manager.NumPasses()); in TEST()
68 EXPECT_STREQ("strip-debug", manager.GetPass(0)->name()); in TEST()
69 EXPECT_STREQ("null", manager.GetPass(1)->name()); in TEST()
70 EXPECT_STREQ("strip-debug", manager.GetPass(2)->name()); in TEST()
71 EXPECT_STREQ("null-with-args", manager.GetPass(3)->name()); in TEST()
72 EXPECT_STREQ("null-with-args", manager.GetPass(4)->name()); in TEST()
73 EXPECT_STREQ("null-with-args", manager.GetPass(5)->name()); in TEST()
74 EXPECT_STREQ("null-with-args", manager.GetPass(6)->name()); in TEST()
158 PassManager manager; in TEST() local
161 manager.consumer()); in TEST()
164 manager.Run(&context); in TEST()
165 manager.AddPass<AppendOpNopPass>(); in TEST()
170 manager.AddPass(MakeUnique<AppendTypeVoidInstPass>(100)); in TEST()
172 manager.Run(&context); in TEST()
178 manager.AddPass(MakeUnique<AppendTypeVoidInstPass>(200)); in TEST()
179 manager.Run(&context); in TEST()
183 manager.AddPass(MakeUnique<AppendTypeVoidInstPass>(10)); in TEST()
184 manager.Run(&context); in TEST()