/external/llvm-project/llvm/tools/llvm-mca/ |
D | CodeRegion.cpp | 21 Regions.emplace_back(std::make_unique<CodeRegion>("", SMLoc())); in CodeRegions() 36 if (Regions.size() == 1 && !Regions[0]->startLoc().isValid() && in beginRegion() 37 !Regions[0]->endLoc().isValid()) { in beginRegion() 39 Regions[0] = std::make_unique<CodeRegion>(Description, Loc); in beginRegion() 45 const CodeRegion &R = *Regions[It->second]; in beginRegion() 64 ActiveRegions[Description] = Regions.size(); in beginRegion() 65 Regions.emplace_back(std::make_unique<CodeRegion>(Description, Loc)); in beginRegion() 77 Regions[It->second]->setEndLocation(Loc); in endRegion() 83 if (ActiveRegions.empty() && Regions.size() == 1 && in endRegion() 84 !Regions[0]->startLoc().isValid() && !Regions[0]->endLoc().isValid()) { in endRegion() [all …]
|
D | CodeRegionGenerator.cpp | 35 CodeRegions &Regions; member in llvm::mca::MCACommentConsumer 37 MCACommentConsumer(CodeRegions &R) : Regions(R) {} in MCACommentConsumer() 43 CodeRegions &Regions; member in llvm::mca::MCStreamerWrapper 47 : MCStreamer(Context), Regions(R) {} in MCStreamerWrapper() 52 Regions.addInstruction(Inst); in emitInstruction() 71 return Regions.getInstructionSequence(Index); in GetInstructionSequence() 93 Regions.endRegion(Comment, Loc); in HandleComment() 106 Regions.beginRegion(Comment, Loc); in HandleComment() 112 MCStreamerWrapper Str(Ctx, Regions); in parseCodeRegions() 117 createMCAsmParser(Regions.getSourceMgr(), Ctx, Str, MAI)); in parseCodeRegions() [all …]
|
D | CodeRegion.h | 91 std::vector<UniqueCodeRegion> Regions; variable 104 iterator begin() { return Regions.begin(); } in begin() 105 iterator end() { return Regions.end(); } in end() 106 const_iterator begin() const { return Regions.cbegin(); } in begin() 107 const_iterator end() const { return Regions.cend(); } in end() 115 return Regions[Idx]->getInstructions(); in getInstructionSequence() 119 return llvm::all_of(Regions, [](const UniqueCodeRegion &Region) { in empty()
|
/external/llvm/lib/CodeGen/ |
D | SafeStackLayout.cpp | 26 for (unsigned i = 0; i < Regions.size(); ++i) { in print() 27 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End in print() 28 << "), range " << Regions[i].Range << "\n"; in print() 51 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 54 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 65 for (const StackRegion &R : Regions) { in layoutObject() 87 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 93 Regions.emplace_back(LastRegionEnd, Start, StackColoring::LiveRange()); in layoutObject() 98 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject() 103 for (unsigned i = 0; i < Regions.size(); ++i) { in layoutObject() [all …]
|
D | SafeStackLayout.h | 31 SmallVector<StackRegion, 16> Regions; variable 58 unsigned getFrameSize() { return Regions.empty() ? 0 : Regions.back().End; } in getFrameSize()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | SafeStackLayout.cpp | 31 for (unsigned i = 0; i < Regions.size(); ++i) { in print() 32 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End in print() 33 << "), range " << Regions[i].Range << "\n"; in print() 57 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 60 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 71 for (const StackRegion &R : Regions) { in layoutObject() 93 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 99 Regions.emplace_back(LastRegionEnd, Start, StackColoring::LiveRange()); in layoutObject() 104 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject() 109 for (unsigned i = 0; i < Regions.size(); ++i) { in layoutObject() [all …]
|
D | SafeStackLayout.h | 38 SmallVector<StackRegion, 16> Regions; variable 71 unsigned getFrameSize() { return Regions.empty() ? 0 : Regions.back().End; } in getFrameSize()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | SafeStackLayout.cpp | 30 for (unsigned i = 0; i < Regions.size(); ++i) { in print() 31 OS << " " << i << ": [" << Regions[i].Start << ", " << Regions[i].End in print() 32 << "), range " << Regions[i].Range << "\n"; in print() 56 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 59 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 70 for (const StackRegion &R : Regions) { in layoutObject() 92 unsigned LastRegionEnd = Regions.empty() ? 0 : Regions.back().End; in layoutObject() 98 Regions.emplace_back(LastRegionEnd, Start, StackLifetime::LiveRange(0)); in layoutObject() 103 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject() 108 for (unsigned i = 0; i < Regions.size(); ++i) { in layoutObject() [all …]
|
D | SafeStackLayout.h | 38 SmallVector<StackRegion, 16> Regions; variable 71 unsigned getFrameSize() { return Regions.empty() ? 0 : Regions.back().End; } in getFrameSize()
|
/external/oss-fuzz/infra/base-images/base-runner/gocoverage/gocovsum/ |
D | gocovsum.go | 26 Regions CoverageTotal `json:"regions,omitempty"` member 64 s.Regions.Percent = float64(100*s.Regions.Covered) / float64(s.Regions.Count) 116 fileCov.Summary.Regions.Count++ 118 fileCov.Summary.Regions.Covered++ 120 fileCov.Summary.Regions.Uncovered++ 130 r.Data[0].Totals.Regions.Count += fileCov.Summary.Regions.Count 131 r.Data[0].Totals.Regions.Covered += fileCov.Summary.Regions.Covered 132 r.Data[0].Totals.Regions.Uncovered += fileCov.Summary.Regions.Uncovered
|
/external/llvm/unittests/ProfileData/ |
D | CoverageMappingTest.cpp | 56 std::vector<CounterMappingRegion> Regions; member 63 Record.MappingRegions = Regions; in fillCoverageMappingRecord() 94 std::vector<CounterMappingRegion> Regions; member 146 InputFunctions.back().Regions.push_back(CounterMappingRegion::makeRegion( in addCMR() 152 InputFunctions.back().Regions.push_back(CounterMappingRegion::makeExpansion( in addExpansionCMR() 163 CoverageMappingWriter(FileIDs, None, Data.Regions).write(OS); in writeCoverageRegions() 174 Expressions, Data.Regions); in readCoverageRegions() 181 std::string Regions = writeCoverageRegions(InputFunctions[I]); in writeAndReadCoverageRegions() local 182 readCoverageRegions(Regions, OutputFunctions[I]); in writeAndReadCoverageRegions() 231 size_t N = makeArrayRef(Input.Regions).size(); in TEST_P() [all …]
|
/external/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 325 void buildSegmentsImpl(ArrayRef<CountedRegion> Regions) { in buildSegmentsImpl() argument 326 for (const auto &Region : Regions) { in buildSegmentsImpl() 341 static void sortNestedRegions(MutableArrayRef<CountedRegion> Regions) { in sortNestedRegions() argument 342 std::sort(Regions.begin(), Regions.end(), [](const CountedRegion &LHS, in sortNestedRegions() 365 combineRegions(MutableArrayRef<CountedRegion> Regions) { in combineRegions() argument 366 if (Regions.empty()) in combineRegions() 367 return Regions; in combineRegions() 368 auto Active = Regions.begin(); in combineRegions() 369 auto End = Regions.end(); in combineRegions() 370 for (auto I = Regions.begin() + 1; I != End; ++I) { in combineRegions() [all …]
|
/external/llvm-project/llvm/unittests/ProfileData/ |
D | CoverageMappingTest.cpp | 64 std::vector<CounterMappingRegion> Regions; member 70 Regions(std::move(OFCD.Regions)) {} in OutputFunctionCoverageData() 82 Record.MappingRegions = Regions; in fillCoverageMappingRecord() 113 std::vector<CounterMappingRegion> Regions; member 121 Regions(std::move(IFCD.Regions)) {} in InputFunctionCoverageData() 177 auto &Regions = InputFunctions.back().Regions; in addCMR() local 179 Regions.push_back( in addCMR() 186 InputFunctions.back().Regions.push_back(CounterMappingRegion::makeExpansion( in addExpansionCMR() 197 CoverageMappingWriter(FileIDs, None, Data.Regions).write(OS); in writeCoverageRegions() 208 Expressions, Data.Regions); in readCoverageRegions() [all …]
|
/external/llvm-project/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 466 void buildSegmentsImpl(ArrayRef<CountedRegion> Regions) { in buildSegmentsImpl() argument 467 for (const auto &CR : enumerate(Regions)) { in buildSegmentsImpl() 489 (CR.index() + 1) == Regions.size() || in buildSegmentsImpl() 499 if (CR.index() + 1 == Regions.size() || in buildSegmentsImpl() 500 CurStartLoc != Regions[CR.index() + 1].startLoc()) { in buildSegmentsImpl() 516 static void sortNestedRegions(MutableArrayRef<CountedRegion> Regions) { in sortNestedRegions() argument 517 llvm::sort(Regions, [](const CountedRegion &LHS, const CountedRegion &RHS) { in sortNestedRegions() 539 combineRegions(MutableArrayRef<CountedRegion> Regions) { in combineRegions() argument 540 if (Regions.empty()) in combineRegions() 541 return Regions; in combineRegions() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/ |
D | CoverageMapping.cpp | 465 void buildSegmentsImpl(ArrayRef<CountedRegion> Regions) { in buildSegmentsImpl() argument 466 for (const auto &CR : enumerate(Regions)) { in buildSegmentsImpl() 487 const bool Skipped = (CR.index() + 1) == Regions.size(); in buildSegmentsImpl() 492 if (CR.index() + 1 == Regions.size() || in buildSegmentsImpl() 493 CurStartLoc != Regions[CR.index() + 1].startLoc()) { in buildSegmentsImpl() 509 static void sortNestedRegions(MutableArrayRef<CountedRegion> Regions) { in sortNestedRegions() argument 510 llvm::sort(Regions, [](const CountedRegion &LHS, const CountedRegion &RHS) { in sortNestedRegions() 532 combineRegions(MutableArrayRef<CountedRegion> Regions) { in combineRegions() argument 533 if (Regions.empty()) in combineRegions() 534 return Regions; in combineRegions() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | GCNSchedStrategy.cpp | 307 Regions.push_back(std::make_pair(RegionBegin, RegionEnd)); in schedule() 330 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd); in schedule() 427 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd); in schedule() 453 for (size_t E = Regions.size(); CurRegion != E; ++CurRegion) in computeBlockPressure() 454 if (Regions[CurRegion].first->getParent() != MBB) in computeBlockPressure() 465 auto &Rgn = Regions[CurRegion]; in computeBlockPressure() 476 if (Regions[CurRegion].first == I) { in computeBlockPressure() 481 if (Regions[CurRegion].second == I) { in computeBlockPressure() 503 assert(!Regions.empty()); in getBBLiveInMap() 505 BBStarters.reserve(Regions.size()); in getBBLiveInMap() [all …]
|
D | GCNIterativeScheduler.cpp | 116 for (const auto R : Regions) { in printRegions() 310 Regions.push_back( in enterRegion() 320 if (!Regions.empty() && Regions.back()->Begin == RegionBegin) { in schedule() 322 Regions.back()->MaxPressure.print( in schedule() 329 if (Regions.empty()) in finalizeSchedule() 441 llvm::sort(Regions, [&ST, TargetOcc](const Region *R1, const Region *R2) { in sortRegionsByPressure() 458 const auto Occ = Regions.front()->MaxPressure.getOccupancy(ST); in tryMaximizeOccupancy() 463 for (auto R : Regions) { in tryMaximizeOccupancy() 499 auto Occ = Regions.front()->MaxPressure.getOccupancy(ST); in scheduleLegacyMaxOccupancy() 519 for (auto R : Regions) { in scheduleLegacyMaxOccupancy() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | GCNSchedStrategy.cpp | 327 Regions.push_back(std::make_pair(RegionBegin, RegionEnd)); in schedule() 350 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd); in schedule() 438 Regions[RegionIdx] = std::make_pair(RegionBegin, RegionEnd); in schedule() 464 for (size_t E = Regions.size(); CurRegion != E; ++CurRegion) in computeBlockPressure() 465 if (Regions[CurRegion].first->getParent() != MBB) in computeBlockPressure() 476 auto &Rgn = Regions[CurRegion]; in computeBlockPressure() 487 if (Regions[CurRegion].first == I) { in computeBlockPressure() 492 if (Regions[CurRegion].second == I) { in computeBlockPressure() 514 assert(!Regions.empty()); in getBBLiveInMap() 516 BBStarters.reserve(Regions.size()); in getBBLiveInMap() [all …]
|
D | GCNIterativeScheduler.cpp | 111 for (const auto R : Regions) { in printRegions() 305 Regions.push_back( in enterRegion() 315 if (!Regions.empty() && Regions.back()->Begin == RegionBegin) { in schedule() 317 Regions.back()->MaxPressure.print( in schedule() 324 if (Regions.empty()) in finalizeSchedule() 436 llvm::sort(Regions, [&ST, TargetOcc](const Region *R1, const Region *R2) { in sortRegionsByPressure() 453 const auto Occ = Regions.front()->MaxPressure.getOccupancy(ST); in tryMaximizeOccupancy() 458 for (auto R : Regions) { in tryMaximizeOccupancy() 494 auto Occ = Regions.front()->MaxPressure.getOccupancy(ST); in scheduleLegacyMaxOccupancy() 514 for (auto R : Regions) { in scheduleLegacyMaxOccupancy() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | LoopWidening.cpp | 54 const MemRegion *Regions[] = {MRMgr.getStackLocalsRegion(STC), in getWidenedLoopState() local 58 for (auto *Region : Regions) { in getWidenedLoopState() 62 return PrevState->invalidateRegions(Regions, getLoopCondition(LoopStmt), in getWidenedLoopState()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerTracePC.h | 146 Region *Regions; member 148 uint8_t *Start() { return Regions[0].Start; } in Start() 149 uint8_t *Stop() { return Regions[NumRegions - 1].Stop; } in Stop() 165 CB(Modules[m].Regions[r]); in IterateCounterRegions() 253 if (!Modules[i].Regions[r].Enabled) continue; in CollectFeatures() 254 FirstFeature += 8 * ForEachNonZeroByte(Modules[i].Regions[r].Start, in CollectFeatures() 255 Modules[i].Regions[r].Stop, in CollectFeatures()
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerTracePC.h | 146 Region *Regions; member 148 uint8_t *Start() { return Regions[0].Start; } in Start() 149 uint8_t *Stop() { return Regions[NumRegions - 1].Stop; } in Stop() 165 CB(Modules[m].Regions[r]); in IterateCounterRegions() 253 if (!Modules[i].Regions[r].Enabled) continue; in CollectFeatures() 254 FirstFeature += 8 * ForEachNonZeroByte(Modules[i].Regions[r].Start, in CollectFeatures() 255 Modules[i].Regions[r].Stop, in CollectFeatures()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | LoopWidening.cpp | 60 const MemRegion *Regions[] = {MRMgr.getStackLocalsRegion(STC), in getWidenedLoopState() local 64 for (auto *Region : Regions) { in getWidenedLoopState() 95 return PrevState->invalidateRegions(Regions, getLoopCondition(LoopStmt), in getWidenedLoopState()
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | HotColdSplitting.cpp | 417 std::vector<OutliningRegion> Regions; in create() local 420 Regions.emplace_back(); in create() 421 OutliningRegion *ColdRegion = &Regions.back(); in create() 444 return Regions; in create() 477 return Regions; in create() 480 Regions.emplace_back(); in create() 481 ColdRegion = &Regions.back(); in create() 512 return Regions; in create() 608 auto Regions = OutliningRegion::create(*BB, *DT, *PDT); in outlineColdRegions() local 609 for (OutliningRegion &Region : Regions) { in outlineColdRegions()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | HotColdSplitting.cpp | 403 std::vector<OutliningRegion> Regions; in create() local 406 Regions.emplace_back(); in create() 407 OutliningRegion *ColdRegion = &Regions.back(); in create() 430 return Regions; in create() 462 Regions.emplace_back(); in create() 463 ColdRegion = &Regions.back(); in create() 494 return Regions; in create() 590 auto Regions = OutliningRegion::create(*BB, *DT, *PDT); in outlineColdRegions() local 591 for (OutliningRegion &Region : Regions) { in outlineColdRegions()
|