Lines Matching refs:TestFunctionAnalysis
22 class TestFunctionAnalysis : public AnalysisInfoMixin<TestFunctionAnalysis> { class
29 TestFunctionAnalysis(int &Runs) : Runs(Runs) {} in TestFunctionAnalysis() function in __anon5a000c130111::TestFunctionAnalysis
43 friend AnalysisInfoMixin<TestFunctionAnalysis>;
49 char TestFunctionAnalysis::PassID;
126 if (TestFunctionAnalysis::Result *AR = in run()
127 AM.getCachedResult<TestFunctionAnalysis>(F)) in run()
131 TestFunctionAnalysis::Result &AR = AM.getResult<TestFunctionAnalysis>(F); in run()
186 EXPECT_FALSE(PA1.preserved<TestFunctionAnalysis>()); in TEST_F()
189 EXPECT_FALSE(PA2.preserved<TestFunctionAnalysis>()); in TEST_F()
192 EXPECT_TRUE(PA3.preserved<TestFunctionAnalysis>()); in TEST_F()
195 EXPECT_FALSE(PA4.preserved<TestFunctionAnalysis>()); in TEST_F()
198 EXPECT_TRUE(PA4.preserved<TestFunctionAnalysis>()); in TEST_F()
201 EXPECT_FALSE(PA4.preserved<TestFunctionAnalysis>()); in TEST_F()
203 PA4.preserve<TestFunctionAnalysis>(); in TEST_F()
204 EXPECT_TRUE(PA4.preserved<TestFunctionAnalysis>()); in TEST_F()
207 EXPECT_FALSE(PA1.preserved<TestFunctionAnalysis>()); in TEST_F()
209 PA1.preserve<TestFunctionAnalysis>(); in TEST_F()
210 EXPECT_TRUE(PA1.preserved<TestFunctionAnalysis>()); in TEST_F()
213 EXPECT_TRUE(PA1.preserved<TestFunctionAnalysis>()); in TEST_F()
220 FAM.registerPass([&] { return TestFunctionAnalysis(FunctionAnalysisRuns); }); in TEST_F()