/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | Store.cpp | 60 const ElementRegion *StoreManager::MakeElementRegion(const SubRegion *Base, in MakeElementRegion() 67 const ElementRegion *StoreManager::GetElementZeroRegion(const SubRegion *R, in GetElementZeroRegion() 142 return MakeElementRegion(cast<SubRegion>(R), PointeeTy); in castRegion() 187 return MakeElementRegion(cast<SubRegion>(baseR), PointeeTy); in castRegion() 218 newSuperR = MakeElementRegion(cast<SubRegion>(baseR), Ctx.CharTy, in castRegion() 222 return MakeElementRegion(cast<SubRegion>(newSuperR), PointeeTy, newIndex); in castRegion() 296 BaseDecl, cast<SubRegion>(DerivedReg), IsVirtual); in evalDerivedToBase() 444 const SubRegion* BaseR = nullptr; in getLValueFieldOrIvar() 448 BaseR = cast<SubRegion>(BaseL.castAs<loc::MemRegionVal>().getRegion()); in getLValueFieldOrIvar() 496 const SubRegion *BaseRegion = in getLValueElement() [all …]
|
D | RegionStore.cpp | 55 explicit BindingKey(const SubRegion *r, const SubRegion *Base, Kind k) in BindingKey() 81 const SubRegion *getConcreteOffsetRegion() const { in getConcreteOffsetRegion() 83 return reinterpret_cast<const SubRegion *>(static_cast<uintptr_t>(Data)); in getConcreteOffsetRegion() 119 return BindingKey(cast<SubRegion>(R), cast<SubRegion>(RO.getRegion()), k); in Make() 440 const SubRegion *R); 481 B = removeSubRegionBindings(B, cast<SubRegion>(R)); in BindDefaultZero() 578 SVal getLazyBinding(const SubRegion *LazyBindingRegion, 604 std::pair<Store, const SubRegion *> 605 findLazyBinding(RegionBindingsConstRef B, const SubRegion *R, 606 const SubRegion *originalRegion); [all …]
|
D | MemRegion.cpp | 132 bool SubRegion::isSubRegionOf(const MemRegion* R) const { in isSubRegionOf() 137 if (const auto *sr = dyn_cast<SubRegion>(r)) in isSubRegionOf() 145 MemRegionManager &SubRegion::getMemRegionManager() const { in getMemRegionManager() 146 const SubRegion* r = this; in getMemRegionManager() 149 if (const auto *sr = dyn_cast<SubRegion>(superRegion)) { in getMemRegionManager() 162 ObjCIvarRegion::ObjCIvarRegion(const ObjCIvarDecl *ivd, const SubRegion *sReg) in ObjCIvarRegion() 431 void SubRegion::anchor() {} in anchor() 741 const auto *SR = cast<SubRegion>(MR); in getStaticSize() 1103 const SubRegion* superRegion, in getElementRegion() 1146 const SubRegion* superRegion){ in getFieldRegion() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | Taint.cpp | 25 REGISTER_MAP_FACTORY_WITH_PROGRAMSTATE(TaintedSubRegions, const SubRegion *, in REGISTER_MAP_WITH_PROGRAMSTATE() 123 const SubRegion *SubRegion, in addPartialTaint() argument 131 if (SubRegion == SubRegion->getBaseRegion()) in addPartialTaint() 138 Regs = F.add(Regs, SubRegion, Kind); in addPartialTaint() 172 if (const SubRegion *ER = dyn_cast<SubRegion>(Reg)) in isTainted()
|
D | MacOSXAPIChecker.cpp | 56 const SubRegion *SR = dyn_cast<SubRegion>(R); in getParentIvarRegion() 60 SR = dyn_cast<SubRegion>(SR->getSuperRegion()); in getParentIvarRegion()
|
D | ArrayBoundCheckerV2.cpp | 49 const SubRegion *baseRegion; 56 RegionRawOffsetV2(const SubRegion* base, SVal offset) in RegionRawOffsetV2() 60 const SubRegion *getRegion() const { return baseRegion; } in getRegion() 317 if (const SubRegion *subReg = dyn_cast<SubRegion>(region)) { in computeOffset()
|
D | Taint.h | 61 ProgramStateRef State, SymbolRef ParentSym, const SubRegion *SubRegion,
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | RegionStore.cpp | 54 explicit BindingKey(const SubRegion *r, const SubRegion *Base, Kind k) in BindingKey() 78 const SubRegion *getConcreteOffsetRegion() const { in getConcreteOffsetRegion() 80 return reinterpret_cast<const SubRegion *>(static_cast<uintptr_t>(Data)); in getConcreteOffsetRegion() 116 return BindingKey(cast<SubRegion>(R), cast<SubRegion>(RO.getRegion()), k); in Make() 401 const SubRegion *R); 418 const SubRegion *SR = cast<SubRegion>(R); in BindDefault() 514 SVal getLazyBinding(const SubRegion *LazyBindingRegion, 540 std::pair<Store, const SubRegion *> 541 findLazyBinding(RegionBindingsConstRef B, const SubRegion *R, 542 const SubRegion *originalRegion); [all …]
|
D | MemRegion.cpp | 145 bool SubRegion::isSubRegionOf(const MemRegion* R) const { in isSubRegionOf() 150 if (const SubRegion* sr = dyn_cast<SubRegion>(r)) in isSubRegionOf() 158 MemRegionManager* SubRegion::getMemRegionManager() const { in getMemRegionManager() 159 const SubRegion* r = this; in getMemRegionManager() 162 if (const SubRegion *sr = dyn_cast<SubRegion>(superRegion)) { in getMemRegionManager() 431 void SubRegion::anchor() { } in anchor() 1099 const SubRegion* SR = dyn_cast<SubRegion>(this); in getMemorySpace() 1103 SR = dyn_cast<SubRegion>(R); in getMemorySpace() 1137 R = cast<SubRegion>(R)->getSuperRegion(); in getBaseRegion() 1178 const SubRegion *SubR = dyn_cast<SubRegion>(this); in getSymbolicBase() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | ArrayBoundCheckerV2.cpp | 46 const SubRegion *baseRegion; 53 RegionRawOffsetV2(const SubRegion* base, SVal offset) in RegionRawOffsetV2() 57 const SubRegion *getRegion() const { return baseRegion; } in getRegion() 79 region = cast<SubRegion>(region)->getSuperRegion(); in computeExtentBegin() 266 if (const SubRegion *subReg = dyn_cast<SubRegion>(region)) { in computeOffset()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | Regions.def | 58 ABSTRACT_REGION(SubRegion, MemRegion) 59 REGION(AllocaRegion, SubRegion) 60 REGION(SymbolicRegion, SubRegion) 61 ABSTRACT_REGION(TypedRegion, SubRegion)
|
D | SymbolManager.h | 37 class SubRegion; variable 154 const SubRegion *R; 157 SymbolExtent(SymbolID sym, const SubRegion *r) in SymbolExtent() 160 const SubRegion *getRegion() const { return R; } in getRegion() 166 static void Profile(llvm::FoldingSetNodeID& profile, const SubRegion *R) { in Profile() 431 const SymbolExtent *getExtentSymbol(const SubRegion *R);
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | MemRegion.h | 435 class SubRegion : public MemRegion { 441 SubRegion(const MemRegion *sReg, Kind k) : MemRegion(k), superRegion(sReg) { in SubRegion() function 466 class AllocaRegion : public SubRegion { 476 : SubRegion(superRegion, AllocaRegionKind), Cnt(cnt), Ex(ex) { in AllocaRegion() 498 class TypedRegion : public SubRegion { 502 TypedRegion(const MemRegion *sReg, Kind k) : SubRegion(sReg, k) { in TypedRegion() 754 class SymbolicRegion : public SubRegion { 760 : SubRegion(sreg, SymbolicRegionKind), sym(s) { in SymbolicRegion() 1059 FieldRegion(const FieldDecl *fd, const SubRegion *sReg) in FieldRegion() 1096 ObjCIvarRegion(const ObjCIvarDecl *ivd, const SubRegion *sReg); [all …]
|
D | Regions.def | 57 ABSTRACT_REGION(SubRegion, MemRegion) 58 REGION(AllocaRegion, SubRegion) 59 REGION(SymbolicRegion, SubRegion) 60 ABSTRACT_REGION(TypedRegion, SubRegion)
|
D | SymbolManager.h | 174 const SubRegion *R; 177 SymbolExtent(SymbolID sym, const SubRegion *r) in SymbolExtent() 182 const SubRegion *getRegion() const { return R; } in getRegion() 190 static void Profile(llvm::FoldingSetNodeID& profile, const SubRegion *R) { in Profile() 459 const SymbolExtent *getExtentSymbol(const SubRegion *R);
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | RegionInfoImpl.h | 393 void RegionBase<Tr>::addSubRegion(RegionT *SubRegion, bool moveChildren) { in addSubRegion() argument 394 assert(!SubRegion->parent && "SubRegion already has a parent!"); in addSubRegion() 397 return R.get() == SubRegion; in addSubRegion() 401 SubRegion->parent = static_cast<RegionT *>(this); in addSubRegion() 402 children.push_back(std::unique_ptr<RegionT>(SubRegion)); in addSubRegion() 407 assert(SubRegion->children.empty() && in addSubRegion() 414 if (SubRegion->contains(BB)) in addSubRegion() 415 RI->setRegionFor(BB, SubRegion); in addSubRegion() 421 if (SubRegion->contains(R.get()) && R.get() != SubRegion) { in addSubRegion() 422 R->parent = SubRegion; in addSubRegion() [all …]
|
D | RegionInfo.h | 454 bool contains(const RegionT *SubRegion) const { 459 return contains(SubRegion->getEntry()) && 460 (contains(SubRegion->getExit()) || 461 SubRegion->getExit() == getExit()); 526 void addSubRegion(RegionT *SubRegion, bool moveChildren = false); 533 RegionT *removeSubRegion(RegionT *SubRegion);
|
/external/llvm/include/llvm/Analysis/ |
D | RegionInfoImpl.h | 376 void RegionBase<Tr>::addSubRegion(RegionT *SubRegion, bool moveChildren) { in addSubRegion() argument 377 assert(!SubRegion->parent && "SubRegion already has a parent!"); in addSubRegion() 379 return R.get() == SubRegion; in addSubRegion() 383 SubRegion->parent = static_cast<RegionT *>(this); in addSubRegion() 384 children.push_back(std::unique_ptr<RegionT>(SubRegion)); in addSubRegion() 389 assert(SubRegion->children.empty() && in addSubRegion() 396 if (SubRegion->contains(BB)) in addSubRegion() 397 RI->setRegionFor(BB, SubRegion); in addSubRegion() 403 if (SubRegion->contains(I->get()) && I->get() != SubRegion) { in addSubRegion() 404 (*I)->parent = SubRegion; in addSubRegion() [all …]
|
D | RegionInfo.h | 442 bool contains(const RegionT *SubRegion) const { 447 return contains(SubRegion->getEntry()) && 448 (contains(SubRegion->getExit()) || 449 SubRegion->getExit() == getExit()); 514 void addSubRegion(RegionT *SubRegion, bool moveChildren = false); 521 RegionT *removeSubRegion(RegionT *SubRegion);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | RegionInfoImpl.h | 393 void RegionBase<Tr>::addSubRegion(RegionT *SubRegion, bool moveChildren) { in addSubRegion() argument 394 assert(!SubRegion->parent && "SubRegion already has a parent!"); in addSubRegion() 397 return R.get() == SubRegion; in addSubRegion() 401 SubRegion->parent = static_cast<RegionT *>(this); in addSubRegion() 402 children.push_back(std::unique_ptr<RegionT>(SubRegion)); in addSubRegion() 407 assert(SubRegion->children.empty() && in addSubRegion() 414 if (SubRegion->contains(BB)) in addSubRegion() 415 RI->setRegionFor(BB, SubRegion); in addSubRegion() 421 if (SubRegion->contains(R.get()) && R.get() != SubRegion) { in addSubRegion() 422 R->parent = SubRegion; in addSubRegion() [all …]
|
D | RegionInfo.h | 455 bool contains(const RegionT *SubRegion) const { 460 return contains(SubRegion->getEntry()) && 461 (contains(SubRegion->getExit()) || 462 SubRegion->getExit() == getExit()); 527 void addSubRegion(RegionT *SubRegion, bool moveChildren = false); 534 RegionT *removeSubRegion(RegionT *SubRegion);
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | VPlanVerifier.cpp | 117 if (const auto *SubRegion = dyn_cast<VPRegionBlock>(VPB)) in verifyRegionRec() local 118 verifyRegionRec(SubRegion); in verifyRegionRec()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | VPlanVerifier.cpp | 120 if (const auto *SubRegion = dyn_cast<VPRegionBlock>(VPB)) in verifyRegionRec() local 121 verifyRegionRec(SubRegion); in verifyRegionRec()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | HotColdSplitting.cpp | 513 BlockSequence SubRegion = {SuggestedEntryPoint}; in takeSingleEntrySubRegion() local 527 SubRegion.push_back(BB); in takeSingleEntrySubRegion() 535 return SubRegion; in takeSingleEntrySubRegion() 627 BlockSequence SubRegion = Region.takeSingleEntrySubRegion(*DT); in outlineColdRegions() local 630 for (BasicBlock *BB : SubRegion) in outlineColdRegions() 634 Function *Outlined = extractColdRegion(SubRegion, CEAC, *DT, BFI, TTI, in outlineColdRegions()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | HotColdSplitting.cpp | 531 BlockSequence SubRegion = {SuggestedEntryPoint}; in takeSingleEntrySubRegion() local 545 SubRegion.push_back(BB); in takeSingleEntrySubRegion() 553 return SubRegion; in takeSingleEntrySubRegion() 645 BlockSequence SubRegion = Region.takeSingleEntrySubRegion(*DT); in outlineColdRegions() local 648 for (BasicBlock *BB : SubRegion) in outlineColdRegions() 652 Function *Outlined = extractColdRegion(SubRegion, CEAC, *DT, BFI, TTI, in outlineColdRegions()
|