Home
last modified time | relevance | path

Searched refs:Segments (Results 1 – 25 of 104) sorted by relevance

12345

/external/llvm-project/llvm/unittests/ProfileData/
DCoverageMappingTest.cpp354 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
355 ASSERT_EQ(2U, Segments.size()); in TEST_P()
357 EXPECT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]); in TEST_P()
358 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[1]); in TEST_P()
361 EXPECT_EQ(CoverageSegment(2, 2, 20, true), Segments[0]); in TEST_P()
362 EXPECT_EQ(CoverageSegment(6, 6, false), Segments[1]); in TEST_P()
381 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
383 ASSERT_EQ(2U, Segments.size()); in TEST_P()
384 EXPECT_EQ(CoverageSegment(1, 1, 6, true), Segments[0]); in TEST_P()
385 EXPECT_EQ(CoverageSegment(2, 2, false), Segments[1]); in TEST_P()
[all …]
/external/llvm/unittests/ProfileData/
DCoverageMappingTest.cpp308 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
309 ASSERT_EQ(2U, Segments.size()); in TEST_P()
311 EXPECT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]); in TEST_P()
312 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[1]); in TEST_P()
315 EXPECT_EQ(CoverageSegment(2, 2, 20, true), Segments[0]); in TEST_P()
316 EXPECT_EQ(CoverageSegment(6, 6, false), Segments[1]); in TEST_P()
349 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
350 ASSERT_EQ(7U, Segments.size()); in TEST_P()
351 ASSERT_EQ(CoverageSegment(1, 1, 20, true), Segments[0]); in TEST_P()
352 ASSERT_EQ(CoverageSegment(4, 7, 30, false), Segments[1]); in TEST_P()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h62 LiveSegments Segments; // union of virtual reg segments variable
65 explicit LiveIntervalUnion(Allocator &a) : Segments(a) {} in LiveIntervalUnion()
69 SegmentIter begin() { return Segments.begin(); } in begin()
70 SegmentIter end() { return Segments.end(); } in end()
71 SegmentIter find(SlotIndex x) { return Segments.find(x); } in find()
72 ConstSegmentIter begin() const { return Segments.begin(); } in begin()
73 ConstSegmentIter end() const { return Segments.end(); } in end()
74 ConstSegmentIter find(SlotIndex x) const { return Segments.find(x); } in find()
76 bool empty() const { return Segments.empty(); } in empty()
77 SlotIndex startIndex() const { return Segments.start(); } in startIndex()
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h62 LiveSegments Segments; // union of virtual reg segments variable
65 explicit LiveIntervalUnion(Allocator &a) : Segments(a) {} in LiveIntervalUnion()
69 SegmentIter begin() { return Segments.begin(); } in begin()
70 SegmentIter end() { return Segments.end(); } in end()
71 SegmentIter find(SlotIndex x) { return Segments.find(x); } in find()
72 ConstSegmentIter begin() const { return Segments.begin(); } in begin()
73 ConstSegmentIter end() const { return Segments.end(); } in end()
74 ConstSegmentIter find(SlotIndex x) const { return Segments.find(x); } in find()
76 bool empty() const { return Segments.empty(); } in empty()
77 SlotIndex startIndex() const { return Segments.start(); } in startIndex()
[all …]
/external/llvm/tools/llvm-cov/
DSourceCoverageViewHTML.cpp288 CoverageSegmentArray Segments, unsigned ExpansionCol, unsigned) { in renderLine() argument
307 Snip(LCol - 1, Segments.empty() ? 0 : (Segments.front()->Col - 1)); in renderLine()
309 for (unsigned I = 1, E = Segments.size(); I < E; ++I) { in renderLine()
310 assert(LCol == Segments[I - 1]->Col && "Snippet start position is wrong"); in renderLine()
311 Snip(LCol - 1, Segments[I]->Col - LCol); in renderLine()
337 CheckIfUncovered(Segments.empty() ? nullptr : Segments.front())) { in renderLine()
343 for (unsigned I = 1, E = Segments.size(); I < E; ++I) { in renderLine()
344 const auto *CurSeg = Segments[I]; in renderLine()
361 for (const auto *S : Segments) in renderLine()
369 for (unsigned I = 0, E = Segments.size(); I < E; ++I) { in renderLine()
[all …]
DSourceCoverageViewText.cpp93 CoverageSegmentArray Segments, unsigned ExpansionCol, unsigned ViewDepth) { in renderLine() argument
106 for (const auto *S : Segments) { in renderLine()
164 raw_ostream &OS, CoverageSegmentArray Segments, unsigned ViewDepth) { in renderRegionMarkers() argument
169 for (const auto *S : Segments) { in renderRegionMarkers()
183 for (const auto *S : Segments) in renderRegionMarkers()
190 CoverageSegmentArray Segments, unsigned ExpansionCol, unsigned ViewDepth) { in renderExpansionSite() argument
193 renderLine(OS, L, WrappedSegment, Segments, ExpansionCol, ViewDepth); in renderExpansionSite()
DSourceCoverageViewText.h51 CoverageSegmentArray Segments, unsigned ExpansionCol,
56 CoverageSegmentArray Segments, unsigned ExpansionCol,
70 void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
DSourceCoverageViewHTML.h51 CoverageSegmentArray Segments, unsigned ExpansionCol,
56 CoverageSegmentArray Segments, unsigned ExpansionCol,
70 void renderRegionMarkers(raw_ostream &OS, CoverageSegmentArray Segments,
/external/pdfium/third_party/lcms/src/
Dcmsgamma.c214 cmsUInt32Number nSegments, const cmsCurveSegment* Segments, in AllocateToneCurveStruct() argument
237 p ->Segments = NULL; in AllocateToneCurveStruct()
241 p ->Segments = (cmsCurveSegment*) _cmsCalloc(ContextID, nSegments, sizeof(cmsCurveSegment)); in AllocateToneCurveStruct()
242 if (p ->Segments == NULL) goto Error; in AllocateToneCurveStruct()
271 if (Segments != NULL && (nSegments > 0)) { in AllocateToneCurveStruct()
281 if (Segments[i].Type == 0) in AllocateToneCurveStruct()
282 …p ->SegInterp[i] = _cmsComputeInterpParams(ContextID, Segments[i].nGridPoints, 1, 1, NULL, CMS_LER… in AllocateToneCurveStruct()
284 memmove(&p ->Segments[i], &Segments[i], sizeof(cmsCurveSegment)); in AllocateToneCurveStruct()
286 if (Segments[i].Type == 0 && Segments[i].SampledPoints != NULL) in AllocateToneCurveStruct()
287 …p ->Segments[i].SampledPoints = (cmsFloat32Number*) _cmsDupMem(ContextID, Segments[i].SampledPoint… in AllocateToneCurveStruct()
[all …]
/external/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h63 LiveSegments Segments; // union of virtual reg segments variable
66 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {} in LiveIntervalUnion()
70 SegmentIter begin() { return Segments.begin(); } in begin()
71 SegmentIter end() { return Segments.end(); } in end()
72 SegmentIter find(SlotIndex x) { return Segments.find(x); } in find()
73 bool empty() const { return Segments.empty(); } in empty()
74 SlotIndex startIndex() const { return Segments.start(); } in startIndex()
78 const Map &getMap() { return Segments; } in getMap()
99 void clear() { Segments.clear(); ++Tag; } in clear()
/external/llvm/lib/DebugInfo/CodeView/
DListRecordBuilder.cpp78 SmallVector<StringRef, 1> Segments; in writeListRecord() local
82 Segments.push_back(Data.slice(LastEnd, SegEnd)); in writeListRecord()
85 Segments.push_back(Data.slice(LastEnd, Builder.size())); in writeListRecord()
88 StringRef LastRec = Segments.pop_back_val(); in writeListRecord()
93 for (StringRef Rec : reverse(Segments)) { in writeListRecord()
/external/llvm-project/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp369 std::vector<CoverageSegment> &Segments; member in __anon1e1f61940311::SegmentBuilder
372 SegmentBuilder(std::vector<CoverageSegment> &Segments) : Segments(Segments) {} in SegmentBuilder() argument
384 if (!Segments.empty() && !IsRegionEntry && !EmitSkippedRegion) { in startSegment()
385 const auto &Last = Segments.back(); in startSegment()
392 Segments.emplace_back(StartLoc.first, StartLoc.second, in startSegment()
396 Segments.emplace_back(StartLoc.first, StartLoc.second, IsRegionEntry); in startSegment()
399 const auto &Last = Segments.back(); in startSegment()
575 std::vector<CoverageSegment> Segments; in buildSegments() local
576 SegmentBuilder Builder(Segments); in buildSegments()
592 for (unsigned I = 1, E = Segments.size(); I < E; ++I) { in buildSegments()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp368 std::vector<CoverageSegment> &Segments; member in __anon01d2ff080311::SegmentBuilder
371 SegmentBuilder(std::vector<CoverageSegment> &Segments) : Segments(Segments) {} in SegmentBuilder() argument
383 if (!Segments.empty() && !IsRegionEntry && !EmitSkippedRegion) { in startSegment()
384 const auto &Last = Segments.back(); in startSegment()
391 Segments.emplace_back(StartLoc.first, StartLoc.second, in startSegment()
395 Segments.emplace_back(StartLoc.first, StartLoc.second, IsRegionEntry); in startSegment()
398 const auto &Last = Segments.back(); in startSegment()
568 std::vector<CoverageSegment> Segments; in buildSegments() local
569 SegmentBuilder Builder(Segments); in buildSegments()
585 for (unsigned I = 1, E = Segments.size(); I < E; ++I) { in buildSegments()
[all …]
/external/pdfium/third_party/lcms/
D0027-changes-from-beginning-of-time.patch41 if (Curve ->Segments) {
45 if (Curve ->Segments[i].SampledPoints) {
46 _cmsFree(ContextID, Curve ->Segments[i].SampledPoints);
47 + Curve ->Segments[i].SampledPoints = NULL;
57 _cmsFree(ContextID, Curve ->Segments);
58 + Curve ->Segments = NULL;
81 - if (In == NULL || In ->Segments == NULL || In ->Table16 == NULL) return NULL;
85 + if (In == NULL || In ->InterpParams == NULL || In ->Segments == NULL || In ->Table16 == NULL) …
87 …eStruct(In ->InterpParams ->ContextID, In ->nEntries, In ->nSegments, In ->Segments, In ->Table16);
D0002-old-performance-fix.patch10 + if (In == NULL || In ->Segments == NULL || In ->Table16 == NULL) return NULL;
12 …eStruct(In ->InterpParams ->ContextID, In ->nEntries, In ->nSegments, In ->Segments, In ->Table16);
/external/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp280 std::vector<CoverageSegment> &Segments; member in __anonfbadfb260211::SegmentBuilder
283 SegmentBuilder(std::vector<CoverageSegment> &Segments) : Segments(Segments) {} in SegmentBuilder() argument
288 Segments.emplace_back(Line, Col, /*IsRegionEntry=*/false); in startSegment()
295 if (!Segments.empty() && Segments.back().Line == Line && in startSegment()
296 Segments.back().Col == Col) in startSegment()
297 Segments.pop_back(); in startSegment()
302 Segments.emplace_back(Line, Col, Region.ExecutionCount, IsRegionEntry); in startSegment()
304 Segments.emplace_back(Line, Col, IsRegionEntry); in startSegment()
401 std::vector<CoverageSegment> Segments; in buildSegments() local
402 SegmentBuilder Builder(Segments); in buildSegments()
[all …]
/external/swiftshader/tests/regres/cov/
Dimport.go162 Segments []segment `json:"segments"`
188 for sIdx := 0; sIdx+1 < len(f.Segments); sIdx++ {
189 start := Location{(int)(f.Segments[sIdx][0].(float64)), (int)(f.Segments[sIdx][1].(float64))}
190 end := Location{(int)(f.Segments[sIdx+1][0].(float64)), (int)(f.Segments[sIdx+1][1].(float64))}
191 if covered := f.Segments[sIdx][2].(float64) != 0; covered {
/external/llvm-project/llvm/tools/llvm-cov/
DSourceCoverageViewText.cpp102 CoverageSegmentArray Segments = LCS.getLineSegments(); in renderLine() local
114 for (const auto *S : Segments) { in renderLine()
178 CoverageSegmentArray Segments = Line.getLineSegments(); in renderRegionMarkers() local
181 if (Segments.size() > 1) in renderRegionMarkers()
182 Segments = Segments.drop_back(); in renderRegionMarkers()
185 for (const auto *S : Segments) { in renderRegionMarkers()
DSourceCoverageViewHTML.cpp505 CoverageSegmentArray Segments = LCS.getLineSegments(); in renderLine() local
513 Snip(LCol - 1, Segments.empty() ? 0 : (Segments.front()->Col - 1)); in renderLine()
515 for (unsigned I = 1, E = Segments.size(); I < E; ++I) in renderLine()
516 Snip(LCol - 1, Segments[I]->Col - LCol); in renderLine()
549 for (unsigned I = 0, E = Segments.size(); I < E; ++I) { in renderLine()
550 const auto *CurSeg = Segments[I]; in renderLine()
563 if (Color.hasValue() && Segments.empty()) in renderLine()
582 for (unsigned I = 0, E = Segments.size() - 1; I < E; ++I) { in renderLine()
583 const auto *CurSeg = Segments[I]; in renderLine()
DSourceCoverageView.cpp122 CoverageSegmentArray Segments = LCS.getLineSegments(); in shouldRenderRegionMarkers() local
123 if (Segments.empty()) in shouldRenderRegionMarkers()
125 for (unsigned I = 0, E = Segments.size() - 1; I < E; ++I) { in shouldRenderRegionMarkers()
126 const auto *CurSeg = Segments[I]; in shouldRenderRegionMarkers()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp37 SegmentIter SegPos = Segments.find(RegPos->start); in unify()
64 SegmentIter SegPos = Segments.find(RegPos->start); in extract()
87 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print()
97 for (SegmentIter SI = Segments.begin(); SI.valid(); ++SI) in verify()
/external/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp37 SegmentIter SegPos = Segments.find(RegPos->start); in unify()
64 SegmentIter SegPos = Segments.find(RegPos->start); in extract()
87 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print()
97 for (SegmentIter SI = Segments.begin(); SI.valid(); ++SI) in verify()
/external/llvm-project/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp37 SegmentIter SegPos = Segments.find(RegPos->start); in unify()
64 SegmentIter SegPos = Segments.find(RegPos->start); in extract()
87 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print()
97 for (SegmentIter SI = Segments.begin(); SI.valid(); ++SI) in verify()
/external/llvm-project/clang-tools-extra/clang-include-fixer/
DSymbolIndexManager.cpp37 int Segments = 0; in similarityScore() local
41 ++Segments; in similarityScore()
43 MaxSegments = std::max(Segments, MaxSegments); in similarityScore()
/external/llvm-project/lldb/source/Plugins/Process/minidump/
DRegisterContextMinidump_x86_32.h121 Segments = x86_32_Flag | 0x00000004, enumerator
127 Full = Control | Integer | Segments,

12345