Home
last modified time | relevance | path

Searched refs:ModRefInfo (Results 1 – 25 of 42) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DAliasAnalysis.h103 enum class ModRefInfo : uint8_t { enum
140 LLVM_NODISCARD inline bool isNoModRef(const ModRefInfo MRI) { in isNoModRef()
141 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isNoModRef()
142 static_cast<int>(ModRefInfo::Must); in isNoModRef()
144 LLVM_NODISCARD inline bool isModOrRefSet(const ModRefInfo MRI) { in isModOrRefSet()
145 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef); in isModOrRefSet()
147 LLVM_NODISCARD inline bool isModAndRefSet(const ModRefInfo MRI) { in isModAndRefSet()
148 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isModAndRefSet()
149 static_cast<int>(ModRefInfo::MustModRef); in isModAndRefSet()
151 LLVM_NODISCARD inline bool isModSet(const ModRefInfo MRI) { in isModSet()
[all …]
DScopedNoAliasAA.h44 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
45 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
DTypeBasedAliasAnalysis.h48 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
49 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
DGlobalsModRef.h91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
116 ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
DBasicAliasAnalysis.h87 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
89 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
95 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
DObjCARCAliasAnalysis.h63 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DAliasAnalysis.cpp121 ModRefInfo AAResults::getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo()
122 ModRefInfo Result = ModRefInfo::ModRef; in getArgModRefInfo()
129 return ModRefInfo::NoModRef; in getArgModRefInfo()
135 ModRefInfo AAResults::getModRefInfo(Instruction *I, ImmutableCallSite Call) { in getModRefInfo()
142 return ModRefInfo::ModRef; in getModRefInfo()
149 ModRefInfo MR = getModRefInfo(Call, DefLoc); in getModRefInfo()
153 return ModRefInfo::NoModRef; in getModRefInfo()
156 ModRefInfo AAResults::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
158 ModRefInfo Result = ModRefInfo::ModRef; in getModRefInfo()
165 return ModRefInfo::NoModRef; in getModRefInfo()
[all …]
DGlobalsModRef.cpp63 typedef SmallDenseMap<const GlobalValue *, ModRefInfo, 16> GlobalInfoMapType;
94 static_assert((MayReadAnyGlobal & static_cast<int>(ModRefInfo::MustModRef)) ==
98 static_cast<int>(ModRefInfo::MustModRef)) >>
136 ModRefInfo globalClearMayReadAnyGlobal(int I) const { in globalClearMayReadAnyGlobal()
137 return ModRefInfo((I & static_cast<int>(ModRefInfo::ModRef)) | in globalClearMayReadAnyGlobal()
138 static_cast<int>(ModRefInfo::NoModRef)); in globalClearMayReadAnyGlobal()
142 ModRefInfo getModRefInfo() const { in getModRefInfo()
147 void addModRefInfo(ModRefInfo NewMRI) { in addModRefInfo()
160 ModRefInfo getModRefInfoForGlobal(const GlobalValue &GV) const { in getModRefInfoForGlobal()
161 ModRefInfo GlobalMRI = in getModRefInfoForGlobal()
[all …]
DAliasAnalysisEvaluator.cpp240 case ModRefInfo::NoModRef: in runInternal()
245 case ModRefInfo::Mod: in runInternal()
249 case ModRefInfo::Ref: in runInternal()
253 case ModRefInfo::ModRef: in runInternal()
258 case ModRefInfo::Must: in runInternal()
262 case ModRefInfo::MustMod: in runInternal()
267 case ModRefInfo::MustRef: in runInternal()
272 case ModRefInfo::MustModRef: in runInternal()
287 case ModRefInfo::NoModRef: in runInternal()
291 case ModRefInfo::Mod: in runInternal()
[all …]
DScopedNoAliasAA.cpp98 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
105 return ModRefInfo::NoModRef; in getModRefInfo()
110 return ModRefInfo::NoModRef; in getModRefInfo()
115 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS1, in getModRefInfo()
123 return ModRefInfo::NoModRef; in getModRefInfo()
128 return ModRefInfo::NoModRef; in getModRefInfo()
DBasicAliasAnalysis.cpp725 ModRefInfo BasicAAResult::getArgModRefInfo(ImmutableCallSite CS, in getArgModRefInfo()
729 return ModRefInfo::Mod; in getArgModRefInfo()
732 return ModRefInfo::Ref; in getArgModRefInfo()
735 return ModRefInfo::NoModRef; in getArgModRefInfo()
797 ModRefInfo BasicAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
813 return ModRefInfo::NoModRef; in getModRefInfo()
823 ModRefInfo Result = ModRefInfo::NoModRef; in getModRefInfo()
865 Result = ModRefInfo::ModRef; in getModRefInfo()
877 return ModRefInfo::NoModRef; in getModRefInfo()
893 return ModRefInfo::NoModRef; in getModRefInfo()
[all …]
DMemoryDependenceAnalysis.cpp118 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
123 return ModRefInfo::Ref; in GetLocation()
127 return ModRefInfo::ModRef; in GetLocation()
130 return ModRefInfo::ModRef; in GetLocation()
136 return ModRefInfo::Mod; in GetLocation()
140 return ModRefInfo::ModRef; in GetLocation()
143 return ModRefInfo::ModRef; in GetLocation()
148 return ModRefInfo::ModRef; in GetLocation()
154 return ModRefInfo::Mod; in GetLocation()
165 return ModRefInfo::Mod; in GetLocation()
[all …]
DObjCARCAliasAnalysis.cpp109 ModRefInfo ObjCARCAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
126 return ModRefInfo::NoModRef; in getModRefInfo()
DTypeBasedAliasAnalysis.cpp423 ModRefInfo TypeBasedAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
432 return ModRefInfo::NoModRef; in getModRefInfo()
437 ModRefInfo TypeBasedAAResult::getModRefInfo(ImmutableCallSite CS1, in getModRefInfo()
447 return ModRefInfo::NoModRef; in getModRefInfo()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h94 enum ModRefInfo { enum
252 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
344 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
347 ModRefInfo getModRefInfo(ImmutableCallSite CS, const Value *P, in getModRefInfo()
354 ModRefInfo getModRefInfo(const CallInst *C, const MemoryLocation &Loc) { in getModRefInfo()
359 ModRefInfo getModRefInfo(const CallInst *C, const Value *P, uint64_t Size) { in getModRefInfo()
365 ModRefInfo getModRefInfo(const InvokeInst *I, const MemoryLocation &Loc) { in getModRefInfo()
370 ModRefInfo getModRefInfo(const InvokeInst *I, const Value *P, uint64_t Size) { in getModRefInfo()
376 ModRefInfo getModRefInfo(const LoadInst *L, const MemoryLocation &Loc);
379 ModRefInfo getModRefInfo(const LoadInst *L, const Value *P, uint64_t Size) { in getModRefInfo()
[all …]
DScopedNoAliasAA.h40 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
41 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
DTypeBasedAliasAnalysis.h42 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
43 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
DBasicAliasAnalysis.h68 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
70 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
76 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
DGlobalsModRef.h91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
116 ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
DObjCARCAliasAnalysis.h60 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp95 ModRefInfo AAResults::getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx) { in getArgModRefInfo()
96 ModRefInfo Result = MRI_ModRef; in getArgModRefInfo()
99 Result = ModRefInfo(Result & AA->getArgModRefInfo(CS, ArgIdx)); in getArgModRefInfo()
109 ModRefInfo AAResults::getModRefInfo(Instruction *I, ImmutableCallSite Call) { in getModRefInfo()
126 ModRefInfo AAResults::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
128 ModRefInfo Result = MRI_ModRef; in getModRefInfo()
131 Result = ModRefInfo(Result & AA->getModRefInfo(CS, Loc)); in getModRefInfo()
145 Result = ModRefInfo(Result & MRI_Ref); in getModRefInfo()
147 Result = ModRefInfo(Result & MRI_Mod); in getModRefInfo()
151 ModRefInfo AllArgsMask = MRI_NoModRef; in getModRefInfo()
[all …]
DGlobalsModRef.cpp63 typedef SmallDenseMap<const GlobalValue *, ModRefInfo, 16> GlobalInfoMapType;
128 ModRefInfo getModRefInfo() const { in getModRefInfo()
129 return ModRefInfo(Info.getInt() & MRI_ModRef); in getModRefInfo()
133 void addModRefInfo(ModRefInfo NewMRI) { in addModRefInfo()
146 ModRefInfo getModRefInfoForGlobal(const GlobalValue &GV) const { in getModRefInfoForGlobal()
147 ModRefInfo GlobalMRI = mayReadAnyGlobal() ? MRI_Ref : MRI_NoModRef; in getModRefInfoForGlobal()
151 GlobalMRI = ModRefInfo(GlobalMRI | I->second); in getModRefInfoForGlobal()
169 void addModRefInfoForGlobal(const GlobalValue &GV, ModRefInfo NewMRI) { in addModRefInfoForGlobal()
176 GlobalMRI = ModRefInfo(GlobalMRI | NewMRI); in addModRefInfoForGlobal()
560 FI.addModRefInfo(ModRefInfo(Behaviour & MRI_ModRef)); in AnalyzeCallGraph()
[all …]
DScopedNoAliasAA.cpp95 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
112 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS1, in getModRefInfo()
DObjCARCAliasAnalysis.cpp109 ModRefInfo ObjCARCAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp194 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), ModRefInfo::Mod); in TEST_F()
195 EXPECT_EQ(AA.getModRefInfo(Store1, None), ModRefInfo::Mod); in TEST_F()
196 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), ModRefInfo::Ref); in TEST_F()
197 EXPECT_EQ(AA.getModRefInfo(Load1, None), ModRefInfo::Ref); in TEST_F()
198 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), ModRefInfo::NoModRef); in TEST_F()
199 EXPECT_EQ(AA.getModRefInfo(Add1, None), ModRefInfo::NoModRef); in TEST_F()
200 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
201 EXPECT_EQ(AA.getModRefInfo(VAArg1, None), ModRefInfo::ModRef); in TEST_F()
202 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
203 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, None), ModRefInfo::ModRef); in TEST_F()
[all …]

12