Lines Matching refs:AliasAnalysis
26 #include "llvm/Analysis/AliasAnalysis.h"
43 AliasAnalysis *AA;
52 AA = &getAnalysis<AliasAnalysis>();
70 void RemoveAccessedObjects(const AliasAnalysis::Location &LoadedLoc,
76 AU.addRequired<AliasAnalysis>();
78 AU.addPreserved<AliasAnalysis>();
89 INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
164 static AliasAnalysis::Location
165 getLocForWrite(Instruction *Inst, AliasAnalysis &AA) {
171 AliasAnalysis::Location Loc = AA.getLocationForDest(MI);
175 if (Loc.Size == AliasAnalysis::UnknownSize && AA.getTargetData() == 0)
176 return AliasAnalysis::Location();
181 if (II == 0) return AliasAnalysis::Location();
184 default: return AliasAnalysis::Location(); // Unhandled intrinsic.
189 if (AA.getTargetData() == 0) return AliasAnalysis::Location();
193 return AliasAnalysis::Location(II->getArgOperand(0));
196 return AliasAnalysis::Location(II->getArgOperand(1), Len);
203 static AliasAnalysis::Location
204 getLocForRead(Instruction *Inst, AliasAnalysis &AA) {
211 return AliasAnalysis::Location();
256 static uint64_t getPointerSize(Value *V, AliasAnalysis &AA) {
259 return AliasAnalysis::UnknownSize;
265 return AliasAnalysis::UnknownSize;
287 static bool isCompleteOverwrite(const AliasAnalysis::Location &Later,
288 const AliasAnalysis::Location &Earlier,
289 AliasAnalysis &AA) {
298 if (Later.Size == AliasAnalysis::UnknownSize ||
299 Earlier.Size == AliasAnalysis::UnknownSize) {
316 if (Later.Size == AliasAnalysis::UnknownSize ||
317 Earlier.Size == AliasAnalysis::UnknownSize ||
390 const AliasAnalysis::Location &InstStoreLoc,
391 Instruction *DepWrite, AliasAnalysis &AA) {
394 AliasAnalysis::Location InstReadLoc = getLocForRead(Inst, AA);
408 AliasAnalysis::Location DepReadLoc = getLocForRead(DepWrite, AA);
474 AliasAnalysis::Location Loc = getLocForWrite(Inst, *AA);
489 AliasAnalysis::Location DepLoc = getLocForWrite(DepWrite, *AA);
526 if (AA->getModRefInfo(DepWrite, Loc) & AliasAnalysis::Ref)
652 AliasAnalysis::ModRefResult A =
655 if (A == AliasAnalysis::ModRef || A == AliasAnalysis::Ref)
671 AliasAnalysis::Location LoadedLoc;
707 void DSE::RemoveAccessedObjects(const AliasAnalysis::Location &LoadedLoc,
726 AliasAnalysis::Location StackLoc(*I, getPointerSize(*I, *AA));