/external/llvm-project/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 65 class LocationSize { 83 constexpr LocationSize(uint64_t Raw, DirectConstruction): Value(Raw) {} in LocationSize() function 97 constexpr LocationSize(uint64_t Raw) in LocationSize() function 100 static LocationSize precise(uint64_t Value) { return LocationSize(Value); } in precise() 101 static LocationSize precise(TypeSize Value) { in precise() 107 static LocationSize upperBound(uint64_t Value) { in upperBound() 113 return LocationSize(Value | ImpreciseBit, Direct); in upperBound() 115 static LocationSize upperBound(TypeSize Value) { in upperBound() 123 constexpr static LocationSize afterPointer() { in afterPointer() 124 return LocationSize(AfterPointer, Direct); in afterPointer() [all …]
|
D | BasicAliasAnalysis.h | 203 LocationSize ObjectAccessSize); 215 LocationSize V1Size, LocationSize V2Size, 224 AliasResult aliasGEP(const GEPOperator *V1, LocationSize V1Size, 226 LocationSize V2Size, const AAMDNodes &V2AAInfo, 230 AliasResult aliasPHI(const PHINode *PN, LocationSize PNSize, 232 LocationSize V2Size, const AAMDNodes &V2AAInfo, 235 AliasResult aliasSelect(const SelectInst *SI, LocationSize SISize, 237 LocationSize V2Size, const AAMDNodes &V2AAInfo, 240 AliasResult aliasCheck(const Value *V1, LocationSize V1Size, 242 LocationSize V2Size, const AAMDNodes &V2AATag,
|
D | AliasSetTracker.h | 60 LocationSize Size = LocationSize::mapEmpty(); 65 bool isSizeSet() const { return Size != LocationSize::mapEmpty(); } in isSizeSet() 81 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { in updateSizeAndAAInfo() 84 LocationSize OldSize = Size; in updateSizeAndAAInfo() 100 LocationSize getSize() const { in getSize() 257 LocationSize getSize() const { return CurNode->getSize(); } in getSize() 297 void addPointer(AliasSetTracker &AST, PointerRec &Entry, LocationSize Size, 317 AliasResult aliasesPointer(const Value *Ptr, LocationSize Size, 376 void add(Value *Ptr, LocationSize Size, const AAMDNodes &AAInfo); // Add a loc 448 AliasSet *mergeAliasSetsForPointer(const Value *Ptr, LocationSize Size,
|
D | AliasAnalysis.h | 402 AliasResult alias(const Value *V1, LocationSize V1Size, const Value *V2, in alias() 403 LocationSize V2Size) { in alias() 420 bool isNoAlias(const Value *V1, LocationSize V1Size, const Value *V2, in isNoAlias() 421 LocationSize V2Size) { in isNoAlias() 439 return alias(V1, LocationSize::precise(1), V2, LocationSize::precise(1)) == in isMustAlias() 580 LocationSize Size) { in getModRefInfo() 590 LocationSize Size) { in getModRefInfo() 600 LocationSize Size) { in getModRefInfo() 610 LocationSize Size) { in getModRefInfo() 621 LocationSize Size) { in getModRefInfo() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 60 class LocationSize { 77 constexpr LocationSize(uint64_t Raw, DirectConstruction): Value(Raw) {} in LocationSize() function 87 constexpr LocationSize(uint64_t Raw) in LocationSize() function 90 static LocationSize precise(uint64_t Value) { return LocationSize(Value); } in precise() 92 static LocationSize upperBound(uint64_t Value) { in upperBound() 98 return LocationSize(Value | ImpreciseBit, Direct); in upperBound() 101 constexpr static LocationSize unknown() { in unknown() 102 return LocationSize(Unknown, Direct); in unknown() 106 constexpr static LocationSize mapTombstone() { in mapTombstone() 107 return LocationSize(MapTombstone, Direct); in mapTombstone() [all …]
|
D | BasicAliasAnalysis.h | 177 LocationSize ObjectAccessSize); 189 LocationSize V1Size, LocationSize V2Size, 198 AliasResult aliasGEP(const GEPOperator *V1, LocationSize V1Size, 200 LocationSize V2Size, const AAMDNodes &V2AAInfo, 204 AliasResult aliasPHI(const PHINode *PN, LocationSize PNSize, 206 LocationSize V2Size, const AAMDNodes &V2AAInfo, 209 AliasResult aliasSelect(const SelectInst *SI, LocationSize SISize, 211 LocationSize V2Size, const AAMDNodes &V2AAInfo, 214 AliasResult aliasCheck(const Value *V1, LocationSize V1Size, 216 LocationSize V2Size, AAMDNodes V2AATag,
|
D | AliasSetTracker.h | 56 LocationSize Size = LocationSize::mapEmpty(); 61 bool isSizeSet() const { return Size != LocationSize::mapEmpty(); } in isSizeSet() 77 bool updateSizeAndAAInfo(LocationSize NewSize, const AAMDNodes &NewAAInfo) { in updateSizeAndAAInfo() 80 LocationSize OldSize = Size; in updateSizeAndAAInfo() 101 LocationSize getSize() const { in getSize() 258 LocationSize getSize() const { return CurNode->getSize(); } in getSize() 298 void addPointer(AliasSetTracker &AST, PointerRec &Entry, LocationSize Size, 318 AliasResult aliasesPointer(const Value *Ptr, LocationSize Size, 377 void add(Value *Ptr, LocationSize Size, const AAMDNodes &AAInfo); // Add a loc 449 AliasSet *mergeAliasSetsForPointer(const Value *Ptr, LocationSize Size,
|
D | AliasAnalysis.h | 352 AliasResult alias(const Value *V1, LocationSize V1Size, const Value *V2, in alias() 353 LocationSize V2Size) { in alias() 359 return alias(V1, LocationSize::unknown(), V2, LocationSize::unknown()); in alias() 369 bool isNoAlias(const Value *V1, LocationSize V1Size, const Value *V2, in isNoAlias() 370 LocationSize V2Size) { in isNoAlias() 387 return alias(V1, LocationSize::precise(1), V2, LocationSize::precise(1)) == in isMustAlias() 528 LocationSize Size) { in getModRefInfo() 538 LocationSize Size) { in getModRefInfo() 548 LocationSize Size) { in getModRefInfo() 558 LocationSize Size) { in getModRefInfo() [all …]
|
/external/llvm-project/llvm/test/Analysis/AliasSet/ |
D | saturation.ll | 5 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %a, LocationSize::precise(4)) 6 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %b, LocationSize::precise(4)) 7 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %c, LocationSize::precise(4)) 8 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %d, LocationSize::precise(4)) 22 …sSet[{{.*}}, 2] may alias, Mod Pointers: (i32* %a, LocationSize::precise(4)), (i32* %a1, LocationS… 23 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %b, LocationSize::precise(4)) 26 …ias, Mod/Ref Pointers: (i32* %a, LocationSize::precise(4)), (i32* %a1, LocationSize::precise(4)), … 38 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %a, LocationSize::precise(4)) 39 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Pointers: (i32* %b, LocationSize::precise(4)) 40 …sSet[{{.*}}, 2] may alias, Mod Pointers: (i32* %c, LocationSize::precise(4)), (i32* %d, LocationS… [all …]
|
D | guards.ll | 7 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %a, LocationSize::prec… 10 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %b, LocationSize::prec… 23 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %a, LocationSize::prec… 26 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 39 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 42 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %b, LocationSize::prec… 55 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 58 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 73 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %a, LocationSize::prec… 74 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %b, LocationSize::prec… [all …]
|
D | memtransfer.ll | 9 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %d, LocationSize::prec… 10 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Ref Pointers: (i8* %s, LocationSize::prec… 30 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 32 …a-f]+}}, 2] may alias, Mod/Ref Pointers: (i8* %d, LocationSize::precise(1)), (i8* %s, LocationSi… 33 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 46 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 48 …a-f]+}}, 2] may alias, Mod/Ref Pointers: (i8* %d, LocationSize::precise(1)), (i8* %s, LocationSi… 49 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 62 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 64 …-f]+}}, 2] may alias, Mod/Ref Pointers: (i8* %d, LocationSize::precise(1)), (i8* %s, LocationSi… [all …]
|
D | intrinsics.ll | 5 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 7 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 21 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %a, LocationSize::prec… 24 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec… 38 …a-f]+}}, 3] may alias, Mod/Ref Pointers: (i8* %a, LocationSize::precise(1)), (i8* %b, LocationSi… 51 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Pointers: (i8* %a, LocationSize::preci… 53 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %b, LocationSize::prec…
|
D | memset.ll | 8 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %d, LocationSize::prec… 27 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Pointers: (i8* %d, LocationSize::prec…
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 21 void LocationSize::print(raw_ostream &OS) const { in print() 42 LocationSize::precise(DL.getTypeStoreSize(LI->getType())), AATags); in get() 51 LocationSize::precise(DL.getTypeStoreSize( in get() 60 return MemoryLocation(VI->getPointerOperand(), LocationSize::unknown(), in get() 70 LocationSize::precise(DL.getTypeStoreSize( in get() 81 LocationSize::precise(DL.getTypeStoreSize( in get() 95 auto Size = LocationSize::unknown(); in getForSource() 97 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForSource() 116 auto Size = LocationSize::unknown(); in getForDest() 118 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForDest() [all …]
|
D | BasicAliasAnalysis.cpp | 241 const LocationSize &LocSize, in getMinimalExtentFrom() 1085 LocationSize MaybeV1Size, in aliasSameBasePointerGEPs() 1087 LocationSize MaybeV2Size, in aliasSameBasePointerGEPs() 1103 if (MaybeV1Size == LocationSize::unknown() || in aliasSameBasePointerGEPs() 1104 MaybeV2Size == LocationSize::unknown()) in aliasSameBasePointerGEPs() 1274 LocationSize MaybeObjectAccessSize) { in isGEPBaseAtNegativeOffset() 1276 if (MaybeObjectAccessSize == LocationSize::unknown() || !GEPOp->isInBounds()) in isGEPBaseAtNegativeOffset() 1312 const GEPOperator *GEP1, LocationSize V1Size, const AAMDNodes &V1AAInfo, in aliasGEP() 1313 const Value *V2, LocationSize V2Size, const AAMDNodes &V2AAInfo, in aliasGEP() 1349 aliasCheck(UnderlyingV1, LocationSize::unknown(), AAMDNodes(), in aliasGEP() [all …]
|
D | AliasAnalysisEvaluator.cpp | 143 auto I1Size = LocationSize::unknown(); in runInternal() 146 I1Size = LocationSize::precise(DL.getTypeStoreSize(I1ElTy)); in runInternal() 149 auto I2Size = LocationSize::unknown(); in runInternal() 152 I2Size = LocationSize::precise(DL.getTypeStoreSize(I2ElTy)); in runInternal() 234 auto Size = LocationSize::unknown(); in runInternal() 237 Size = LocationSize::precise(DL.getTypeStoreSize(ElTy)); in runInternal()
|
D | ScalarEvolutionAliasAnalysis.cpp | 85 AO ? LocationSize::unknown() : LocA.Size, in alias() 88 BO ? LocationSize::unknown() : LocB.Size, in alias()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 21 void LocationSize::print(raw_ostream &OS) const { in print() 44 LocationSize::precise(DL.getTypeStoreSize(LI->getType())), AATags); in get() 53 LocationSize::precise(DL.getTypeStoreSize( in get() 63 LocationSize::afterPointer(), AATags); in get() 72 LocationSize::precise(DL.getTypeStoreSize( in get() 83 LocationSize::precise(DL.getTypeStoreSize( in get() 114 auto Size = LocationSize::afterPointer(); in getForSource() 116 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForSource() 135 auto Size = LocationSize::afterPointer(); in getForDest() 137 Size = LocationSize::precise(C->getValue().getZExtValue()); in getForDest() [all …]
|
D | BasicAliasAnalysis.cpp | 198 const LocationSize &LocSize, in getMinimalExtentFrom() 1066 LocationSize MaybeObjectAccessSize) { in isGEPBaseAtNegativeOffset() 1098 const GEPOperator *GEP1, LocationSize V1Size, const AAMDNodes &V1AAInfo, in aliasGEP() 1099 const Value *V2, LocationSize V2Size, const AAMDNodes &V2AAInfo, in aliasGEP() 1129 UnderlyingV1, LocationSize::beforeOrAfterPointer(), AAMDNodes(), in aliasGEP() 1130 UnderlyingV2, LocationSize::beforeOrAfterPointer(), AAMDNodes(), AAQI); in aliasGEP() 1164 UnderlyingV1, LocationSize::beforeOrAfterPointer(), AAMDNodes(), in aliasGEP() 1328 BasicAAResult::aliasSelect(const SelectInst *SI, LocationSize SISize, in aliasSelect() 1330 LocationSize V2Size, const AAMDNodes &V2AAInfo, in aliasSelect() 1361 AliasResult BasicAAResult::aliasPHI(const PHINode *PN, LocationSize PNSize, in aliasPHI() [all …]
|
D | AliasAnalysisEvaluator.cpp | 143 auto I1Size = LocationSize::afterPointer(); in runInternal() 146 I1Size = LocationSize::precise(DL.getTypeStoreSize(I1ElTy)); in runInternal() 149 auto I2Size = LocationSize::afterPointer(); in runInternal() 152 I2Size = LocationSize::precise(DL.getTypeStoreSize(I2ElTy)); in runInternal() 234 auto Size = LocationSize::afterPointer(); in runInternal() 237 Size = LocationSize::precise(DL.getTypeStoreSize(ElTy)); in runInternal()
|
D | AliasSetTracker.cpp | 132 LocationSize Size, const AAMDNodes &AAInfo, in addPointer() 194 AliasResult AliasSet::aliasesPointer(const Value *Ptr, LocationSize Size, in aliasesPointer() 301 LocationSize Size, in mergeAliasSetsForPointer() 351 const LocationSize Size = MemLoc.Size; in getAliasSetFor() 399 void AliasSetTracker::add(Value *Ptr, LocationSize Size, in add() 674 if (I.getSize() == LocationSize::afterPointer()) in print() 676 else if (I.getSize() == LocationSize::beforeOrAfterPointer()) in print()
|
D | ScalarEvolutionAliasAnalysis.cpp | 85 AO ? LocationSize::beforeOrAfterPointer() in alias() 89 BO ? LocationSize::beforeOrAfterPointer() in alias()
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | BasicAliasAnalysisTest.cpp | 94 BasicAA.alias(MemoryLocation(IncomingI32Ptr, LocationSize::precise(4)), in TEST_F() 95 MemoryLocation(GlobalPtr, LocationSize::precise(1)), AAQI), in TEST_F() 99 BasicAA.alias(MemoryLocation(IncomingI32Ptr, LocationSize::upperBound(4)), in TEST_F() 100 MemoryLocation(GlobalPtr, LocationSize::precise(1)), AAQI), in TEST_F() 123 MemoryLocation(I8, LocationSize::precise(2)), in TEST_F() 124 MemoryLocation(I8AtUncertainOffset, LocationSize::precise(1)), in TEST_F() 129 MemoryLocation(I8, LocationSize::upperBound(2)), in TEST_F() 130 MemoryLocation(I8AtUncertainOffset, LocationSize::precise(1)), in TEST_F()
|
D | AliasAnalysisTest.cpp | 58 (void)AA.alias(P1, LocationSize::beforeOrAfterPointer(), P2, in runOnFunction() 59 LocationSize::beforeOrAfterPointer()); in runOnFunction() 243 MemoryLocation PhiLoc(Phi, LocationSize::precise(1)); in TEST_F() 244 MemoryLocation A1Loc(A1, LocationSize::precise(1)); in TEST_F() 245 MemoryLocation A2Loc(A2, LocationSize::precise(1)); in TEST_F() 246 MemoryLocation S1Loc(S1, LocationSize::precise(1)); in TEST_F() 247 MemoryLocation S2Loc(S2, LocationSize::precise(1)); in TEST_F() 287 MemoryLocation ALoc(A, LocationSize::precise(1)); in TEST_F() 288 MemoryLocation BLoc(B, LocationSize::precise(1)); in TEST_F() 289 MemoryLocation ANextLoc(ANext, LocationSize::precise(1)); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | StackMapParser.h | 224 LocationListOffset + LocationIndex * LocationSize; in getLocation() 275 ((LocationListOffset + LocationSize * getNumLocations()) + 7) & ~0x7; in getNumLiveOutsOffset() 296 static const unsigned LocationSize = sizeof(uint64_t) + sizeof(uint32_t); variable
|