Lines Matching refs:AA
47 AliasAnalysis &AA = getAnalysis<AAResultsWrapperPass>().getAAResults();
59 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2,
68 INITIALIZE_PASS_BEGIN(AATestPass, "aa-test-pas", "Alias Analysis Test Pass",
71 INITIALIZE_PASS_END(AATestPass, "aa-test-pass", "Alias Analysis Test Pass",
75 /// A test customizable AA result. It merely accepts a callback to run whenever
76 /// it receives an alias query. Useful for testing that a particular AA result
99 /// A wrapper pass for the legacy pass manager to use with the above custom AA
136 INITIALIZE_PASS_BEGIN(TestCustomAAWrapperPass, "test-custom-aa",
137 "Test Custom AA Wrapper Pass", false, true)
139 INITIALIZE_PASS_END(TestCustomAAWrapperPass, "test-custom-aa",
140 "Test Custom AA Wrapper Pass", false, true)
157 // Reset the Function AA results first to clear out any references.
160 // Build the various AA results and register them.
193 auto &AA = getAAResults(*F);
196 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod);
197 EXPECT_EQ(AA.getModRefInfo(Store1), MRI_Mod);
198 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref);
199 EXPECT_EQ(AA.getModRefInfo(Load1), MRI_Ref);
200 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef);
201 EXPECT_EQ(AA.getModRefInfo(Add1), MRI_NoModRef);
202 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef);
203 EXPECT_EQ(AA.getModRefInfo(VAArg1), MRI_ModRef);
204 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef);
205 EXPECT_EQ(AA.getModRefInfo(CmpXChg1), MRI_ModRef);
206 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRef);
207 EXPECT_EQ(AA.getModRefInfo(AtomicRMW), MRI_ModRef);
234 // Register our custom AA's wrapper pass manually.
238 // Now add the external AA wrapper with a lambda which queries for the
239 // wrapper around our custom AA and adds it to the results.
252 // Finally, ensure that our custom AA was indeed queried.