| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | primary64.h | 202 RegionInfo *Region = getRegionInfo(ClassId); in getRegionBaseByClassId() local 203 Region->MMLock.assertHeld(); in getRegionBaseByClassId() 206 !Region->MemMapInfo.MemMap.isAllocated()) { in getRegionBaseByClassId() 209 return Region->MemMapInfo.MemMap.getBase(); in getRegionBaseByClassId() 234 ALWAYS_INLINE void initRegion(RegionInfo *Region, uptr ClassId, 236 REQUIRES(Region->MMLock); 239 RegionInfo *Region, CompactPtrT *Array, u32 Size, 240 bool SameGroup = false) REQUIRES(Region->FLLock); 243 void pushBatchClassBlocks(RegionInfo *Region, CompactPtrT *Array, u32 Size) 244 REQUIRES(Region->FLLock); [all …]
|
| H A D | release.h | 265 uptr get(uptr Region, uptr I) const { in get() argument 266 DCHECK_LT(Region, Regions); in get() 270 return (Buffer.Data[Region * SizePerRegion + Index] >> BitOffset) & in get() 274 void inc(uptr Region, uptr I) const { in inc() argument 275 DCHECK_LT(get(Region, I), CounterMask); in inc() 279 DCHECK_EQ(isAllCounted(Region, I), false); in inc() 280 Buffer.Data[Region * SizePerRegion + Index] += static_cast<uptr>(1U) in inc() 284 void incN(uptr Region, uptr I, uptr N) const { in incN() argument 287 DCHECK_LE(get(Region, I), CounterMask - N); in incN() 291 DCHECK_EQ(isAllCounted(Region, I), false); in incN() [all …]
|
| /freebsd/sys/contrib/dev/acpica/components/events/ |
| H A D | evregion.c | 289 HandlerDesc = RegionObj->Region.Handler; in AcpiEvAddressSpaceDispatch() 294 AcpiUtGetNodeName (RegionObj->Region.Node), in AcpiEvAddressSpaceDispatch() 295 RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); in AcpiEvAddressSpaceDispatch() 308 if (!(RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE)) in AcpiEvAddressSpaceDispatch() 319 RegionObj, AcpiUtGetRegionName (RegionObj->Region.SpaceId))); in AcpiEvAddressSpaceDispatch() 323 if (FieldObj && RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM) in AcpiEvAddressSpaceDispatch() 328 Ctx->Length = (UINT16) RegionObj->Region.Length; in AcpiEvAddressSpaceDispatch() 329 Ctx->SubspaceId = (UINT8) RegionObj->Region.Address; in AcpiEvAddressSpaceDispatch() 332 if (RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE) in AcpiEvAddressSpaceDispatch() 336 Ctx->Length = RegionObj->Region.Length; in AcpiEvAddressSpaceDispatch() [all …]
|
| H A D | evrgnini.c | 223 LocalRegionContext->Length = RegionDesc->Region.Length; in AcpiEvSystemMemoryRegionSetup() 224 LocalRegionContext->Address = RegionDesc->Region.Address; in AcpiEvSystemMemoryRegionSetup() 306 HandlerObj = RegionObj->Region.Handler; in AcpiEvPciConfigRegionSetup() 328 ParentNode = RegionObj->Region.Node->Parent; in AcpiEvPciConfigRegionSetup() 395 if (RegionObj->Region.Flags & AOPOBJ_SETUP_COMPLETE) in AcpiEvPciConfigRegionSetup() 415 PciDeviceNode = RegionObj->Region.Node; in AcpiEvPciConfigRegionSetup() 464 Status = AcpiHwDerivePciId (PciId, PciRootNode, RegionObj->Region.Node); in AcpiEvPciConfigRegionSetup() 653 LocalRegionContext->Pointer = RegionDesc->Region.Pointer; in AcpiEvDataTableRegionSetup() 761 Node = RegionObj->Region.Node->Parent; in AcpiEvInitializeRegion() 762 SpaceId = RegionObj->Region.SpaceId; in AcpiEvInitializeRegion()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | IROutliner.cpp | 550 collectRegionsConstants(OutlinableRegion &Region, in collectRegionsConstants() argument 555 IRSimilarityCandidate &C = *Region.Candidate; in collectRegionsConstants() 602 for (OutlinableRegion *Region : Regions) in findSameConstants() 603 collectRegionsConstants(*Region, GVNToConstant, NotSame); in findSameConstants() 851 OutlinableRegion &Region, std::vector<unsigned> &InputGVNs, in getCodeExtractorArguments() argument 854 IRSimilarityCandidate &C = *Region.Candidate; in getCodeExtractorArguments() 870 CodeExtractor *CE = Region.CE; in getCodeExtractorArguments() 872 assert(Region.StartBB && "Region must have a start BasicBlock!"); in getCodeExtractorArguments() 873 Function *OrigF = Region.StartBB->getParent(); in getCodeExtractorArguments() 880 Region.IgnoreRegion = true; in getCodeExtractorArguments() [all …]
|
| H A D | HotColdSplitting.cpp | 284 static InstructionCost getOutliningBenefit(ArrayRef<BasicBlock *> Region, in getOutliningBenefit() argument 289 for (BasicBlock *BB : Region) in getOutliningBenefit() 299 static int getOutliningPenalty(ArrayRef<BasicBlock *> Region, in getOutliningPenalty() argument 313 for (BasicBlock *BB : Region) { in getOutliningPenalty() 322 if (!is_contained(Region, SuccBB)) { in getOutliningPenalty() 340 if (llvm::is_contained(Region, PN.getIncomingBlock(i))) { in getOutliningPenalty() 373 LLVM_DEBUG(dbgs() << "Applying bonus for: " << Region.size() in getOutliningPenalty() 375 Penalty -= Region.size(); in getOutliningPenalty() 391 const BlockSequence &Region, in isSplittingBeneficial() argument 393 assert(!Region.empty()); in isSplittingBeneficial() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Region.cpp | 35 Region::Region(Context &Ctx, TargetTransformInfo &TTI) in Region() function in llvm::sandboxir::Region 49 Region::~Region() { in ~Region() 54 void Region::addImpl(Instruction *I, bool IgnoreCost) { in addImpl() 63 void Region::setAux(ArrayRef<Instruction *> Aux) { in setAux() 78 void Region::setAux(unsigned Idx, Instruction *I) { in setAux() 94 void Region::dropAuxMetadata(Instruction *I) { in dropAuxMetadata() 99 void Region::removeFromAux(Instruction *I) { in removeFromAux() 107 void Region::clearAux() { in clearAux() 113 void Region::remove(Instruction *I) { in remove() 123 bool Region::operator==(const Region &Other) const { in operator ==() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MoveChecker.cpp | 162 : Chk(Chk), Region(R), RD(RD), MK(MK), Found(false) {} in MovedBugVisitor() 167 ID.AddPointer(Region); in Profile() 181 const MemRegion *Region; member in __anona0b2285a0211::MoveChecker::MovedBugVisitor 212 void modelUse(ProgramStateRef State, const MemRegion *Region, 219 ExplodedNode *tryToReportBug(const MemRegion *Region, const CXXRecordDecl *RD, 226 const MemRegion *Region, 237 bool isMovedFrom(ProgramStateRef State, const MemRegion *Region) { in isMovedFrom() argument 238 const RegionState *RS = State->get<TrackedRegionMap>(Region); in isMovedFrom() 247 const MemRegion *Region) { in removeFromState() argument 248 if (!Region) in removeFromState() [all …]
|
| H A D | NullabilityChecker.cpp | 142 NullabilityBugVisitor(const MemRegion *M) : Region(M) {} in NullabilityBugVisitor() 147 ID.AddPointer(Region); in Profile() 156 const MemRegion *Region; member in __anon414b416c0111::NullabilityChecker::NullabilityBugVisitor 166 const MemRegion *Region, CheckerContext &C, 171 ExplodedNode *N, const MemRegion *Region, BugReporter &BR, in reportBug() argument 174 if (Region) { in reportBug() 175 R->markInteresting(Region); in reportBug() 176 R->addVisitor<NullabilityBugVisitor>(Region); in reportBug() 323 const MemRegion *Region = RegionSVal->getRegion(); in getTrackRegion() local 326 if (const SubRegion *FieldReg = Region->getAs<FieldRegion>()) { in getTrackRegion() [all …]
|
| H A D | StackAddrEscapeChecker.cpp | 144 if (const MemRegion *Region = Val.getAsRegion()) { in getCapturedStackRegions() local 146 Region->getMemorySpaceAs<StackSpaceRegion>(State)) { in getCapturedStackRegions() 147 Regions.emplace_back(Region, Space); in getCapturedStackRegions() 206 for (const MemRegion *Region : llvm::make_first_range(Regions)) { in checkAsyncExecutedBlockCaptures() local 213 if (isa<BlockDataRegion>(Region)) in checkAsyncExecutedBlockCaptures() 224 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkAsyncExecutedBlockCaptures() 294 const MemRegion *Region = Val.getAsRegion(); in VisitBlockDataRegionCaptures() local 295 if (Region) { in VisitBlockDataRegionCaptures() 296 SaveIfEscapes(Region); in VisitBlockDataRegionCaptures() 297 VisitMemRegion(Region); in VisitBlockDataRegionCaptures() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
| H A D | CoverageExporterJson.cpp | 89 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion() argument 90 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion() 91 Region.ColumnEnd, clamp_uint64_to_int64(Region.ExecutionCount), in renderRegion() 92 Region.FileID, Region.ExpandedFileID, in renderRegion() 93 int64_t(Region.Kind)}); in renderRegion() 96 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch() argument 98 {Region.LineStart, Region.ColumnStart, Region.LineEnd, Region.ColumnEnd, in renderBranch() 99 clamp_uint64_to_int64(Region.ExecutionCount), in renderBranch() 100 clamp_uint64_to_int64(Region.FalseExecutionCount), Region.FileID, in renderBranch() 101 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(); 306 void addExpansion(const CounterMappingRegion &Region,
|
| H A D | CoverageExporterLcov.cpp | 60 NestedCountedRegion(llvm::coverage::CountedRegion Region, in NestedCountedRegion() 62 : llvm::coverage::CountedRegion(std::move(Region)), in NestedCountedRegion() 108 NestedPath.push_back(Expansion.Region.startLoc()); in collectNestedBranches() 132 auto Unfolded = make_filter_range(Src, [](auto &Region) { in appendNestedCountedRegions() argument 133 return !Region.TrueFolded || !Region.FalseFolded; in appendNestedCountedRegions() 138 [=, &PositionCounter](auto &Region) { in appendNestedCountedRegions() argument 139 return NestedCountedRegion(Region, {Region.startLoc()}, in appendNestedCountedRegions()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Region.h | 23 class Region; variable 26 const Region &Rgn; 40 ScoreBoard(Region &Rgn, TargetTransformInfo &TTI) : Rgn(Rgn), TTI(TTI) {} in ScoreBoard() 96 class Region { 145 LLVM_ABI Region(Context &Ctx, TargetTransformInfo &TTI); 146 LLVM_ABI ~Region(); 165 LLVM_ABI static SmallVector<std::unique_ptr<Region>> 172 bool operator==(const Region &Other) const; 173 bool operator!=(const Region &other) const { return !(*this == other); } 177 friend raw_ostream &operator<<(raw_ostream &OS, const Region &Rgn) { [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | GCNIterativeScheduler.h | 60 struct Region { struct 73 SpecificBumpPtrAllocator<Region> Alloc; argument 74 std::vector<Region*> Regions; 86 GCNRegPressure getSchedulePressure(const Region &R, 92 GCNRegPressure getRegionPressure(const Region &R) const { in getRegionPressure() 96 void swapIGLPMutations(const Region &R, bool IsReentry); 97 void setBestSchedule(Region &R, 101 void scheduleBest(Region &R); 108 void scheduleRegion(Region &R, Range &&Schedule, 120 const Region *R,
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | RegionInfo.cpp | 48 static cl::opt<Region::PrintStyle, true> printStyleX("print-region-style", 53 clEnumValN(Region::PrintNone, "none", "print no details"), 54 clEnumValN(Region::PrintBB, "bb", 56 clEnumValN(Region::PrintRN, "rn", 63 Region::Region(BasicBlock *Entry, BasicBlock *Exit, in Region() function in Region 65 DominatorTree *DT, Region *Parent) : in Region() 70 Region::~Region() = default; 89 void RegionInfo::updateStatistics(Region *R) { in updateStatistics() 103 TopLevelRegion = new Region(&F.getEntryBlock(), nullptr, in recalculate()
|
| /freebsd/sys/contrib/dev/acpica/components/executer/ |
| H A D | exfield.c | 296 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || in AcpiExReadDataFromField() 297 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || in AcpiExReadDataFromField() 298 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_IPMI || in AcpiExReadDataFromField() 299 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_RT || in AcpiExReadDataFromField() 300 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE)) in AcpiExReadDataFromField() 352 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) in AcpiExReadDataFromField() 360 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_PLATFORM_COMM)) in AcpiExReadDataFromField() 462 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GPIO)) in AcpiExWriteDataToField() 470 (ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_SMBUS || in AcpiExWriteDataToField() 471 ObjDesc->Field.RegionObj->Region.SpaceId == ACPI_ADR_SPACE_GSBUS || in AcpiExWriteDataToField() [all …]
|
| H A D | exfldio.c | 225 SpaceId = RgnDesc->Region.SpaceId; in AcpiExSetupRegion() 281 if (RgnDesc->Region.Length < in AcpiExSetupRegion() 292 if (ACPI_ROUND_UP (RgnDesc->Region.Length, in AcpiExSetupRegion() 302 if (RgnDesc->Region.Length < ObjDesc->CommonField.AccessByteWidth) in AcpiExSetupRegion() 314 AcpiUtGetNodeName (RgnDesc->Region.Node), in AcpiExSetupRegion() 315 RgnDesc->Region.Length)); in AcpiExSetupRegion() 328 AcpiUtGetNodeName (RgnDesc->Region.Node), in AcpiExSetupRegion() 329 RgnDesc->Region.Length)); in AcpiExSetupRegion() 404 AcpiUtGetRegionName (RgnDesc->Region.SpaceId), in AcpiExAccessRegion() 405 RgnDesc->Region.SpaceId, in AcpiExAccessRegion() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | RegionPass.h | 26 class Region; variable 49 virtual bool runOnRegion(Region *R, RGPassManager &RGM) = 0; 63 virtual bool doInitialization(Region *R, RGPassManager &RGM) { return false; } in doInitialization() 84 bool skipRegion(Region &R) const; 89 std::deque<Region*> RQ; 91 Region *CurrentRegion;
|
| /freebsd/sys/contrib/dev/acpica/components/dispatcher/ |
| H A D | dsopcode.c | 575 ObjDesc->Region.Length = (UINT32) OperandDesc->Integer.Value; in AcpiDsEvalRegionOperands() 580 if (!ObjDesc->Region.Length && (SpaceId < ACPI_NUM_PREDEFINED_REGIONS)) in AcpiDsEvalRegionOperands() 593 ObjDesc->Region.Address = (ACPI_PHYSICAL_ADDRESS) in AcpiDsEvalRegionOperands() 598 ObjDesc, ACPI_FORMAT_UINT64 (ObjDesc->Region.Address), in AcpiDsEvalRegionOperands() 599 ObjDesc->Region.Length)); in AcpiDsEvalRegionOperands() 601 Status = AcpiUtAddAddressRange (ObjDesc->Region.SpaceId, in AcpiDsEvalRegionOperands() 602 ObjDesc->Region.Address, ObjDesc->Region.Length, Node); in AcpiDsEvalRegionOperands() 606 ObjDesc->Region.Flags |= AOPOBJ_DATA_VALID; in AcpiDsEvalRegionOperands() 708 ObjDesc->Region.Address = ACPI_PTR_TO_PHYSADDR (Table); in AcpiDsEvalTableRegionOperands() 709 ObjDesc->Region.Length = Table->Length; in AcpiDsEvalTableRegionOperands() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanVerifier.cpp | 53 bool verifyBlocksInRegion(const VPRegionBlock *Region); 57 bool verifyRegion(const VPRegionBlock *Region); 61 bool verifyRegionRec(const VPRegionBlock *Region); 389 bool VPlanVerifier::verifyBlocksInRegion(const VPRegionBlock *Region) { in verifyBlocksInRegion() argument 390 for (const VPBlockBase *VPB : vp_depth_first_shallow(Region->getEntry())) { in verifyBlocksInRegion() 392 if (VPB->getParent() != Region) { in verifyBlocksInRegion() 403 bool VPlanVerifier::verifyRegion(const VPRegionBlock *Region) { in verifyRegion() argument 404 const VPBlockBase *Entry = Region->getEntry(); in verifyRegion() 405 const VPBlockBase *Exiting = Region->getExiting(); in verifyRegion() 417 return verifyBlocksInRegion(Region); in verifyRegion() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | PipelinePrinter.cpp | 23 if (!Region.getDescription().empty()) in printRegionHeader() 24 RegionName = Region.getDescription(); in printRegionHeader() 36 if (!Region.getDescription().empty()) in getJSONReportRegion() 37 RegionName = Region.getDescription(); in getJSONReportRegion() 121 if (Region.startLoc().isValid() || Region.endLoc().isValid()) in printReport()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | ControlHeightReduction.cpp | 134 RegInfo(Region *RegionIn) : R(RegionIn) {} in RegInfo() 135 Region *R = nullptr; 140 typedef DenseMap<Region *, DenseSet<Instruction *>> HoistStopMapTy; 152 Region *getParentRegion() { in getParentRegion() 154 Region *Parent = RegInfos[0].R->getParent(); in getParentRegion() 177 Region *LastRegion = RegInfos.back().R; in appendable() 212 CHRScope *split(Region *Boundary) { in split() 221 DenseSet<Region *> TailRegionSet; in split() 228 Region *Parent = Sub->getParentRegion(); in split() 267 DenseSet<Region *> TrueBiasedRegions; [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/ |
| H A D | CIRLoopOpInterface.td | 30 /*retTy=*/"mlir::Region &", 36 /*retTy=*/"mlir::Region &", 42 /*retTy=*/"mlir::Region *", 51 /*retTy=*/"mlir::Region &", 60 /*retTy=*/"llvm::SmallVector<mlir::Region *>", 65 return llvm::SmallVector<mlir::Region *, 2>{&$_op.getRegion(0), &$_op.getRegion(1)};
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 376 for (auto &Region : SourceRegions) { in gatherFileIDs() local 377 SourceLocation Loc = Region.getBeginLoc(); in gatherFileIDs() 384 Region.setStartLoc(Loc); in gatherFileIDs() 385 Region.setEndLoc(EndLoc.value()); in gatherFileIDs() 391 auto EndLoc = SM.getSpellingLoc(Region.getEndLoc()); in gatherFileIDs() 394 Region.setStartLoc(Loc); in gatherFileIDs() 395 Region.setEndLoc(SM.getFileLoc(Region.getEndLoc())); in gatherFileIDs() 497 auto Region = CounterMappingRegion::makeSkipped( in gatherSkippedRegions() local 502 if (Region.LineStart >= FileLineRanges[*CovFileID].first && in gatherSkippedRegions() 503 Region.LineEnd <= FileLineRanges[*CovFileID].second) in gatherSkippedRegions() [all …]
|