Home
last modified time | relevance | path

Searched refs:SubRegion (Results 1 – 24 of 24) sorted by relevance

/external/clang/lib/StaticAnalyzer/Core/
DRegionStore.cpp54 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 …]
DMemRegion.cpp145 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 …]
DSVals.cpp93 while (const SubRegion *SR = dyn_cast<SubRegion>(R)) { in getLocSymbolInBase()
DSymbolManager.cpp204 SymbolManager::getExtentSymbol(const SubRegion *R) { in getExtentSymbol()
398 for (auto SR = dyn_cast<SubRegion>(region); SR; in markElementIndicesLive()
399 SR = dyn_cast<SubRegion>(SR->getSuperRegion())) { in markElementIndicesLive()
DProgramState.cpp599 if (const SubRegion *SR = dyn_cast<SubRegion>(R)) { in scan()
716 if (const SubRegion *ER = dyn_cast<SubRegion>(Reg)) in isTainted()
DSimpleSValBuilder.cpp913 else if (isa<SubRegion>(region)) { in evalBinOpLN()
/external/clang/lib/StaticAnalyzer/Checkers/
DArrayBoundCheckerV2.cpp46 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()
DObjCSuperDeallocChecker.cpp154 while (const SubRegion *SR = dyn_cast<SubRegion>(R)) { in checkLocation()
DCStringChecker.cpp296 const SubRegion *superReg = cast<SubRegion>(ER->getSuperRegion()); in CheckLocation()
880 const SubRegion *superReg = cast<SubRegion>(ER->getSuperRegion()); in IsFirstBufInBound()
2140 while (const SubRegion *SR = dyn_cast<SubRegion>(MR)) { in checkRegionChanges()
2161 while (const SubRegion *SR = dyn_cast<SubRegion>(Super)) { in checkRegionChanges()
DExprInspectionChecker.cpp160 auto MR = dyn_cast_or_null<SubRegion>(C.getSVal(CE->getArg(0)).getAsRegion()); in analyzerGetExtent()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DRegionInfo.h363 bool contains(const Region *SubRegion) const { in contains() argument
368 return contains(SubRegion->getEntry()) in contains()
369 && (contains(SubRegion->getExit()) || SubRegion->getExit() == getExit()); in contains()
435 void addSubRegion(Region *SubRegion, bool moveChildren = false);
442 Region *removeSubRegion(Region *SubRegion);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DRegions.def58 ABSTRACT_REGION(SubRegion, MemRegion)
59 REGION(AllocaRegion, SubRegion)
60 REGION(SymbolicRegion, SubRegion)
61 ABSTRACT_REGION(TypedRegion, SubRegion)
DSymbolManager.h37 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);
DMemRegion.h410 class SubRegion : public MemRegion {
415 SubRegion(const MemRegion* sReg, Kind k) : MemRegion(k), superRegion(sReg) {} in SubRegion() function
441 class AllocaRegion : public SubRegion {
449 : SubRegion(superRegion, AllocaRegionKind), Cnt(cnt), Ex(ex) {} in AllocaRegion()
472 class TypedRegion : public SubRegion {
476 TypedRegion(const MemRegion* sReg, Kind k) : SubRegion(sReg, k) {} in TypedRegion()
707 class SymbolicRegion : public SubRegion {
713 : SubRegion(sreg, SymbolicRegionKind), sym(s) {} in SymbolicRegion()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DRegionInfo.cpp330 void Region::addSubRegion(Region *SubRegion, bool moveChildren) { in addSubRegion() argument
331 assert(SubRegion->parent == 0 && "SubRegion already has a parent!"); in addSubRegion()
332 assert(std::find(begin(), end(), SubRegion) == children.end() in addSubRegion()
335 SubRegion->parent = this; in addSubRegion()
336 children.push_back(SubRegion); in addSubRegion()
341 assert(SubRegion->children.size() == 0 in addSubRegion()
348 if (SubRegion->contains(BB)) in addSubRegion()
349 RI->setRegionFor(BB, SubRegion); in addSubRegion()
354 if (SubRegion->contains(*I) && *I != SubRegion) { in addSubRegion()
355 SubRegion->children.push_back(*I); in addSubRegion()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DRegionInfoImpl.h394 void RegionBase<Tr>::addSubRegion(RegionT *SubRegion, bool moveChildren) { in addSubRegion() argument
395 assert(!SubRegion->parent && "SubRegion already has a parent!"); in addSubRegion()
398 return R.get() == SubRegion; in addSubRegion()
402 SubRegion->parent = static_cast<RegionT *>(this); in addSubRegion()
403 children.push_back(std::unique_ptr<RegionT>(SubRegion)); in addSubRegion()
408 assert(SubRegion->children.empty() && in addSubRegion()
415 if (SubRegion->contains(BB)) in addSubRegion()
416 RI->setRegionFor(BB, SubRegion); in addSubRegion()
422 if (SubRegion->contains(R.get()) && R.get() != SubRegion) { in addSubRegion()
423 R->parent = SubRegion; in addSubRegion()
[all …]
DRegionInfo.h456 bool contains(const RegionT *SubRegion) const {
461 return contains(SubRegion->getEntry()) &&
462 (contains(SubRegion->getExit()) ||
463 SubRegion->getExit() == getExit());
528 void addSubRegion(RegionT *SubRegion, bool moveChildren = false);
535 RegionT *removeSubRegion(RegionT *SubRegion);
/external/llvm/include/llvm/Analysis/
DRegionInfoImpl.h376 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 …]
DRegionInfo.h442 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-7.0/llvm/lib/Transforms/Vectorize/
DVPlanVerifier.cpp120 if (const auto *SubRegion = dyn_cast<VPRegionBlock>(VPB)) in verifyRegionRec() local
121 verifyRegionRec(SubRegion); in verifyRegionRec()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStructurizeCFG.cpp310 Region *SubRegion = RN->getNodeAs<Region>(); in getAdjustedLoop() local
311 return LI->getLoopFor(SubRegion->getExit()); in getAdjustedLoop()
656 Region *SubRegion = Node->getNodeAs<Region>(); in changeExit() local
657 BasicBlock *OldExit = SubRegion->getExit(); in changeExit()
665 if (!SubRegion->contains(BB)) in changeExit()
687 SubRegion->replaceExit(NewExit); in changeExit()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/StructurizeCFG/AMDGPU/
Dloop-subregion-misordered.ll10 ; However, we found a problem for a SubRegion which is a loop itself:
16 ; In this case, BB2 is a SubRegion (loop), and thus its loopdepth is different than that of
19 ; In this work, we treat the SubRegion as a special case and use its exit block to determine
/external/llvm/lib/Transforms/Scalar/
DStructurizeCFG.cpp657 Region *SubRegion = Node->getNodeAs<Region>(); in changeExit() local
658 BasicBlock *OldExit = SubRegion->getExit(); in changeExit()
666 if (!SubRegion->contains(BB)) in changeExit()
688 SubRegion->replaceExit(NewExit); in changeExit()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUMachineCFGStructurizer.cpp833 LinearizedRegion *SubRegion = CI->getRegionMRT()->getLinearizedRegion(); in storeLiveOuts() local
836 for (auto MBBI : SubRegion->MBBs) { in storeLiveOuts()