HomeSort by relevance Sort by last modified time
    Searched refs:MemoryLocation (Results 1 - 25 of 44) sorted by null

1 2

  /external/llvm/include/llvm/Analysis/
MemoryLocation.h 1 //===- MemoryLocation.h - Memory location descriptions ----------*- C++ -*-===//
40 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) {
85 static MemoryLocation getForSource(const MemTransferInst *MTI);
89 static MemoryLocation getForDest(const MemIntrinsic *MI)
    [all...]
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
45 #include "llvm/Analysis/MemoryLocation.h"
63 /// These results are always computed between two MemoryLocation objects as
185 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
190 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
195 return alias(V1, MemoryLocation::UnknownSize, V2,
196 MemoryLocation::UnknownSize)
    [all...]
ObjCARCAliasAnalysis.h 55 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
56 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
62 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
TypeBasedAliasAnalysis.h 39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
40 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
43 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
ScalarEvolutionAliasAnalysis.h 35 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
ScopedNoAliasAA.h 40 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
41 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
BasicAliasAnalysis.h 64 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
66 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
71 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
111 typedef std::pair<MemoryLocation, MemoryLocation> LocPair;
CFLAliasAnalysis.h 52 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB);
54 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
GlobalsModRef.h 86 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
89 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
MemoryDependenceAnalysis.h 294 NonLocalPointerInfo() : Size(MemoryLocation::UnknownSize) {}
409 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc,
415 MemDepResult getSimplePointerDependencyFrom(const MemoryLocation &MemLoc,
448 const MemoryLocation &Loc, bool isLoad,
454 const MemoryLocation &Loc, bool isLoad,
  /external/llvm/lib/Analysis/
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::get(const VAArgInst *VI)
    [all...]
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 &Loc)
    [all...]
AliasAnalysis.cpp 82 AliasResult AAResults::alias(const MemoryLocation &LocA,
83 const MemoryLocation &LocB) {
92 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc,
125 const MemoryLocation DefLoc = MemoryLocation::get(I);
133 const MemoryLocation &Loc) {
195 const MemoryLocation &Loc) {
202 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc))
210 const MemoryLocation &Loc) {
218 if (!alias(MemoryLocation::get(S), Loc)
    [all...]
ScalarEvolutionAliasAnalysis.cpp 26 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA,
27 const MemoryLocation &LocB) {
81 if (alias(MemoryLocation(AO ? AO : LocA.Ptr,
82 AO ? +MemoryLocation::UnknownSize : LocA.Size,
84 MemoryLocation(BO ? BO : LocB.Ptr,
85 BO ? +MemoryLocation::UnknownSize : LocB.Size,
BasicAliasAnalysis.cpp 116 return MemoryLocation::UnknownSize;
157 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size;
164 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size;
473 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc,
533 // FIXME: This code is duplicated with MemoryLocation and should be hoisted to
653 AliasResult BasicAAResult::alias(const MemoryLocation &LocA,
654 const MemoryLocation &LocB) {
683 const MemoryLocation &Loc) {
720 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object))
    [all...]
MemoryDependenceAnalysis.cpp 130 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc,
134 Loc = MemoryLocation::get(LI);
138 Loc = MemoryLocation::get(LI);
141 Loc = MemoryLocation();
147 Loc = MemoryLocation::get(SI);
151 Loc = MemoryLocation::get(SI);
154 Loc = MemoryLocation();
159 Loc = MemoryLocation::get(V);
165 Loc = MemoryLocation(CI->getArgOperand(0));
177 Loc = MemoryLocation(
    [all...]
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(I.getPointer(), I.getSize()
    [all...]
ScopedNoAliasAA.cpp 76 AliasResult ScopedNoAliasAAResult::alias(const MemoryLocation &LocA,
77 const MemoryLocation &LocB) {
97 const MemoryLocation &Loc) {
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::UnknownSize, 0
    [all...]
AliasAnalysisEvaluator.cpp 192 uint64_t I1Size = MemoryLocation::UnknownSize;
197 uint64_t I2Size = MemoryLocation::UnknownSize;
229 switch (AA.alias(MemoryLocation::get(cast<LoadInst>(*I1)),
230 MemoryLocation::get(cast<StoreInst>(*I2)))) {
259 switch (AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)),
260 MemoryLocation::get(cast<StoreInst>(*I2)))) {
292 uint64_t Size = MemoryLocation::UnknownSize;
  /external/llvm/unittests/Analysis/
AliasAnalysisTest.cpp 59 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2,
60 MemoryLocation::UnknownSize);
91 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
196 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod);
198 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref);
200 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef);
202 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef);
204 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef);
206 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRef)
    [all...]
  /external/llvm/lib/Transforms/Scalar/
DeadStoreElimination.cpp 84 void RemoveAccessedObjects(const MemoryLocation &LoadedLoc,
203 static MemoryLocation getLocForWrite(Instruction *Inst, AliasAnalysis &AA) {
205 return MemoryLocation::get(SI);
209 MemoryLocation Loc = MemoryLocation::getForDest(MI);
215 return MemoryLocation();
219 return MemoryLocation(); // Unhandled intrinsic.
223 return MemoryLocation(II->getArgOperand(0));
226 return MemoryLocation(II->getArgOperand(1), Len);
233 static MemoryLocation getLocForRead(Instruction *Inst
    [all...]
MergedLoadStoreMotion.cpp 151 const Instruction &End, MemoryLocation Loc);
246 MemoryLocation Loc = MemoryLocation::get(LI);
271 MemoryLocation Loc0 = MemoryLocation::get(Load0);
272 MemoryLocation Loc1 = MemoryLocation::get(Load1);
401 MemoryLocation Loc) {
423 MemoryLocation Loc0 = MemoryLocation::get(Store0)
    [all...]
MemCpyOptimizer.cpp 514 MemoryLocation StoreLoc = MemoryLocation::get(SI);
803 MD->getPointerDependencyFrom(MemoryLocation::getForSource(MDep), false,
812 if (!AA.isNoAlias(MemoryLocation::getForDest(M),
813 MemoryLocation::getForSource(MDep)))
    [all...]
  /external/compiler-rt/lib/ubsan/
ubsan_diag.h 51 typedef uptr MemoryLocation;
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)

Completed in 244 milliseconds

1 2