Home
last modified time | relevance | path

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

12345

/external/llvm/lib/Analysis/
DAliasAnalysis.cpp44 INITIALIZE_ANALYSIS_GROUP(AliasAnalysis, "Alias Analysis", NoAA)
45 char AliasAnalysis::ID = 0;
51 AliasAnalysis::AliasResult
52 AliasAnalysis::alias(const Location &LocA, const Location &LocB) { in alias()
57 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, in pointsToConstantMemory()
63 AliasAnalysis::Location
64 AliasAnalysis::getArgLocation(ImmutableCallSite CS, unsigned ArgIdx, in getArgLocation()
65 AliasAnalysis::ModRefResult &Mask) { in getArgLocation()
70 void AliasAnalysis::deleteValue(Value *V) { in deleteValue()
75 void AliasAnalysis::copyValue(Value *From, Value *To) { in copyValue()
[all …]
DScopedNoAliasAA.cpp76 class ScopedNoAliasAA : public ImmutablePass, public AliasAnalysis {
90 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
91 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
115 INITIALIZE_AG_PASS(ScopedNoAliasAA, AliasAnalysis, "scoped-noalias",
130 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
179 AliasAnalysis::AliasResult
182 return AliasAnalysis::alias(LocA, LocB); in alias()
198 return AliasAnalysis::alias(LocA, LocB); in alias()
203 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory()
206 AliasAnalysis::ModRefBehavior
[all …]
DAliasAnalysisEvaluator.cpp60 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
84 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_AG_DEPENDENCY() argument
142 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in runOnFunction()
189 uint64_t I1Size = AliasAnalysis::UnknownSize; in runOnFunction()
194 uint64_t I2Size = AliasAnalysis::UnknownSize; in runOnFunction()
199 case AliasAnalysis::NoAlias: in runOnFunction()
202 case AliasAnalysis::MayAlias: in runOnFunction()
205 case AliasAnalysis::PartialAlias: in runOnFunction()
209 case AliasAnalysis::MustAlias: in runOnFunction()
224 case AliasAnalysis::NoAlias: in runOnFunction()
[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 …]
DTypeBasedAliasAnalysis.cpp279 public AliasAnalysis {
293 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
294 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
316 INITIALIZE_AG_PASS(TypeBasedAliasAnalysis, AliasAnalysis, "tbaa",
331 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
455 AliasAnalysis::AliasResult
459 return AliasAnalysis::alias(LocA, LocB); in alias()
464 if (!AM) return AliasAnalysis::alias(LocA, LocB); in alias()
466 if (!BM) return AliasAnalysis::alias(LocA, LocB); in alias()
470 return AliasAnalysis::alias(LocA, LocB); in alias()
[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 …]
DMemoryDependenceAnalysis.cpp63 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
90 AU.addRequiredTransitive<AliasAnalysis>(); in getAnalysisUsage()
94 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
124 AliasAnalysis::ModRefResult GetLocation(const Instruction *Inst, in GetLocation()
125 AliasAnalysis::Location &Loc, in GetLocation()
126 AliasAnalysis *AA) { in GetLocation()
130 return AliasAnalysis::Ref; in GetLocation()
134 return AliasAnalysis::ModRef; in GetLocation()
136 Loc = AliasAnalysis::Location(); in GetLocation()
137 return AliasAnalysis::ModRef; in GetLocation()
[all …]
DAliasSetTracker.cpp43 AliasAnalysis &AA = AST.getAliasAnalysis(); in mergeSetIn()
48 if (AA.alias(AliasAnalysis::Location(L->getValue(), in mergeSetIn()
51 AliasAnalysis::Location(R->getValue(), in mergeSetIn()
54 != AliasAnalysis::MustAlias) in mergeSetIn()
107 AliasAnalysis &AA = AST.getAliasAnalysis(); in addPointer()
108 AliasAnalysis::AliasResult Result = in addPointer()
109 AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(), in addPointer()
111 AliasAnalysis::Location(Entry.getValue(), Size, AAInfo)); in addPointer()
112 if (Result != AliasAnalysis::MustAlias) in addPointer()
116 assert(Result != AliasAnalysis::NoAlias && "Cannot be part of must set!"); in addPointer()
[all …]
DBasicAliasAnalysis.cpp108 return AliasAnalysis::UnknownSize; in getObjectSize()
149 return ObjectSize != AliasAnalysis::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
157 return ObjectSize != AliasAnalysis::UnknownSize && ObjectSize == Size; in isObjectSize()
448 struct BasicAliasAnalysis : public ImmutablePass, public AliasAnalysis {
457 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
504 if (ID == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
505 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
578 INITIALIZE_AG_PASS_BEGIN(BasicAliasAnalysis, AliasAnalysis, "basicaa",
583 INITIALIZE_AG_PASS_END(BasicAliasAnalysis, AliasAnalysis, "basicaa", in INITIALIZE_PASS_DEPENDENCY()
606 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory()
[all …]
DScalarEvolutionAliasAnalysis.cpp33 public AliasAnalysis {
48 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
49 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
64 INITIALIZE_AG_PASS_BEGIN(ScalarEvolutionAliasAnalysis, AliasAnalysis, "scev-aa",
67 INITIALIZE_AG_PASS_END(ScalarEvolutionAliasAnalysis, AliasAnalysis, "scev-aa", in INITIALIZE_PASS_DEPENDENCY()
78 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
109 AliasAnalysis::AliasResult
173 return AliasAnalysis::alias(LocA, LocB); in alias()
DLibCallAliasAnalysis.cpp23 INITIALIZE_AG_PASS(LibCallAliasAnalysis, AliasAnalysis, "libcall-aa",
35 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
48 AliasAnalysis::ModRefResult
54 AliasAnalysis::ModRefResult MRInfo = FI->UniversalBehavior; in AnalyzeLibCallDetails()
123 AliasAnalysis::ModRefResult
140 return (ModRefResult)(MRInfo | AliasAnalysis::getModRefInfo(CS, Loc)); in getModRefInfo()
DLint.cpp107 AliasAnalysis *AA;
124 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
168 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
181 AA = &getAnalysis<AliasAnalysis>();
205 visitMemoryReference(I, Callee, AliasAnalysis::UnknownSize, in visitCallSite()
247 AliasAnalysis::AliasResult Result = AA->alias(*AI, *BI); in visitCallSite()
248 Assert(Result != AliasAnalysis::MustAlias && in visitCallSite()
249 Result != AliasAnalysis::PartialAlias, in visitCallSite()
285 visitMemoryReference(I, MCI->getDest(), AliasAnalysis::UnknownSize, in visitCallSite()
288 visitMemoryReference(I, MCI->getSource(), AliasAnalysis::UnknownSize, in visitCallSite()
[all …]
DNoAliasAnalysis.cpp29 struct NoAA : public ImmutablePass, public AliasAnalysis {
84 if (ID == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
85 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
93 INITIALIZE_AG_PASS(NoAA, AliasAnalysis, "no-aa",
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCAliasAnalysis.cpp42 INITIALIZE_AG_PASS(ObjCARCAliasAnalysis, AliasAnalysis, "objc-arc-aa",
57 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
60 AliasAnalysis::AliasResult
63 return AliasAnalysis::alias(LocA, LocB); in alias()
70 AliasAnalysis::alias(Location(SA, LocA.Size, LocA.AATags), in alias()
80 Result = AliasAnalysis::alias(Location(UA), Location(UB)); in alias()
96 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal); in pointsToConstantMemory()
101 if (AliasAnalysis::pointsToConstantMemory(Location(S, Loc.Size, Loc.AATags), in pointsToConstantMemory()
109 return AliasAnalysis::pointsToConstantMemory(Location(U), OrLocal); in pointsToConstantMemory()
116 AliasAnalysis::ModRefBehavior
[all …]
DProvenanceAnalysis.h32 class AliasAnalysis; variable
51 AliasAnalysis *AA;
67 void setAA(AliasAnalysis *aa) { AA = aa; } in setAA()
69 AliasAnalysis *getAA() const { return AA; } in getAA()
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp48 AliasAnalysis *AA;
62 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
81 void RemoveAccessedObjects(const AliasAnalysis::Location &LoadedLoc,
88 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
90 AU.addPreserved<AliasAnalysis>(); in getAnalysisUsage()
101 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
197 static AliasAnalysis::Location
198 getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { in getLocForWrite()
204 AliasAnalysis::Location Loc = AA.getLocationForDest(MI); in getLocForWrite()
209 if (!II) return AliasAnalysis::Location(); in getLocForWrite()
[all …]
DFlattenCFGPass.cpp33 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
37 AliasAnalysis *AA;
44 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_AG_DEPENDENCY() argument
53 static bool iterativelyFlattenCFG(Function &F, AliasAnalysis *AA) { in iterativelyFlattenCFG()
72 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
DMergedLoadStoreMotion.cpp104 AliasAnalysis *AA;
121 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
122 AU.addPreserved<AliasAnalysis>(); in getAnalysisUsage()
149 AliasAnalysis::Location Loc);
173 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
244 AliasAnalysis::Location Loc = AA->getLocation(LI); in isLoadHoistBarrierInRange()
245 return AA->canInstructionRangeModRef(Start, End, Loc, AliasAnalysis::Mod); in isLoadHoistBarrierInRange()
269 AliasAnalysis::Location Loc0 = AA->getLocation(Load0); in canHoistFromBlock()
270 AliasAnalysis::Location Loc1 = AA->getLocation(Load1); in canHoistFromBlock()
405 AliasAnalysis::Location in isStoreSinkBarrierInRange()
[all …]
DSink.cpp38 AliasAnalysis *AA;
51 AU.addRequired<AliasAnalysis>(); in getAnalysisUsage()
69 INITIALIZE_AG_DEPENDENCY(AliasAnalysis) in INITIALIZE_PASS_DEPENDENCY()
102 AA = &getAnalysis<AliasAnalysis>(); in runOnFunction()
157 static bool isSafeToMove(Instruction *Inst, AliasAnalysis *AA, in isSafeToMove()
166 AliasAnalysis::Location Loc = AA->getLocation(L); in isSafeToMove()
168 if (AA->getModRefInfo(S, Loc) & AliasAnalysis::Mod) in isSafeToMove()
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp30 void CheckModRef(Instruction *I, AliasAnalysis::ModRefResult Result) { in CheckModRef()
34 CheckModRefTestPass(Instruction *I, AliasAnalysis::ModRefResult Result) in CheckModRef()
46 AU.addRequiredTransitive<AliasAnalysis>(); in CheckModRef()
49 AliasAnalysis &AA = getAnalysis<AliasAnalysis>(); in CheckModRef()
50 EXPECT_EQ(AA.getModRefInfo(I, AliasAnalysis::Location()), ExpectResult); in CheckModRef()
54 AliasAnalysis::ModRefResult ExpectResult; in CheckModRef()
88 CheckModRef(Store1, AliasAnalysis::ModRefResult::Mod); in TEST_F()
89 CheckModRef(Load1, AliasAnalysis::ModRefResult::Ref); in TEST_F()
90 CheckModRef(Add1, AliasAnalysis::ModRefResult::NoModRef); in TEST_F()
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp59 unsigned Effect = MayReadAnyGlobal ? AliasAnalysis::Ref : 0; in getInfoForGlobal()
75 class GlobalsModRef : public ModulePass, public AliasAnalysis {
110 AliasAnalysis::getAnalysisUsage(AU); in getAnalysisUsage()
123 return AliasAnalysis::getModRefInfo(CS1, CS2); in getModRefInfo()
139 return ModRefBehavior(AliasAnalysis::getModRefBehavior(F) & Min); in getModRefBehavior()
156 return ModRefBehavior(AliasAnalysis::getModRefBehavior(CS) & Min); in getModRefBehavior()
168 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
169 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()
194 INITIALIZE_AG_PASS_BEGIN(GlobalsModRef, AliasAnalysis,
198 INITIALIZE_AG_PASS_END(GlobalsModRef, AliasAnalysis, in INITIALIZE_PASS_DEPENDENCY()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h25 class AliasAnalysis; variable
43 void FoldSingleEntryPHINodes(BasicBlock *BB, AliasAnalysis *AA = nullptr,
57 AliasAnalysis *AA = nullptr,
83 AliasAnalysis *AA;
95 CriticalEdgeSplittingOptions(AliasAnalysis *AA, DominatorTree *DT = nullptr,
223 AliasAnalysis *AA = nullptr,
245 AliasAnalysis *AA = nullptr,
DLoopUtils.h21 class AliasAnalysis; variable
54 AliasAnalysis *AA = nullptr, ScalarEvolution *SE = nullptr,
91 bool sinkRegion(DomTreeNode *, AliasAnalysis *, LoopInfo *, DominatorTree *,
102 bool hoistRegion(DomTreeNode *, AliasAnalysis *, LoopInfo *, DominatorTree *,
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h57 class AliasAnalysis {
63 AliasAnalysis *AA; // Previous Alias Analysis to chain to.
79 AliasAnalysis() : DL(nullptr), TLI(nullptr), AA(nullptr) {} in AliasAnalysis() function
80 virtual ~AliasAnalysis(); // We want to be subclassed
521 const AliasAnalysis::Location &MemLoc,
602 struct DenseMapInfo<AliasAnalysis::Location> {
603 static inline AliasAnalysis::Location getEmptyKey() {
604 return AliasAnalysis::Location(DenseMapInfo<const Value *>::getEmptyKey(),
607 static inline AliasAnalysis::Location getTombstoneKey() {
608 return AliasAnalysis::Location(
[all …]
DLibCallAliasAnalysis.h26 struct LibCallAliasAnalysis : public FunctionPass, public AliasAnalysis {
47 return AliasAnalysis::getModRefInfo(CS1, CS2); in getModRefInfo()
59 if (PI == &AliasAnalysis::ID) in getAdjustedAnalysisPointer()
60 return (AliasAnalysis*)this; in getAdjustedAnalysisPointer()

12345