Home | History | Annotate | Download | only in Analysis

Lines Matching defs:AA

46     AliasAnalysis &AA = getAnalysis<AAResultsWrapperPass>().getAAResults();
58 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2,
67 INITIALIZE_PASS_BEGIN(AATestPass, "aa-test-pas", "Alias Analysis Test Pass",
70 INITIALIZE_PASS_END(AATestPass, "aa-test-pass", "Alias Analysis Test Pass",
74 /// A test customizable AA result. It merely accepts a callback to run whenever
75 /// it receives an alias query. Useful for testing that a particular AA result
97 /// A wrapper pass for the legacy pass manager to use with the above custom AA
133 INITIALIZE_PASS_BEGIN(TestCustomAAWrapperPass, "test-custom-aa",
134 "Test Custom AA Wrapper Pass", false, true)
136 INITIALIZE_PASS_END(TestCustomAAWrapperPass, "test-custom-aa",
137 "Test Custom AA Wrapper Pass", false, true)
154 // Reset the Function AA results first to clear out any references.
157 // Build the various AA results and register them.
190 auto &AA = getAAResults(*F);
193 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod);
194 EXPECT_EQ(AA.getModRefInfo(Store1), MRI_Mod);
195 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref);
196 EXPECT_EQ(AA.getModRefInfo(Load1), MRI_Ref);
197 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef);
198 EXPECT_EQ(AA.getModRefInfo(Add1), MRI_NoModRef);
199 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef);
200 EXPECT_EQ(AA.getModRefInfo(VAArg1), MRI_ModRef);
201 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef);
202 EXPECT_EQ(AA.getModRefInfo(CmpXChg1), MRI_ModRef);
203 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRef);
204 EXPECT_EQ(AA.getModRefInfo(AtomicRMW), MRI_ModRef);
230 // Register our custom AA's wrapper pass manually.
234 // Now add the external AA wrapper with a lambda which queries for the
235 // wrapper around our custom AA and adds it to the results.
248 // Finally, ensure that our custom AA was indeed queried.