Lines Matching refs:TestModuleAnalysis
51 class TestModuleAnalysis : public AnalysisInfoMixin<TestModuleAnalysis> { class
58 TestModuleAnalysis(int &Runs) : Runs(Runs) {} in TestModuleAnalysis() function in __anone814850a0111::TestModuleAnalysis
69 friend AnalysisInfoMixin<TestModuleAnalysis>;
75 char TestModuleAnalysis::PassID;
100 (void)AM.getResult<TestModuleAnalysis>(M); in run()
120 if (TestModuleAnalysis::Result *TMA = in run()
121 MAM.getCachedResult<TestModuleAnalysis>(*F.getParent())) in run()
187 EXPECT_FALSE(PA1.preserved<TestModuleAnalysis>()); in TEST_F()
190 EXPECT_FALSE(PA2.preserved<TestModuleAnalysis>()); in TEST_F()
193 EXPECT_TRUE(PA3.preserved<TestModuleAnalysis>()); in TEST_F()
196 EXPECT_FALSE(PA4.preserved<TestModuleAnalysis>()); in TEST_F()
199 EXPECT_TRUE(PA4.preserved<TestModuleAnalysis>()); in TEST_F()
202 EXPECT_FALSE(PA4.preserved<TestModuleAnalysis>()); in TEST_F()
205 EXPECT_FALSE(PA4.preserved<TestModuleAnalysis>()); in TEST_F()
206 PA1.preserve<TestModuleAnalysis>(); in TEST_F()
208 EXPECT_TRUE(PA1.preserved<TestModuleAnalysis>()); in TEST_F()
211 EXPECT_TRUE(PA1.preserved<TestModuleAnalysis>()); in TEST_F()
214 EXPECT_FALSE(PA1.preserved<TestModuleAnalysis>()); in TEST_F()
224 MAM.registerPass([&] { return TestModuleAnalysis(ModuleAnalysisRuns); }); in TEST_F()