/external/llvm/include/llvm/Analysis/ |
H A D | MemoryLocation.h | 1 //===- MemoryLocation.h - Memory location descriptions ----------*- C++ -*-===// 40 class MemoryLocation { class in namespace:llvm 65 static MemoryLocation get(const LoadInst *LI); 66 static MemoryLocation get(const StoreInst *SI); 67 static MemoryLocation get(const VAArgInst *VI); 68 static MemoryLocation get(const AtomicCmpXchgInst *CXI); 69 static MemoryLocation get(const AtomicRMWInst *RMWI); 70 static MemoryLocation get(const Instruction *Inst) { 85 static MemoryLocation getForSource(const MemTransferInst *MTI); 89 static MemoryLocation getForDes 95 explicit MemoryLocation(const Value *Ptr = nullptr, function [all...] |
H A D | AliasAnalysis.h | 19 // This API identifies memory regions with the MemoryLocation class. The pointer 22 // MemoryLocation::UnknownSize if the size is not known. The TBAA tag 44 #include "llvm/Analysis/MemoryLocation.h" 62 /// These results are always computed between two MemoryLocation objects as 190 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 195 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); 200 return alias(V1, MemoryLocation::UnknownSize, V2, 201 MemoryLocation [all...] |
H A D | ObjCARCAliasAnalysis.h | 53 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 54 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal); 60 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
H A D | TypeBasedAliasAnalysis.h | 38 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 39 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal); 42 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
H A D | CFLAndersAliasAnalysis.h | 41 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
|
H A D | ScopedNoAliasAA.h | 39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 40 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
H A D | CFLSteensAliasAnalysis.h | 63 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB); 65 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
|
H A D | ScalarEvolutionAliasAnalysis.h | 34 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
|
H A D | GlobalsModRef.h | 88 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
H A D | BasicAliasAnalysis.h | 66 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 68 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 73 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal); 127 typedef std::pair<MemoryLocation, MemoryLocation> LocPair;
|
H A D | MemoryDependenceAnalysis.h | 302 NonLocalPointerInfo() : Size(MemoryLocation::UnknownSize) {} 415 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad, 420 MemDepResult getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, 455 const MemoryLocation &Loc, bool isLoad, 461 const MemoryLocation &Loc, bool isLoad,
|
/external/llvm/lib/Analysis/ |
H A D | MemoryLocation.cpp | 1 //===- MemoryLocation.cpp - Memory location descriptions -------------------==// 10 #include "llvm/Analysis/MemoryLocation.h" 21 MemoryLocation MemoryLocation::get(const LoadInst *LI) { 26 return MemoryLocation(LI->getPointerOperand(), 30 MemoryLocation MemoryLocation::get(const StoreInst *SI) { 35 return MemoryLocation(SI->getPointerOperand(), 40 MemoryLocation MemoryLocation [all...] |
H A D | ObjCARCAliasAnalysis.cpp | 40 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, 41 const MemoryLocation &LocB) { 50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), 51 MemoryLocation(SB, LocB.Size, LocB.AATags)); 60 Result = AAResultBase::alias(MemoryLocation(UA), MemoryLocation(UB)); 72 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, 81 MemoryLocation(S, Loc.Size, Loc.AATags), OrLocal)) 88 return AAResultBase::pointsToConstantMemory(MemoryLocation(U), OrLocal); 110 const MemoryLocation [all...] |
H A D | AliasAnalysis.cpp | 76 AliasResult AAResults::alias(const MemoryLocation &LocA, 77 const MemoryLocation &LocB) { 86 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, 119 const MemoryLocation DefLoc = MemoryLocation::get(I); 127 const MemoryLocation &Loc) { 158 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); 227 auto CS2ArgLoc = MemoryLocation::getForArgument(CS2, CS2ArgIdx, TLI); 257 auto CS1ArgLoc = MemoryLocation [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 25 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, 26 const MemoryLocation &LocB) { 80 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, 81 AO ? +MemoryLocation::UnknownSize : LocA.Size, 83 MemoryLocation(BO ? BO : LocB.Ptr, 84 BO ? +MemoryLocation::UnknownSize : LocB.Size,
|
H A D | BasicAliasAnalysis.cpp | 117 return MemoryLocation::UnknownSize; 158 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; 165 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; 500 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, 676 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, 677 const MemoryLocation &LocB) { 706 const MemoryLocation &Loc) { 743 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object)); 764 if (getBestAAResults().alias(MemoryLocation(Ins [all...] |
H A D | AliasSetTracker.cpp | 49 if (AA.alias(MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), 50 MemoryLocation(R->getValue(), R->getSize(), R->getAAInfo())) != 106 AA.alias(MemoryLocation(P->getValue(), P->getSize(), P->getAAInfo()), 107 MemoryLocation(Entry.getValue(), Size, AAInfo)); 155 return AA.alias(MemoryLocation(SomePtr->getValue(), SomePtr->getSize(), 157 MemoryLocation(Ptr, Size, AAInfo)); 163 if (AA.alias(MemoryLocation(Ptr, Size, AAInfo), 164 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo()))) 171 MemoryLocation(Ptr, Size, AAInfo)) != MRI_NoModRef) 191 if (AA.getModRefInfo(Inst, MemoryLocation( [all...] |
H A D | MemoryDependenceAnalysis.cpp | 89 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, 93 Loc = MemoryLocation::get(LI); 97 Loc = MemoryLocation::get(LI); 100 Loc = MemoryLocation(); 106 Loc = MemoryLocation::get(SI); 110 Loc = MemoryLocation::get(SI); 113 Loc = MemoryLocation(); 118 Loc = MemoryLocation::get(V); 124 Loc = MemoryLocation(CI->getArgOperand(0)); 136 Loc = MemoryLocation( [all...] |
H A D | ScopedNoAliasAA.cpp | 75 AliasResult ScopedNoAliasAAResult::alias(const MemoryLocation &LocA, 76 const MemoryLocation &LocB) { 96 const MemoryLocation &Loc) {
|
H A D | Lint.cpp | 207 visitMemoryReference(I, Callee, MemoryLocation::UnknownSize, 0, nullptr, 286 visitMemoryReference(I, MCI->getDest(), MemoryLocation::UnknownSize, 288 visitMemoryReference(I, MCI->getSource(), MemoryLocation::UnknownSize, 308 visitMemoryReference(I, MMI->getDest(), MemoryLocation::UnknownSize, 310 visitMemoryReference(I, MMI->getSource(), MemoryLocation::UnknownSize, 317 visitMemoryReference(I, MSI->getDest(), MemoryLocation::UnknownSize, 327 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, 331 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, 333 visitMemoryReference(I, CS.getArgument(1), MemoryLocation::UnknownSize, 0, 337 visitMemoryReference(I, CS.getArgument(0), MemoryLocation [all...] |
H A D | AliasAnalysisEvaluator.cpp | 145 uint64_t I1Size = MemoryLocation::UnknownSize; 150 uint64_t I2Size = MemoryLocation::UnknownSize; 180 switch (AA.alias(MemoryLocation::get(cast<LoadInst>(Load)), 181 MemoryLocation::get(cast<StoreInst>(Store)))) { 210 switch (AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)), 211 MemoryLocation::get(cast<StoreInst>(*I2)))) { 242 uint64_t Size = MemoryLocation::UnknownSize;
|
/external/llvm/unittests/Analysis/ |
H A D | AliasAnalysisTest.cpp | 58 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2, 59 MemoryLocation::UnknownSize); 89 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { 193 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod); 195 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref); 197 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef); 199 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef); 201 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef); 203 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRe [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | DeadStoreElimination.cpp | 149 static MemoryLocation getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { 151 return MemoryLocation::get(SI); 155 MemoryLocation Loc = MemoryLocation::getForDest(MI); 161 return MemoryLocation(); 165 return MemoryLocation(); // Unhandled intrinsic. 169 return MemoryLocation(II->getArgOperand(0)); 172 return MemoryLocation(II->getArgOperand(1), Len); 179 static MemoryLocation getLocForRead(Instruction *Inst, 186 return MemoryLocation [all...] |
H A D | MergedLoadStoreMotion.cpp | 135 const Instruction &End, MemoryLocation Loc); 206 MemoryLocation Loc = MemoryLocation::get(LI); 234 MemoryLocation Loc0 = MemoryLocation::get(Load0); 235 MemoryLocation Loc1 = MemoryLocation::get(Load1); 365 MemoryLocation Loc) { 387 MemoryLocation Loc0 = MemoryLocation [all...] |
/external/compiler-rt/lib/ubsan/ |
H A D | ubsan_diag.h | 51 typedef uptr MemoryLocation; typedef in namespace:__ubsan 54 /// SourceLocation, a MemoryLocation, or a SymbolizedStack. 63 MemoryLocation MemoryLoc; 70 Location(MemoryLocation Loc) : 86 MemoryLocation getMemoryLocation() const { 109 Range(MemoryLocation Start, MemoryLocation End, const char *Text)
|