Home
last modified time | relevance | path

Searched refs:AliasAnalysis (Results 1 – 25 of 75) sorted by relevance

123

/external/llvm/lib/Analysis/
DAliasAnalysis.cpp39 INITIALIZE_ANALYSIS_GROUP(AliasAnalysis, "Alias Analysis", NoAA)
40 char AliasAnalysis::ID = 0;
46 AliasAnalysis::AliasResult
47 AliasAnalysis::alias(const Location &LocA, const Location &LocB) { in alias()
52 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, in pointsToConstantMemory()
58 void AliasAnalysis::deleteValue(Value *V) { in deleteValue()
63 void AliasAnalysis::copyValue(Value *From, Value *To) { in copyValue()
68 void AliasAnalysis::addEscapingUse(Use &U) { in addEscapingUse()
74 AliasAnalysis::ModRefResult
75 AliasAnalysis::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
[all …]
DTypeBasedAliasAnalysis.cpp118 public AliasAnalysis {
134 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
135 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
156 INITIALIZE_AG_PASS(TypeBasedAliasAnalysis, AliasAnalysis, "tbaa",
166 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
212 AliasAnalysis::AliasResult
216 return AliasAnalysis::alias(LocA, LocB); in alias()
221 if (!AM) return AliasAnalysis::alias(LocA, LocB); in alias()
223 if (!BM) return AliasAnalysis::alias(LocA, LocB); in alias()
227 return AliasAnalysis::alias(LocA, LocB); in alias()
[all …]
DAliasDebugger.cpp31 class AliasDebugger : public ModulePass, public AliasAnalysis {
80 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
89 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
90 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
102 return AliasAnalysis::alias(LocA, LocB); in alias()
108 return AliasAnalysis::getModRefInfo(CS, Loc); in getModRefInfo()
113 return AliasAnalysis::getModRefInfo(CS1,CS2); in getModRefInfo()
118 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory()
123 AliasAnalysis::deleteValue(V); in deleteValue()
127 AliasAnalysis::copyValue(From, To); in copyValue()
[all …]
DAliasAnalysisCounter.cpp31 class AliasAnalysisCounter : public ModulePass, public AliasAnalysis {
85 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
86 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
95 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
96 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
102 return getAnalysis<AliasAnalysis>().pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory()
113 return AliasAnalysis::getModRefInfo(CS1,CS2); in getModRefInfo()
119 INITIALIZE_AG_PASS(AliasAnalysisCounter, AliasAnalysis, "count-aa",
126 AliasAnalysis::AliasResult
128 AliasResult R = getAnalysis<AliasAnalysis>().alias(LocA, LocB); in alias()
[all …]
DAliasAnalysisEvaluator.cpp59 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
83 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_AG_DEPENDENCY() argument
132 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in runOnFunction()
173 uint64_t I1Size = AliasAnalysis::UnknownSize; in runOnFunction()
178 uint64_t I2Size = AliasAnalysis::UnknownSize; in runOnFunction()
183 case AliasAnalysis::NoAlias: in runOnFunction()
186 case AliasAnalysis::MayAlias: in runOnFunction()
189 case AliasAnalysis::PartialAlias: in runOnFunction()
193 case AliasAnalysis::MustAlias: in runOnFunction()
209 uint64_t Size = AliasAnalysis::UnknownSize; in runOnFunction()
[all …]
DMemoryDependenceAnalysis.cpp60 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_AG_DEPENDENCY() argument
88 AU.addRequiredTransitive<AliasAnalysis>(); in getAnalysisUsage()
92 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
119 AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst, in GetLocation()
120 AliasAnalysis::Location &Loc, in GetLocation()
121 AliasAnalysis *AA) { in GetLocation()
124 Loc = AliasAnalysis::Location(); in GetLocation()
125 return AliasAnalysis::ModRef; in GetLocation()
128 return AliasAnalysis::Ref; in GetLocation()
133 Loc = AliasAnalysis::Location(); in GetLocation()
[all …]
DAliasSetTracker.cpp44 AliasAnalysis &AA = AST.getAliasAnalysis(); in mergeSetIn()
49 if (AA.alias(AliasAnalysis::Location(L->getValue(), in mergeSetIn()
52 AliasAnalysis::Location(R->getValue(), in mergeSetIn()
55 != AliasAnalysis::MustAlias) in mergeSetIn()
103 AliasAnalysis &AA = AST.getAliasAnalysis(); in addPointer()
104 AliasAnalysis::AliasResult Result = in addPointer()
105 AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(), in addPointer()
107 AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo)); in addPointer()
108 if (Result != AliasAnalysis::MustAlias) in addPointer()
112 assert(Result != AliasAnalysis::NoAlias && "Cannot be part of must set!"); in addPointer()
[all …]
DScalarEvolutionAliasAnalysis.cpp32 public AliasAnalysis {
47 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
48 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
63 INITIALIZE_AG_PASS_BEGIN(ScalarEvolutionAliasAnalysis, AliasAnalysis, "scev-aa",
66 INITIALIZE_AG_PASS_END(ScalarEvolutionAliasAnalysis, AliasAnalysis, "scev-aa", in INITIALIZE_PASS_DEPENDENCY()
77 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
108 AliasAnalysis::AliasResult
172 return AliasAnalysis::alias(LocA, LocB); in alias()
DBasicAliasAnalysis.cpp106 return AliasAnalysis::UnknownSize; in getObjectSize()
112 return AliasAnalysis::UnknownSize; in getObjectSize()
118 return AliasAnalysis::UnknownSize; in getObjectSize()
123 return AliasAnalysis::UnknownSize; in getObjectSize()
125 return AliasAnalysis::UnknownSize; in getObjectSize()
130 return AliasAnalysis::UnknownSize; in getObjectSize()
138 return ObjectSize != AliasAnalysis::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
146 return ObjectSize != AliasAnalysis::UnknownSize && ObjectSize == Size; in isObjectSize()
452 struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
469 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
[all …]
DLibCallAliasAnalysis.cpp23 INITIALIZE_AG_PASS(LibCallAliasAnalysis, AliasAnalysis, "libcall-aa",
35 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
44 AliasAnalysis::ModRefResult
50 AliasAnalysis::ModRefResult MRInfo = FI->UniversalBehavior; in AnalyzeLibCallDetails()
119 AliasAnalysis::ModRefResult
136 return (ModRefResult)(MRInfo | AliasAnalysis::getModRefInfo(CS, Loc)); in getModRefInfo()
DLint.cpp103 AliasAnalysis *AA;
119 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
153 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
174 AA = &getAnalysis<AliasAnalysis>();
196 visitMemoryReference(I, Callee, AliasAnalysis::UnknownSize, in visitCallSite()
235 AliasAnalysis::AliasResult Result = AA->alias(*AI, *BI); in visitCallSite()
236 Assert1(Result != AliasAnalysis::MustAlias && in visitCallSite()
237 Result != AliasAnalysis::PartialAlias, in visitCallSite()
272 visitMemoryReference(I, MCI->getDest(), AliasAnalysis::UnknownSize, in visitCallSite()
275 visitMemoryReference(I, MCI->getSource(), AliasAnalysis::UnknownSize, in visitCallSite()
[all …]
DNoAliasAnalysis.cpp27 struct NoAA : public ImmutablePass, public AliasAnalysis {
75 if (ID == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
76 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
84 INITIALIZE_AG_PASS(NoAA, AliasAnalysis, "no-aa",
DMemDepPrinter.cpp44 AU.addRequiredTransitive<AliasAnalysis>(); in getAnalysisUsage()
69 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in runOnFunction()
106 AliasAnalysis::Location Loc = AA.getLocation(LI); in runOnFunction()
111 AliasAnalysis::Location Loc = AA.getLocation(SI); in runOnFunction()
114 AliasAnalysis::Location Loc = AA.getLocation(VI); in runOnFunction()
DLoopDependenceAnalysis.cpp54 INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
92 static AliasAnalysis::AliasResult UnderlyingObjectsAlias(AliasAnalysis *AA, in UnderlyingObjectsAlias()
225 case AliasAnalysis::MayAlias: in analysePair()
226 case AliasAnalysis::PartialAlias: in analysePair()
231 case AliasAnalysis::NoAlias: in analysePair()
236 case AliasAnalysis::MustAlias: in analysePair()
312 AA = &getAnalysis<AliasAnalysis>(); in runOnLoop()
324 AU.addRequiredTransitive<AliasAnalysis>(); in getAnalysisUsage()
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp43 AliasAnalysis *AA;
52 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
70 void RemoveAccessedObjects(const AliasAnalysis::Location &LoadedLoc,
76 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
78 AU.addPreserved<AliasAnalysis>(); in getAnalysisUsage()
89 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
162 static AliasAnalysis::Location
163 getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { in getLocForWrite()
169 AliasAnalysis::Location Loc = AA.getLocationForDest(MI); in getLocForWrite()
173 if (Loc.Size == AliasAnalysis::UnknownSize && AA.getTargetData() == 0) in getLocForWrite()
[all …]
DSink.cpp34 AliasAnalysis *AA;
47 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
64 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
98 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
154 static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA, in isSafeToMove()
159 AliasAnalysis::Location Loc = AA->getLocation(L); in isSafeToMove()
162 if (AA->getModRefInfo(*I, Loc) & AliasAnalysis::Mod) in isSafeToMove()
DLoopIdiomRecognize.cpp105 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
106 AU.addPreserved<AliasAnalysis>(); in getAnalysisUsage()
125 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
368 static bool mayLoopAccessLocation(Value *Ptr,AliasAnalysis::ModRefResult Access, in mayLoopAccessLocation()
370 unsigned StoreSize, AliasAnalysis &AA, in mayLoopAccessLocation()
375 uint64_t AccessSize = AliasAnalysis::UnknownSize; in mayLoopAccessLocation()
386 AliasAnalysis::Location StoreLoc(Ptr, AccessSize); in mayLoopAccessLocation()
488 if (mayLoopAccessLocation(BasePtr, AliasAnalysis::ModRef, in processLoopStridedStore()
490 StoreSize, getAnalysis<AliasAnalysis>(), TheStore)){ in processLoopStridedStore()
577 if (mayLoopAccessLocation(StoreBasePtr, AliasAnalysis::ModRef, in processLoopStoreOfLoopLoad()
[all …]
DMemCpyOptimizer.cpp323 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
325 AU.addPreserved<AliasAnalysis>(); in getAnalysisUsage()
356 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
500 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in processStore()
501 AliasAnalysis::Location StoreLoc = AA.getLocation(SI); in processStore()
504 if (AA.getModRefInfo(&*I, StoreLoc) != AliasAnalysis::NoModRef) { in processStore()
664 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in performCallSlotOptzn()
665 if (AA.getModRefInfo(C, cpyDest, srcSize) != AliasAnalysis::NoModRef) in performCallSlotOptzn()
723 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in processMemCpyMemCpyDependence()
830 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in processMemMove()
[all …]
/external/llvm/lib/Transforms/IPO/
DFunctionAttrs.cpp66 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
71 AliasAnalysis *AA;
104 AliasAnalysis::ModRefBehavior MRB = AA->getModRefBehavior(F); in AddReadAttrs()
105 if (MRB == AliasAnalysis::DoesNotAccessMemory) in AddReadAttrs()
112 if (!AliasAnalysis::onlyReadsMemory(MRB)) in AddReadAttrs()
131 AliasAnalysis::ModRefBehavior MRB = AA->getModRefBehavior(CS); in AddReadAttrs()
134 if (AliasAnalysis::onlyAccessesArgPointees(MRB)) { in AddReadAttrs()
136 if (AliasAnalysis::doesAccessArgPointees(MRB)) in AddReadAttrs()
143 AliasAnalysis::Location Loc(Arg, in AddReadAttrs()
144 AliasAnalysis::UnknownSize, in AddReadAttrs()
[all …]
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h54 class AliasAnalysis {
59 AliasAnalysis *AA; // Previous Alias Analysis to chain to.
75 AliasAnalysis() : TD(0), AA(0) {} in AliasAnalysis() function
76 virtual ~AliasAnalysis(); // We want to be subclassed
494 struct DenseMapInfo<AliasAnalysis::Location> {
495 static inline AliasAnalysis::Location getEmptyKey() {
497 AliasAnalysis::Location(DenseMapInfo<const Value *>::getEmptyKey(),
500 static inline AliasAnalysis::Location getTombstoneKey() {
502 AliasAnalysis::Location(DenseMapInfo<const Value *>::getTombstoneKey(),
505 static unsigned getHashValue(const AliasAnalysis::Location &Val) {
[all …]
DLibCallAliasAnalysis.h25 struct LibCallAliasAnalysis : public FunctionPass, public AliasAnalysis {
46 return AliasAnalysis::getModRefInfo(CS1, CS2); in getModRefInfo()
61 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
62 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
DMemoryDependenceAnalysis.h31 class AliasAnalysis; variable
254 NonLocalPointerInfo() : Size(AliasAnalysis::UnknownSize), TBAATag(0) {} in NonLocalPointerInfo()
290 AliasAnalysis *AA;
334 void getNonLocalPointerDependency(const AliasAnalysis::Location &Loc,
362 MemDepResult getPointerDependencyFrom(const AliasAnalysis::Location &Loc,
386 const AliasAnalysis::Location &Loc,
391 MemDepResult GetNonLocalInfoForBlock(const AliasAnalysis::Location &Loc,
DLibCallSemantics.h51 const AliasAnalysis::Location &Loc);
74 AliasAnalysis::ModRefResult UniversalBehavior;
82 AliasAnalysis::ModRefResult MRInfo;
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp57 unsigned Effect = MayReadAnyGlobal ? AliasAnalysis::Ref : 0; in getInfoForGlobal()
73 class GlobalsModRef : public ModulePass, public AliasAnalysis {
104 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
117 return AliasAnalysis::getModRefInfo(CS1, CS2); in getModRefInfo()
133 return ModRefBehavior(AliasAnalysis::getModRefBehavior(F) & Min); in getModRefBehavior()
150 return ModRefBehavior(AliasAnalysis::getModRefBehavior(CS) & Min); in getModRefBehavior()
162 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
163 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
188 INITIALIZE_AG_PASS_BEGIN(GlobalsModRef, AliasAnalysis,
192 INITIALIZE_AG_PASS_END(GlobalsModRef, AliasAnalysis, in INITIALIZE_AG_DEPENDENCY()
[all …]
/external/llvm/lib/CodeGen/
DLiveRangeEdit.h27 class AliasAnalysis; variable
77 AliasAnalysis *aa);
141 AliasAnalysis*);
146 const TargetInstrInfo&, AliasAnalysis*);

123