/external/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 39 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 …]
|
D | TypeBasedAliasAnalysis.cpp | 118 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 …]
|
D | AliasDebugger.cpp | 31 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 …]
|
D | AliasAnalysisCounter.cpp | 31 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 …]
|
D | AliasAnalysisEvaluator.cpp | 59 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 …]
|
D | MemoryDependenceAnalysis.cpp | 60 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 …]
|
D | AliasSetTracker.cpp | 44 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 …]
|
D | ScalarEvolutionAliasAnalysis.cpp | 32 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()
|
D | BasicAliasAnalysis.cpp | 106 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 …]
|
D | LibCallAliasAnalysis.cpp | 23 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()
|
D | Lint.cpp | 103 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 …]
|
D | NoAliasAnalysis.cpp | 27 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",
|
D | MemDepPrinter.cpp | 44 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()
|
D | LoopDependenceAnalysis.cpp | 54 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/ |
D | DeadStoreElimination.cpp | 43 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 …]
|
D | Sink.cpp | 34 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()
|
D | LoopIdiomRecognize.cpp | 105 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 …]
|
D | MemCpyOptimizer.cpp | 323 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/ |
D | FunctionAttrs.cpp | 66 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/ |
D | AliasAnalysis.h | 54 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 …]
|
D | LibCallAliasAnalysis.h | 25 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()
|
D | MemoryDependenceAnalysis.h | 31 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,
|
D | LibCallSemantics.h | 51 const AliasAnalysis::Location &Loc); 74 AliasAnalysis::ModRefResult UniversalBehavior; 82 AliasAnalysis::ModRefResult MRInfo;
|
/external/llvm/lib/Analysis/IPA/ |
D | GlobalsModRef.cpp | 57 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/ |
D | LiveRangeEdit.h | 27 class AliasAnalysis; variable 77 AliasAnalysis *aa); 141 AliasAnalysis*); 146 const TargetInstrInfo&, AliasAnalysis*);
|