Home
last modified time | relevance | path

Searched refs:MemoryLocation (Results 1 – 25 of 117) sorted by relevance

12345

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryLocation.cpp21 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
26 return MemoryLocation(LI->getPointerOperand(), in get()
30 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
35 return MemoryLocation(SI->getPointerOperand(), in get()
40 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
44 return MemoryLocation(VI->getPointerOperand(), UnknownSize, AATags); in get()
47 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
52 return MemoryLocation( in get()
57 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
62 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
DObjCARCAliasAnalysis.cpp40 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
41 const MemoryLocation &LocB) { in alias()
50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
51 MemoryLocation(SB, LocB.Size, LocB.AATags)); in alias()
60 Result = AAResultBase::alias(MemoryLocation(UA), MemoryLocation(UB)); in alias()
72 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
81 MemoryLocation(S, Loc.Size, Loc.AATags), OrLocal)) in pointsToConstantMemory()
88 return AAResultBase::pointsToConstantMemory(MemoryLocation(U), OrLocal); in pointsToConstantMemory()
110 const MemoryLocation &Loc) { in getModRefInfo()
DAliasAnalysis.cpp102 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
103 const MemoryLocation &LocB) { in alias()
112 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
148 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
157 const MemoryLocation &Loc) { in getModRefInfo()
190 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); in getModRefInfo()
266 auto CS2ArgLoc = MemoryLocation::getForArgument(CS2, CS2ArgIdx, TLI); in getModRefInfo()
315 auto CS1ArgLoc = MemoryLocation::getForArgument(CS1, CS1ArgIdx, TLI); in getModRefInfo()
398 const MemoryLocation &Loc) { in getModRefInfo()
406 AliasResult AR = alias(MemoryLocation::get(L), Loc); in getModRefInfo()
[all …]
DBasicAliasAnalysis.cpp163 return MemoryLocation::UnknownSize; in getObjectSize()
206 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
213 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
583 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
768 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
769 const MemoryLocation &LocB) { in alias()
798 const MemoryLocation &Loc) { in getModRefInfo()
845 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object)); in getModRefInfo()
892 if (getBestAAResults().alias(MemoryLocation(Inst), Loc) == NoAlias) in getModRefInfo()
903 if ((SrcAA = getBestAAResults().alias(MemoryLocation::getForSource(Inst), in getModRefInfo()
[all …]
DScalarEvolutionAliasAnalysis.cpp25 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
26 const MemoryLocation &LocB) { in alias()
80 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
81 AO ? +MemoryLocation::UnknownSize : LocA.Size, in alias()
83 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
84 BO ? +MemoryLocation::UnknownSize : LocB.Size, in alias()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DMemoryLocation.h49 class MemoryLocation {
74 static MemoryLocation get(const LoadInst *LI);
75 static MemoryLocation get(const StoreInst *SI);
76 static MemoryLocation get(const VAArgInst *VI);
77 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
78 static MemoryLocation get(const AtomicRMWInst *RMWI);
79 static MemoryLocation get(const Instruction *Inst) { in get()
80 return *MemoryLocation::getOrNone(Inst); in get()
82 static Optional<MemoryLocation> getOrNone(const Instruction *Inst) { in getOrNone()
100 static MemoryLocation getForSource(const MemTransferInst *MTI);
[all …]
DAliasAnalysis.h328 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
333 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
338 return alias(V1, MemoryLocation::UnknownSize, V2, in alias()
339 MemoryLocation::UnknownSize); in alias()
344 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
351 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
356 return isNoAlias(MemoryLocation(V1), MemoryLocation(V2)); in isNoAlias()
361 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
372 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
377 return pointsToConstantMemory(MemoryLocation(P), OrLocal);
[all …]
DTypeBasedAliasAnalysis.h29 class MemoryLocation; variable
44 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
45 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
48 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DCFLAndersAliasAnalysis.h30 class MemoryLocation; variable
63 AliasResult query(const MemoryLocation &, const MemoryLocation &);
64 AliasResult alias(const MemoryLocation &, const MemoryLocation &);
DScopedNoAliasAA.h28 class MemoryLocation; variable
43 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
44 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DObjCARCAliasAnalysis.h56 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
57 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
63 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
/external/llvm/include/llvm/Analysis/
DMemoryLocation.h40 class MemoryLocation {
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) { in get()
85 static MemoryLocation getForSource(const MemTransferInst *MTI);
89 static MemoryLocation getForDest(const MemIntrinsic *MI);
92 static MemoryLocation getForArgument(ImmutableCallSite CS, unsigned ArgIdx,
[all …]
DAliasAnalysis.h190 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
195 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
200 return alias(V1, MemoryLocation::UnknownSize, V2, in alias()
201 MemoryLocation::UnknownSize); in alias()
206 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
213 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
218 return isNoAlias(MemoryLocation(V1), MemoryLocation(V2)); in isNoAlias()
223 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
234 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
239 return pointsToConstantMemory(MemoryLocation(P), OrLocal);
[all …]
DObjCARCAliasAnalysis.h53 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
54 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
60 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DTypeBasedAliasAnalysis.h38 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
39 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
42 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
/external/llvm/lib/Analysis/
DMemoryLocation.cpp21 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
26 return MemoryLocation(LI->getPointerOperand(), in get()
30 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
35 return MemoryLocation(SI->getPointerOperand(), in get()
40 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
44 return MemoryLocation(VI->getPointerOperand(), UnknownSize, AATags); in get()
47 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
52 return MemoryLocation( in get()
57 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
62 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
DAliasAnalysis.cpp76 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
77 const MemoryLocation &LocB) { in alias()
86 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
119 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
127 const MemoryLocation &Loc) { in getModRefInfo()
158 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); in getModRefInfo()
227 auto CS2ArgLoc = MemoryLocation::getForArgument(CS2, CS2ArgIdx, TLI); in getModRefInfo()
257 auto CS1ArgLoc = MemoryLocation::getForArgument(CS1, CS1ArgIdx, TLI); in getModRefInfo()
313 const MemoryLocation &Loc) { in getModRefInfo()
320 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc)) in getModRefInfo()
[all …]
DObjCARCAliasAnalysis.cpp40 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
41 const MemoryLocation &LocB) { in alias()
50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
51 MemoryLocation(SB, LocB.Size, LocB.AATags)); in alias()
60 Result = AAResultBase::alias(MemoryLocation(UA), MemoryLocation(UB)); in alias()
72 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
81 MemoryLocation(S, Loc.Size, Loc.AATags), OrLocal)) in pointsToConstantMemory()
88 return AAResultBase::pointsToConstantMemory(MemoryLocation(U), OrLocal); in pointsToConstantMemory()
110 const MemoryLocation &Loc) { in getModRefInfo()
DBasicAliasAnalysis.cpp117 return MemoryLocation::UnknownSize; in getObjectSize()
158 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
165 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
500 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
676 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
677 const MemoryLocation &LocB) { in alias()
706 const MemoryLocation &Loc) { in getModRefInfo()
743 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object)); in getModRefInfo()
764 if (getBestAAResults().alias(MemoryLocation(Inst), Loc) == NoAlias) in getModRefInfo()
841 if (V1Size == MemoryLocation::UnknownSize || in aliasSameBasePointerGEPs()
[all …]
DScalarEvolutionAliasAnalysis.cpp25 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
26 const MemoryLocation &LocB) { in alias()
80 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
81 AO ? +MemoryLocation::UnknownSize : LocA.Size, in alias()
83 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
84 BO ? +MemoryLocation::UnknownSize : LocB.Size, in alias()
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp149 static MemoryLocation getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { in getLocForWrite()
151 return MemoryLocation::get(SI); in getLocForWrite()
155 MemoryLocation Loc = MemoryLocation::getForDest(MI); in getLocForWrite()
161 return MemoryLocation(); in getLocForWrite()
165 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
169 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite()
172 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
179 static MemoryLocation getLocForRead(Instruction *Inst, in getLocForRead()
186 return MemoryLocation::getForSource(MTI); in getLocForRead()
187 return MemoryLocation(); in getLocForRead()
[all …]
DMergedLoadStoreMotion.cpp135 const Instruction &End, MemoryLocation Loc);
206 MemoryLocation Loc = MemoryLocation::get(LI); in isLoadHoistBarrierInRange()
234 MemoryLocation Loc0 = MemoryLocation::get(Load0); in canHoistFromBlock()
235 MemoryLocation Loc1 = MemoryLocation::get(Load1); in canHoistFromBlock()
365 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
387 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
388 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp190 static MemoryLocation getLocForWrite(Instruction *Inst) { in getLocForWrite()
193 return MemoryLocation::get(SI); in getLocForWrite()
197 MemoryLocation Loc = MemoryLocation::getForDest(MI); in getLocForWrite()
204 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
206 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite()
209 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
216 return MemoryLocation(CS.getArgument(0)); in getLocForWrite()
217 return MemoryLocation(); in getLocForWrite()
222 static MemoryLocation getLocForRead(Instruction *Inst, in getLocForRead()
229 return MemoryLocation::getForSource(MTI); in getLocForRead()
[all …]
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp58 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2, in runOnFunction()
59 MemoryLocation::UnknownSize); in runOnFunction()
89 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
193 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod); in TEST_F()
195 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref); in TEST_F()
197 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef); in TEST_F()
199 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef); in TEST_F()
201 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef); in TEST_F()
203 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRef); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp58 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2, in runOnFunction()
59 MemoryLocation::UnknownSize); in runOnFunction()
89 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
194 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), ModRefInfo::Mod); in TEST_F()
196 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), ModRefInfo::Ref); in TEST_F()
198 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), ModRefInfo::NoModRef); in TEST_F()
200 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
202 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
204 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()

12345