Lines Matching refs:AliasAnalysis
24 #include "llvm/Analysis/AliasAnalysis.h"
60 INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
88 AU.addRequiredTransitive<AliasAnalysis>();
92 AA = &getAnalysis<AliasAnalysis>();
119 AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst,
120 AliasAnalysis::Location &Loc,
121 AliasAnalysis *AA) {
125 return AliasAnalysis::Ref;
128 return AliasAnalysis::ModRef;
130 Loc = AliasAnalysis::Location();
131 return AliasAnalysis::ModRef;
137 return AliasAnalysis::Mod;
140 return AliasAnalysis::ModRef;
142 Loc = AliasAnalysis::Location();
143 return AliasAnalysis::ModRef;
148 return AliasAnalysis::ModRef;
153 Loc = AliasAnalysis::Location(CI->getArgOperand(0));
154 return AliasAnalysis::Mod;
162 Loc = AliasAnalysis::Location(II->getArgOperand(1),
168 return AliasAnalysis::Mod;
170 Loc = AliasAnalysis::Location(II->getArgOperand(2),
176 return AliasAnalysis::Mod;
183 return AliasAnalysis::ModRef;
185 return AliasAnalysis::Ref;
186 return AliasAnalysis::NoModRef;
207 AliasAnalysis::Location Loc;
208 AliasAnalysis::ModRefResult MR = GetLocation(Inst, Loc, AA);
211 if (AA->getModRefInfo(CS, Loc) != AliasAnalysis::NoModRef)
221 case AliasAnalysis::NoModRef:
224 if (isReadOnlyCall && !(MR & AliasAnalysis::Mod) &&
250 isLoadLoadClobberIfExtendedToFullWidth(const AliasAnalysis::Location &MemLoc,
339 getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad,
368 if (AA->isMustAlias(AliasAnalysis::Location(II->getArgOperand(1)),
383 AliasAnalysis::Location LoadLoc = AA->getLocation(LI);
386 AliasAnalysis::AliasResult R = AA->alias(LoadLoc, MemLoc);
389 if (R == AliasAnalysis::NoAlias) {
406 if (R == AliasAnalysis::MustAlias)
416 if (R == AliasAnalysis::PartialAlias)
426 if (R == AliasAnalysis::NoAlias)
446 if (AA->getModRefInfo(SI, MemLoc) == AliasAnalysis::NoModRef)
451 AliasAnalysis::Location StoreLoc = AA->getLocation(SI);
454 AliasAnalysis::AliasResult R = AA->alias(StoreLoc, MemLoc);
456 if (R == AliasAnalysis::NoAlias)
458 if (R == AliasAnalysis::MustAlias)
482 case AliasAnalysis::NoModRef:
485 case AliasAnalysis::Mod:
487 case AliasAnalysis::Ref:
537 AliasAnalysis::Location MemLoc;
538 AliasAnalysis::ModRefResult MR = GetLocation(QueryInst, MemLoc, AA);
541 bool isLoad = !(MR & AliasAnalysis::Mod);
728 getNonLocalPointerDependency(const AliasAnalysis::Location &Loc, bool isLoad,
756 GetNonLocalInfoForBlock(const AliasAnalysis::Location &Loc,
871 const AliasAnalysis::Location &Loc,