| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | IROutliner.cpp | 290 collectRegionsConstants(OutlinableRegion &Region, in collectRegionsConstants() argument 295 IRSimilarityCandidate &C = *Region.Candidate; in collectRegionsConstants() 341 for (OutlinableRegion *Region : Regions) in findSameConstants() 342 collectRegionsConstants(*Region, GVNToConstant, NotSame); in findSameConstants() 499 OutlinableRegion &Region, std::vector<unsigned> &InputGVNs, in getCodeExtractorArguments() argument 502 IRSimilarityCandidate &C = *Region.Candidate; in getCodeExtractorArguments() 518 CodeExtractor *CE = Region.CE; in getCodeExtractorArguments() 520 assert(Region.StartBB && "Region must have a start BasicBlock!"); in getCodeExtractorArguments() 521 Function *OrigF = Region.StartBB->getParent(); in getCodeExtractorArguments() 528 Region.IgnoreRegion = true; in getCodeExtractorArguments() [all …]
|
| H A D | HotColdSplitting.cpp | 240 static InstructionCost getOutliningBenefit(ArrayRef<BasicBlock *> Region, in getOutliningBenefit() argument 245 for (BasicBlock *BB : Region) in getOutliningBenefit() 255 static int getOutliningPenalty(ArrayRef<BasicBlock *> Region, in getOutliningPenalty() argument 269 for (BasicBlock *BB : Region) { in getOutliningPenalty() 278 if (!is_contained(Region, SuccBB)) { in getOutliningPenalty() 296 if (find(Region, PN.getIncomingBlock(i)) != Region.end()) { in getOutliningPenalty() 329 LLVM_DEBUG(dbgs() << "Applying bonus for: " << Region.size() in getOutliningPenalty() 331 Penalty -= Region.size(); in getOutliningPenalty() 346 const BlockSequence &Region, const CodeExtractorAnalysisCache &CEAC, in extractColdRegion() argument 349 assert(!Region.empty()); in extractColdRegion() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 50 const MemRegion *getArrayRegion(const MemRegion *Region, bool &Polymorphic, 52 const MemRegion *getPointedRegion(const MemRegion *Region, 105 PointerArithChecker::getPointedRegion(const MemRegion *Region, in getPointedRegion() argument 107 assert(Region); in getPointedRegion() 109 SVal S = State->getSVal(Region); in getPointedRegion() 117 const MemRegion *PointerArithChecker::getArrayRegion(const MemRegion *Region, in getArrayRegion() argument 121 assert(Region); in getArrayRegion() 122 while (const auto *BaseRegion = dyn_cast<CXXBaseObjectRegion>(Region)) { in getArrayRegion() 123 Region = BaseRegion->getSuperRegion(); in getArrayRegion() 126 if (const auto *ElemRegion = dyn_cast<ElementRegion>(Region)) { in getArrayRegion() [all …]
|
| H A D | MoveChecker.cpp | 161 : Chk(Chk), Region(R), RD(RD), MK(MK), Found(false) {} in MovedBugVisitor() 166 ID.AddPointer(Region); in Profile() 180 const MemRegion *Region; member in __anondafec4250211::MoveChecker::MovedBugVisitor 211 void modelUse(ProgramStateRef State, const MemRegion *Region, 217 ExplodedNode *reportBug(const MemRegion *Region, const CXXRecordDecl *RD, 224 const MemRegion *Region, 235 bool isMovedFrom(ProgramStateRef State, const MemRegion *Region) { in isMovedFrom() argument 236 const RegionState *RS = State->get<TrackedRegionMap>(Region); in isMovedFrom() 245 const MemRegion *Region) { in removeFromState() argument 246 if (!Region) in removeFromState() [all …]
|
| H A D | NullabilityChecker.cpp | 138 NullabilityBugVisitor(const MemRegion *M) : Region(M) {} in NullabilityBugVisitor() 143 ID.AddPointer(Region); in Profile() 152 const MemRegion *Region; member in __anona22f4ad70111::NullabilityChecker::NullabilityBugVisitor 161 ExplodedNode *N, const MemRegion *Region, 167 const MemRegion *Region, BugReporter &BR, in reportBug() argument 171 if (Region) { in reportBug() 172 R->markInteresting(Region); in reportBug() 173 R->addVisitor(std::make_unique<NullabilityBugVisitor>(Region)); in reportBug() 285 const MemRegion *Region = RegionSVal->getRegion(); in getTrackRegion() local 288 if (auto FieldReg = Region->getAs<FieldRegion>()) in getTrackRegion() [all …]
|
| H A D | StackAddrEscapeChecker.cpp | 145 const MemRegion *Region = Val.getAsRegion(); in getCapturedStackRegions() local 146 if (Region && isa<StackSpaceRegion>(Region->getMemorySpace())) in getCapturedStackRegions() 147 Regions.push_back(Region); in getCapturedStackRegions() 186 for (const MemRegion *Region : getCapturedStackRegions(B, C)) { in checkAsyncExecutedBlockCaptures() local 193 if (isa<BlockDataRegion>(Region)) in checkAsyncExecutedBlockCaptures() 204 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkAsyncExecutedBlockCaptures() 216 for (const MemRegion *Region : getCapturedStackRegions(B, C)) { in checkReturnedBlockCaptures() local 217 if (isArcManagedBlock(Region, C) || isNotInCurrentFrame(Region, C)) in checkReturnedBlockCaptures() 228 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkReturnedBlockCaptures() 313 bool HandleBinding(StoreManager &SMgr, Store S, const MemRegion *Region, in checkEndFunction() argument [all …]
|
| H A D | SmartPtrModeling.cpp | 117 const MemRegion *Region) { in removeTrackedSubregions() argument 118 if (!Region) in removeTrackedSubregions() 121 if (E.first->isSubRegionOf(Region)) in removeTrackedSubregions() 128 const MemRegion *Region, in updateSwappedRegion() argument 131 State = State->set<TrackedRegionMap>(Region, *RegionInnerPointerVal); in updateSwappedRegion() 133 State = State->remove<TrackedRegionMap>(Region); in updateSwappedRegion() 162 const MemRegion *Region) { in checkAndPrettyPrintRegion() argument 163 if (Region->canPrintPretty()) { in checkAndPrettyPrintRegion() 165 Region->printPretty(OS); in checkAndPrettyPrintRegion() 281 const MemRegion *Region = E.first; in checkDeadSymbols() local [all …]
|
| /netbsd-src/sys/external/bsd/acpica/dist/events/ |
| H A D | evregion.c | 181 HandlerDesc = RegionObj->Region.Handler; in AcpiEvAddressSpaceDispatch() 186 AcpiUtGetNodeName (RegionObj->Region.Node), in AcpiEvAddressSpaceDispatch() 187 RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); in AcpiEvAddressSpaceDispatch() 200 if (!(RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE)) in AcpiEvAddressSpaceDispatch() 211 RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); in AcpiEvAddressSpaceDispatch() 215 if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM) in AcpiEvAddressSpaceDispatch() 220 Ctx->Length = (UINT16) RegionObj->Region.Length; in AcpiEvAddressSpaceDispatch() 221 Ctx->SubspaceId = (UINT8) RegionObj->Region.Address; in AcpiEvAddressSpaceDispatch() 224 if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE) in AcpiEvAddressSpaceDispatch() 228 Ctx->Length = RegionObj->Region.Length; in AcpiEvAddressSpaceDispatch() [all …]
|
| H A D | evrgnini.c | 115 LocalRegionContext->Length = RegionDesc->Region.Length; in AcpiEvSystemMemoryRegionSetup() 116 LocalRegionContext->Address = RegionDesc->Region.Address; in AcpiEvSystemMemoryRegionSetup() 198 HandlerObj = RegionObj->Region.Handler; in AcpiEvPciConfigRegionSetup() 220 ParentNode = RegionObj->Region.Node->Parent; in AcpiEvPciConfigRegionSetup() 287 if (RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE) in AcpiEvPciConfigRegionSetup() 307 PciDeviceNode = RegionObj->Region.Node; in AcpiEvPciConfigRegionSetup() 356 Status = AcpiHwDerivePciId (PciId, PciRootNode, RegionObj->Region.Node); in AcpiEvPciConfigRegionSetup() 545 LocalRegionContext->Pointer = RegionDesc->Region.Pointer; in AcpiEvDataTableRegionSetup() 653 Node = RegionObj->Region.Node->Parent; in AcpiEvInitializeRegion() 654 SpaceId = RegionObj->Region.SpaceId; in AcpiEvInitializeRegion()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cov/ |
| H A D | CoverageExporterJson.cpp | 86 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion() argument 87 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion() 88 Region.ColumnEnd, clamp_uint64_to_int64(Region.ExecutionCount), in renderRegion() 89 Region.FileID, Region.ExpandedFileID, in renderRegion() 90 int64_t(Region.Kind)}); in renderRegion() 93 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch() argument 95 {Region.LineStart, Region.ColumnStart, Region.LineEnd, Region.ColumnEnd, in renderBranch() 96 clamp_uint64_to_int64(Region.ExecutionCount), in renderBranch() 97 clamp_uint64_to_int64(Region.FalseExecutionCount), Region.FileID, in renderBranch() 98 Region.ExpandedFileID, int64_t(Region.Kind)}); in renderBranch() [all …]
|
| H A D | SourceCoverageView.h | 31 CounterMappingRegion Region; member 34 ExpansionView(const CounterMappingRegion &Region, in ExpansionView() 36 : Region(Region), View(std::move(View)) {} in ExpansionView() 38 : Region(std::move(RHS.Region)), View(std::move(RHS.View)) {} in ExpansionView() 40 Region = std::move(RHS.Region); 45 unsigned getLine() const { return Region.LineStart; } in getLine() 46 unsigned getStartCol() const { return Region.ColumnStart; } in getStartCol() 47 unsigned getEndCol() const { return Region.ColumnEnd; } in getEndCol() 50 return LHS.Region.startLoc() < RHS.Region.startLoc(); 275 void addExpansion(const CounterMappingRegion &Region,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanVerifier.cpp | 45 static void verifyBlocksInRegion(const VPRegionBlock *Region) { in verifyBlocksInRegion() argument 47 make_range(df_iterator<const VPBlockBase *>::begin(Region->getEntry()), in verifyBlocksInRegion() 48 df_iterator<const VPBlockBase *>::end(Region->getExit()))) { in verifyBlocksInRegion() 50 assert(VPB->getParent() == Region && "VPBlockBase has wrong parent"); in verifyBlocksInRegion() 95 static void verifyRegion(const VPRegionBlock *Region) { in verifyRegion() argument 96 const VPBlockBase *Entry = Region->getEntry(); in verifyRegion() 97 const VPBlockBase *Exit = Region->getExit(); in verifyRegion() 105 verifyBlocksInRegion(Region); in verifyRegion() 110 static void verifyRegionRec(const VPRegionBlock *Region) { in verifyRegionRec() argument 111 verifyRegion(Region); in verifyRegionRec() [all …]
|
| H A D | VPlanPredicator.cpp | 134 VPRegionBlock *Region) { in createOrPropagatePredicates() argument 137 if (VPDomTree.dominates(CurrBlock, Region->getExit())) { in createOrPropagatePredicates() 138 VPValue *RegionBP = Region->getPredicate(); in createOrPropagatePredicates() 187 void VPlanPredicator::predicateRegionRec(VPRegionBlock *Region) { in predicateRegionRec() argument 188 VPBasicBlock *EntryBlock = cast<VPBasicBlock>(Region->getEntry()); in predicateRegionRec() 197 createOrPropagatePredicates(Block, Region); in predicateRegionRec() 207 void VPlanPredicator::linearizeRegionRec(VPRegionBlock *Region) { in linearizeRegionRec() argument 208 ReversePostOrderTraversal<VPBlockBase *> RPOT(Region->getEntry()); in linearizeRegionRec()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMachineCFGStructurizer.cpp | 330 void storeLiveOutRegRegion(RegionMRT *Region, Register Reg, 343 void storeLiveOuts(RegionMRT *Region, const MachineRegisterInfo *MRI, 353 void setRegionMRT(RegionMRT *Region) { RMRT = Region; } in setRegionMRT() argument 415 void initLiveOut(RegionMRT *Region, const MachineRegisterInfo *MRI, 446 void setParent(RegionMRT *Region) { Parent = Region; } in setParent() argument 492 MachineRegion *Region; member in __anon8dbf25c70211::RegionMRT 498 RegionMRT(MachineRegion *MachineRegion) : Region(MachineRegion) { in RegionMRT() 522 MachineRegion *getMachineRegion() { return Region; } in getMachineRegion() 534 dbgs() << "Region: " << (void *)Region; in dump() 645 MachineRegion *Region = RegionInfo->getRegionFor(MBB); in buildMRT() local [all …]
|
| H A D | GCNIterativeScheduler.h | 60 struct Region { struct 73 SpecificBumpPtrAllocator<Region> Alloc; argument 74 std::vector<Region*> Regions; 84 GCNRegPressure getSchedulePressure(const Region &R, 90 GCNRegPressure getRegionPressure(const Region &R) const { in getRegionPressure() 94 void setBestSchedule(Region &R, 98 void scheduleBest(Region &R); 105 void scheduleRegion(Region &R, Range &&Schedule, 117 const Region *R,
|
| /netbsd-src/sys/external/bsd/acpica/dist/executer/ |
| H A D | exfield.c | 188 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || in AcpiExReadDataFromField() 189 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || in AcpiExReadDataFromField() 190 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI || in AcpiExReadDataFromField() 191 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT || in AcpiExReadDataFromField() 192 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE)) in AcpiExReadDataFromField() 244 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) in AcpiExReadDataFromField() 252 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM)) in AcpiExReadDataFromField() 354 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) in AcpiExWriteDataToField() 362 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || in AcpiExWriteDataToField() 363 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || in AcpiExWriteDataToField() [all …]
|
| H A D | exfldio.c | 117 SpaceId = RgnDesc->Region.SpaceId; in AcpiExSetupRegion() 173 if (RgnDesc->Region.Length < in AcpiExSetupRegion() 184 if (ACPI_ROUND_UP (RgnDesc->Region.Length, in AcpiExSetupRegion() 194 if (RgnDesc->Region.Length < ObjDesc->CommonField.AccessByteWidth) in AcpiExSetupRegion() 206 AcpiUtGetNodeName (RgnDesc->Region.Node), in AcpiExSetupRegion() 207 RgnDesc->Region.Length)); in AcpiExSetupRegion() 220 AcpiUtGetNodeName (RgnDesc->Region.Node), in AcpiExSetupRegion() 221 RgnDesc->Region.Length)); in AcpiExSetupRegion() 296 AcpiUtGetRegionName (RgnDesc->Region.SpaceId), in AcpiExAccessRegion() 297 RgnDesc->Region.SpaceId, in AcpiExAccessRegion() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | RegionInfo.cpp | 46 static cl::opt<Region::PrintStyle, true> printStyleX("print-region-style", 51 clEnumValN(Region::PrintNone, "none", "print no details"), 52 clEnumValN(Region::PrintBB, "bb", 54 clEnumValN(Region::PrintRN, "rn", 61 Region::Region(BasicBlock *Entry, BasicBlock *Exit, in Region() function in Region 63 DominatorTree *DT, Region *Parent) : in Region() 68 Region::~Region() = default; 87 void RegionInfo::updateStatistics(Region *R) { in updateStatistics() 101 TopLevelRegion = new Region(&F.getEntryBlock(), nullptr, in recalculate()
|
| /netbsd-src/sys/external/bsd/acpica/dist/dispatcher/ |
| H A D | dsopcode.c | 467 ObjDesc->Region.Length = (UINT32) OperandDesc->Integer.Value; in AcpiDsEvalRegionOperands() 472 if (!ObjDesc->Region.Length && (SpaceId < ACPI_NUM_PREDEFINED_REGIONS)) in AcpiDsEvalRegionOperands() 485 ObjDesc->Region.Address = (ACPI_PHYSICAL_ADDRESS) in AcpiDsEvalRegionOperands() 490 ObjDesc, ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), in AcpiDsEvalRegionOperands() 491 ObjDesc->Region.Length)); in AcpiDsEvalRegionOperands() 493 Status = AcpiUtAddAddressRange (ObjDesc->Region.SpaceId, in AcpiDsEvalRegionOperands() 494 ObjDesc->Region.Address, ObjDesc->Region.Length, Node); in AcpiDsEvalRegionOperands() 498 ObjDesc->Region.Flags |= AOPOBJ_DATA_VALID; in AcpiDsEvalRegionOperands() 600 ObjDesc->Region.Address = ACPI_PTR_TO_PHYSADDR (Table); in AcpiDsEvalTableRegionOperands() 601 ObjDesc->Region.Length = Table->Length; in AcpiDsEvalTableRegionOperands() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/ |
| H A D | quantizer.d | 271 import std.experimental.allocator.building_blocks.region : Region; 275 alias Alloc = Quantizer!(Region!(Mallocator), 277 auto a = Alloc(Region!Mallocator(1024 * 64)); 301 import std.experimental.allocator.building_blocks.region : Region; in version() 304 alias MyAlloc = Quantizer!(Region!(Mallocator), in version() 306 testAllocator!(() => MyAlloc(Region!Mallocator(1024 * 64))); in version() 308 auto a = MyAlloc(Region!Mallocator(1024 * 64)); in version() 318 import std.experimental.allocator.building_blocks.region : Region; in version() 321 alias MyAlloc = Quantizer!(Region!(), in version() 323 testAllocator!(() => MyAlloc(Region!()(new ubyte[1024 * 64]))); in version() [all …]
|
| H A D | fallback_allocator.d | 345 import std.experimental.allocator.building_blocks.region : Region; 348 auto a = FallbackAllocator!(Region!(), Region!())( 349 Region!()(new ubyte[4096 * 1024]), 350 Region!()(new ubyte[4096 * 1024])); 462 import std.experimental.allocator.building_blocks.region : Region; 465 auto a = fallbackAllocator(Region!GCAllocator(1024), GCAllocator.instance); 477 import std.experimental.allocator.building_blocks.region : Region; in version() 479 testAllocator!(() => fallbackAllocator(Region!GCAllocator(1024), GCAllocator.instance)); in version() 509 import std.experimental.allocator.building_blocks.region : Region; 512 alias A = FallbackAllocator!(Region!(), Region!()); [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | RegionPass.h | 47 virtual bool runOnRegion(Region *R, RGPassManager &RGM) = 0; 61 virtual bool doInitialization(Region *R, RGPassManager &RGM) { return false; } in doInitialization() 82 bool skipRegion(Region &R) const; 87 std::deque<Region*> RQ; 89 Region *CurrentRegion;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 166 RegInfo(Region *RegionIn) : R(RegionIn), HasBranch(false) {} in RegInfo() 167 Region *R; 172 typedef DenseMap<Region *, DenseSet<Instruction *>> HoistStopMapTy; 184 Region *getParentRegion() { in getParentRegion() 186 Region *Parent = RegInfos[0].R->getParent(); in getParentRegion() 209 Region *LastRegion = RegInfos.back().R; in appendable() 244 CHRScope *split(Region *Boundary) { in split() 253 DenseSet<Region *> TailRegionSet; in split() 260 Region *Parent = Sub->getParentRegion(); in split() 299 DenseSet<Region *> TrueBiasedRegions; [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | StructurizeCFG.cpp | 123 static NodeRef getEntryNode(Region *R) { in getEntryNode() 124 return {GraphTraits<Region *>::getEntryNode(R), nullptr}; in getEntryNode() 246 Region *ParentRegion; 313 void init(Region *R); 314 bool run(Region *R, DominatorTree *DT); 315 bool makeUniformRegion(Region *R, LegacyDivergenceAnalysis *DA); 331 bool runOnRegion(Region *R, RGPassManager &RGM) override { in runOnRegion() 373 Order.resize(std::distance(GraphTraits<Region *>::nodes_begin(ParentRegion), in INITIALIZE_PASS_DEPENDENCY() 374 GraphTraits<Region *>::nodes_end(ParentRegion))); in INITIALIZE_PASS_DEPENDENCY() 429 BasicBlock *Exit = N->getNodeAs<Region>()->getExit(); in analyzeLoops() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 295 for (const auto &Region : SourceRegions) { in gatherFileIDs() local 296 SourceLocation Loc = Region.getBeginLoc(); in gatherFileIDs() 389 auto Region = CounterMappingRegion::makeSkipped( in gatherSkippedRegions() local 394 if (Region.LineStart >= FileLineRanges[*CovFileID].first && in gatherSkippedRegions() 395 Region.LineEnd <= FileLineRanges[*CovFileID].second) in gatherSkippedRegions() 396 MappingRegions.push_back(Region); in gatherSkippedRegions() 403 for (const auto &Region : SourceRegions) { in emitSourceRegions() local 404 assert(Region.hasEndLoc() && "incomplete region"); in emitSourceRegions() 406 SourceLocation LocStart = Region.getBeginLoc(); in emitSourceRegions() 418 SourceLocation LocEnd = Region.getEndLoc(); in emitSourceRegions() [all …]
|