/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 103 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 …]
|
D | ScopedNoAliasAA.h | 44 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 45 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
|
D | TypeBasedAliasAnalysis.h | 48 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 49 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
|
D | GlobalsModRef.h | 91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 116 ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
|
D | BasicAliasAnalysis.h | 87 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 89 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2); 95 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
|
D | ObjCARCAliasAnalysis.h | 63 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 121 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 …]
|
D | GlobalsModRef.cpp | 63 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 …]
|
D | AliasAnalysisEvaluator.cpp | 240 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 …]
|
D | ScopedNoAliasAA.cpp | 98 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()
|
D | BasicAliasAnalysis.cpp | 725 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 …]
|
D | MemoryDependenceAnalysis.cpp | 118 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 …]
|
D | ObjCARCAliasAnalysis.cpp | 109 ModRefInfo ObjCARCAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo() 126 return ModRefInfo::NoModRef; in getModRefInfo()
|
D | TypeBasedAliasAnalysis.cpp | 423 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/ |
D | AliasAnalysis.h | 94 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 …]
|
D | ScopedNoAliasAA.h | 40 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 41 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
|
D | TypeBasedAliasAnalysis.h | 42 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 43 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2);
|
D | BasicAliasAnalysis.h | 68 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 70 ModRefInfo getModRefInfo(ImmutableCallSite CS1, ImmutableCallSite CS2); 76 ModRefInfo getArgModRefInfo(ImmutableCallSite CS, unsigned ArgIdx);
|
D | GlobalsModRef.h | 91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc); 116 ModRefInfo getModRefInfoForArgument(ImmutableCallSite CS,
|
D | ObjCARCAliasAnalysis.h | 60 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
|
/external/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 95 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 …]
|
D | GlobalsModRef.cpp | 63 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 …]
|
D | ScopedNoAliasAA.cpp | 95 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo() 112 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS1, in getModRefInfo()
|
D | ObjCARCAliasAnalysis.cpp | 109 ModRefInfo ObjCARCAAResult::getModRefInfo(ImmutableCallSite CS, in getModRefInfo()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | AliasAnalysisTest.cpp | 194 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 …]
|