/external/llvm-project/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 100 enum class ModRefInfo : uint8_t { enum 137 LLVM_NODISCARD inline bool isNoModRef(const ModRefInfo MRI) { in isNoModRef() 138 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isNoModRef() 139 static_cast<int>(ModRefInfo::Must); in isNoModRef() 141 LLVM_NODISCARD inline bool isModOrRefSet(const ModRefInfo MRI) { in isModOrRefSet() 142 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef); in isModOrRefSet() 144 LLVM_NODISCARD inline bool isModAndRefSet(const ModRefInfo MRI) { in isModAndRefSet() 145 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isModAndRefSet() 146 static_cast<int>(ModRefInfo::MustModRef); in isModAndRefSet() 148 LLVM_NODISCARD inline bool isModSet(const ModRefInfo MRI) { in isModSet() [all …]
|
D | ScopedNoAliasAA.h | 43 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 45 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
D | TypeBasedAliasAnalysis.h | 49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 51 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 102 enum class ModRefInfo : uint8_t { enum 139 LLVM_NODISCARD inline bool isNoModRef(const ModRefInfo MRI) { in isNoModRef() 140 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isNoModRef() 141 static_cast<int>(ModRefInfo::Must); in isNoModRef() 143 LLVM_NODISCARD inline bool isModOrRefSet(const ModRefInfo MRI) { in isModOrRefSet() 144 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef); in isModOrRefSet() 146 LLVM_NODISCARD inline bool isModAndRefSet(const ModRefInfo MRI) { in isModAndRefSet() 147 return (static_cast<int>(MRI) & static_cast<int>(ModRefInfo::MustModRef)) == in isModAndRefSet() 148 static_cast<int>(ModRefInfo::MustModRef); in isModAndRefSet() 150 LLVM_NODISCARD inline bool isModSet(const ModRefInfo MRI) { in isModSet() [all …]
|
D | ScopedNoAliasAA.h | 44 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 46 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
D | TypeBasedAliasAnalysis.h | 49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 51 ModRefInfo getModRefInfo(const CallBase *Call1, const CallBase *Call2,
|
/external/llvm-project/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 155 ModRefInfo AAResults::getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) { in getArgModRefInfo() 156 ModRefInfo Result = ModRefInfo::ModRef; in getArgModRefInfo() 163 return ModRefInfo::NoModRef; in getArgModRefInfo() 169 ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2) { in getModRefInfo() 174 ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2, in getModRefInfo() 182 return ModRefInfo::ModRef; in getModRefInfo() 189 ModRefInfo MR = getModRefInfo(Call2, DefLoc, AAQI); in getModRefInfo() 193 return ModRefInfo::NoModRef; in getModRefInfo() 196 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, in getModRefInfo() 202 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, in getModRefInfo() [all …]
|
D | GlobalsModRef.cpp | 65 typedef SmallDenseMap<const GlobalValue *, ModRefInfo, 16> GlobalInfoMapType; 96 static_assert((MayReadAnyGlobal & static_cast<int>(ModRefInfo::MustModRef)) == 100 static_cast<int>(ModRefInfo::MustModRef)) >> 138 ModRefInfo globalClearMayReadAnyGlobal(int I) const { in globalClearMayReadAnyGlobal() 139 return ModRefInfo((I & static_cast<int>(ModRefInfo::ModRef)) | in globalClearMayReadAnyGlobal() 140 static_cast<int>(ModRefInfo::NoModRef)); in globalClearMayReadAnyGlobal() 144 ModRefInfo getModRefInfo() const { in getModRefInfo() 149 void addModRefInfo(ModRefInfo NewMRI) { in addModRefInfo() 162 ModRefInfo getModRefInfoForGlobal(const GlobalValue &GV) const { in getModRefInfoForGlobal() 163 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() 292 case ModRefInfo::Mod: in runInternal() [all …]
|
D | ScopedNoAliasAA.cpp | 74 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(const CallBase *Call, in getModRefInfo() 82 return ModRefInfo::NoModRef; in getModRefInfo() 86 return ModRefInfo::NoModRef; in getModRefInfo() 91 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(const CallBase *Call1, in getModRefInfo() 99 return ModRefInfo::NoModRef; in getModRefInfo() 103 return ModRefInfo::NoModRef; in getModRefInfo()
|
D | MemoryDependenceAnalysis.cpp | 116 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation() 121 return ModRefInfo::Ref; in GetLocation() 125 return ModRefInfo::ModRef; in GetLocation() 128 return ModRefInfo::ModRef; in GetLocation() 134 return ModRefInfo::Mod; in GetLocation() 138 return ModRefInfo::ModRef; in GetLocation() 141 return ModRefInfo::ModRef; in GetLocation() 146 return ModRefInfo::ModRef; in GetLocation() 152 return ModRefInfo::Mod; in GetLocation() 163 return ModRefInfo::Mod; in GetLocation() [all …]
|
D | BasicAliasAnalysis.cpp | 752 ModRefInfo BasicAAResult::getArgModRefInfo(const CallBase *Call, in getArgModRefInfo() 756 return ModRefInfo::Mod; in getArgModRefInfo() 759 return ModRefInfo::Ref; in getArgModRefInfo() 762 return ModRefInfo::NoModRef; in getArgModRefInfo() 824 ModRefInfo BasicAAResult::getModRefInfo(const CallBase *Call, in getModRefInfo() 841 return ModRefInfo::NoModRef; in getModRefInfo() 847 return ModRefInfo::Mod; in getModRefInfo() 857 ModRefInfo Result = ModRefInfo::NoModRef; in getModRefInfo() 901 Result = ModRefInfo::ModRef; in getModRefInfo() 913 return ModRefInfo::NoModRef; in getModRefInfo() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 136 ModRefInfo AAResults::getArgModRefInfo(const CallBase *Call, unsigned ArgIdx) { in getArgModRefInfo() 137 ModRefInfo Result = ModRefInfo::ModRef; in getArgModRefInfo() 144 return ModRefInfo::NoModRef; in getArgModRefInfo() 150 ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2) { in getModRefInfo() 155 ModRefInfo AAResults::getModRefInfo(Instruction *I, const CallBase *Call2, in getModRefInfo() 163 return ModRefInfo::ModRef; in getModRefInfo() 170 ModRefInfo MR = getModRefInfo(Call2, DefLoc, AAQI); in getModRefInfo() 174 return ModRefInfo::NoModRef; in getModRefInfo() 177 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, in getModRefInfo() 183 ModRefInfo AAResults::getModRefInfo(const CallBase *Call, 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() 292 case ModRefInfo::Mod: in runInternal() [all …]
|
D | ScopedNoAliasAA.cpp | 99 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(const CallBase *Call, in getModRefInfo() 107 return ModRefInfo::NoModRef; in getModRefInfo() 111 return ModRefInfo::NoModRef; in getModRefInfo() 116 ModRefInfo ScopedNoAliasAAResult::getModRefInfo(const CallBase *Call1, in getModRefInfo() 124 return ModRefInfo::NoModRef; in getModRefInfo() 128 return ModRefInfo::NoModRef; in getModRefInfo()
|
D | BasicAliasAnalysis.cpp | 797 ModRefInfo BasicAAResult::getArgModRefInfo(const CallBase *Call, in getArgModRefInfo() 801 return ModRefInfo::Mod; in getArgModRefInfo() 804 return ModRefInfo::Ref; in getArgModRefInfo() 807 return ModRefInfo::NoModRef; in getArgModRefInfo() 870 ModRefInfo BasicAAResult::getModRefInfo(const CallBase *Call, in getModRefInfo() 887 return ModRefInfo::NoModRef; in getModRefInfo() 893 return ModRefInfo::Mod; in getModRefInfo() 903 ModRefInfo Result = ModRefInfo::NoModRef; in getModRefInfo() 946 Result = ModRefInfo::ModRef; in getModRefInfo() 958 return ModRefInfo::NoModRef; in getModRefInfo() [all …]
|
D | MemoryDependenceAnalysis.cpp | 117 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation() 122 return ModRefInfo::Ref; in GetLocation() 126 return ModRefInfo::ModRef; in GetLocation() 129 return ModRefInfo::ModRef; in GetLocation() 135 return ModRefInfo::Mod; in GetLocation() 139 return ModRefInfo::ModRef; in GetLocation() 142 return ModRefInfo::ModRef; in GetLocation() 147 return ModRefInfo::ModRef; in GetLocation() 153 return ModRefInfo::Mod; in GetLocation() 164 return ModRefInfo::Mod; in GetLocation() [all …]
|
/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);
|
/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 …]
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | AliasAnalysisTest.cpp | 196 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), ModRefInfo::Mod); in TEST_F() 197 EXPECT_EQ(AA.getModRefInfo(Store1, None), ModRefInfo::Mod); in TEST_F() 198 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), ModRefInfo::Ref); in TEST_F() 199 EXPECT_EQ(AA.getModRefInfo(Load1, None), ModRefInfo::Ref); in TEST_F() 200 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), ModRefInfo::NoModRef); in TEST_F() 201 EXPECT_EQ(AA.getModRefInfo(Add1, None), ModRefInfo::NoModRef); in TEST_F() 202 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F() 203 EXPECT_EQ(AA.getModRefInfo(VAArg1, None), ModRefInfo::ModRef); in TEST_F() 204 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F() 205 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, None), ModRefInfo::ModRef); in TEST_F() [all …]
|