Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ProfileData/
DCoverageMappingTest.cpp355 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
356 ASSERT_EQ(2U, Segments.size()); in TEST_P()
358 EXPECT_EQ(CoverageSegment(1, 1, 10, true), Segments[0]); in TEST_P()
359 EXPECT_EQ(CoverageSegment(5, 5, false), Segments[1]); in TEST_P()
362 EXPECT_EQ(CoverageSegment(2, 2, 20, true), Segments[0]); in TEST_P()
363 EXPECT_EQ(CoverageSegment(6, 6, false), Segments[1]); in TEST_P()
382 std::vector<CoverageSegment> Segments(Data.begin(), Data.end()); in TEST_P() local
384 ASSERT_EQ(2U, Segments.size()); in TEST_P()
385 EXPECT_EQ(CoverageSegment(1, 1, 6, true), Segments[0]); in TEST_P()
386 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-7.0/llvm/include/llvm/CodeGen/
DLiveIntervalUnion.h63 LiveSegments Segments; // union of virtual reg segments variable
66 explicit LiveIntervalUnion(Allocator &a) : 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 ConstSegmentIter begin() const { return Segments.begin(); } in begin()
74 ConstSegmentIter end() const { return Segments.end(); } in end()
75 ConstSegmentIter find(SlotIndex x) const { return Segments.find(x); } in find()
77 bool empty() const { return Segments.empty(); } in empty()
78 SlotIndex startIndex() const { return Segments.start(); } in startIndex()
[all …]
/external/pdfium/third_party/lcms/src/
Dcmsgamma.c213 cmsInt32Number nSegments, const cmsCurveSegment* Segments, in AllocateToneCurveStruct() argument
236 p ->Segments = NULL; in AllocateToneCurveStruct()
240 p ->Segments = (cmsCurveSegment*) _cmsCalloc(ContextID, nSegments, sizeof(cmsCurveSegment)); in AllocateToneCurveStruct()
241 if (p ->Segments == NULL) goto Error; in AllocateToneCurveStruct()
270 if (Segments != NULL && (nSegments > 0)) { in AllocateToneCurveStruct()
280 if (Segments[i].Type == 0) in AllocateToneCurveStruct()
281 …p ->SegInterp[i] = _cmsComputeInterpParams(ContextID, Segments[i].nGridPoints, 1, 1, NULL, CMS_LER… in AllocateToneCurveStruct()
283 memmove(&p ->Segments[i], &Segments[i], sizeof(cmsCurveSegment)); in AllocateToneCurveStruct()
285 if (Segments[i].Type == 0 && Segments[i].SampledPoints != NULL) in AllocateToneCurveStruct()
286 …p ->Segments[i].SampledPoints = (cmsFloat32Number*) _cmsDupMem(ContextID, Segments[i].SampledPoint… in AllocateToneCurveStruct()
[all …]
Dcmstypes.c1144 if (Curve ->nSegments == 1 && Curve ->Segments[0].Type == 1) { in Type_Curve_Write()
1147 cmsUInt16Number SingleGammaFixed = _cmsDoubleTo8Fixed8(Curve ->Segments[0].Params[0]); in Type_Curve_Write()
1197 if (Curve ->Segments[0].Type < 0) return cmsSigCurveType; // Only non-inverted curves in DecideCurveType()
1198 if (Curve ->Segments[0].Type > 5) return cmsSigCurveType; // Only ICC parametric curves in DecideCurveType()
1245 typen = Curve -> Segments[0].Type; in Type_ParametricCurve_Write()
1260 if (!_cmsWriteUInt16Number(io, (cmsUInt16Number) (Curve ->Segments[0].Type - 1))) return FALSE; in Type_ParametricCurve_Write()
1265 if (!_cmsWrite15Fixed16Number(io, Curve -> Segments[0].Params[i])) return FALSE; in Type_ParametricCurve_Write()
2593 ((Curves[i]->nSegments == 2) && (Curves[i] ->Segments[1].Type == 0)) ) in WriteSetOfCurves()
2596 if (Curves[i] ->Segments[0].Type < 0) in WriteSetOfCurves()
3928 cmsCurveSegment* Segments; in ReadSegmentedCurve() local
[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,
DSourceCoverageView.h209 CoverageSegmentArray Segments, unsigned ExpansionCol,
221 CoverageSegmentArray Segments,
228 CoverageSegmentArray Segments, unsigned ExpansionCol,
/external/pdfium/third_party/lcms/
D0017-memory-leak-ReadSegmentedCurve.patch12 Segments[i].nGridPoints = Count;
13Segments[i].SampledPoints = (cmsFloat32Number*) _cmsCalloc(self ->ContextID, Count, sizeof(cmsFloa…
27 - if (Segments) _cmsFree(self ->ContextID, Segments);
28 + if (Segments) {
30 + if (Segments[i].SampledPoints) _cmsFree(self ->ContextID, Segments[i].SampledPoints);
32 + _cmsFree(self ->ContextID, Segments);
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/swiftshader/third_party/LLVM/lib/CodeGen/
DLiveIntervalUnion.h67 LiveSegments Segments; // union of virtual reg segments variable
70 LiveIntervalUnion(unsigned r, Allocator &a) : RepReg(r), Tag(0), Segments(a) in LiveIntervalUnion()
75 SegmentIter begin() { return Segments.begin(); } in begin()
76 SegmentIter end() { return Segments.end(); } in end()
77 SegmentIter find(SlotIndex x) { return Segments.find(x); } in find()
78 bool empty() const { return Segments.empty(); } in empty()
79 SlotIndex startIndex() const { return Segments.start(); } in startIndex()
83 const Map &getMap() { return Segments; } in getMap()
98 void clear() { Segments.clear(); ++Tag; } in clear()
DLiveIntervalUnion.cpp36 SegmentIter SegPos = Segments.find(RegPos->start); in unify()
63 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/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/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp320 std::vector<CoverageSegment> &Segments; member in __anonb1b301b70211::SegmentBuilder
323 SegmentBuilder(std::vector<CoverageSegment> &Segments) : Segments(Segments) {} in SegmentBuilder() argument
335 if (!Segments.empty() && !IsRegionEntry && !EmitSkippedRegion) { in startSegment()
336 const auto &Last = Segments.back(); in startSegment()
343 Segments.emplace_back(StartLoc.first, StartLoc.second, in startSegment()
347 Segments.emplace_back(StartLoc.first, StartLoc.second, IsRegionEntry); in startSegment()
350 const auto &Last = Segments.back(); in startSegment()
521 std::vector<CoverageSegment> Segments; in buildSegments() local
522 SegmentBuilder Builder(Segments); in buildSegments()
538 for (unsigned I = 1, E = Segments.size(); I < E; ++I) { in buildSegments()
[all …]
/external/llvm/lib/ProfileData/Coverage/
DCoverageMapping.cpp280 std::vector<CoverageSegment> &Segments; member in __anonce8fef7f0211::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/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cov/
DSourceCoverageViewText.cpp103 CoverageSegmentArray Segments = LCS.getLineSegments(); in renderLine() local
115 for (const auto *S : Segments) { in renderLine()
179 CoverageSegmentArray Segments = Line.getLineSegments(); in renderRegionMarkers() local
182 if (Segments.size() > 1) in renderRegionMarkers()
183 Segments = Segments.drop_back(); in renderRegionMarkers()
186 for (const auto *S : Segments) { in renderRegionMarkers()
DSourceCoverageViewHTML.cpp507 CoverageSegmentArray Segments = LCS.getLineSegments(); in renderLine() local
515 Snip(LCol - 1, Segments.empty() ? 0 : (Segments.front()->Col - 1)); in renderLine()
517 for (unsigned I = 1, E = Segments.size(); I < E; ++I) in renderLine()
518 Snip(LCol - 1, Segments[I]->Col - LCol); in renderLine()
551 for (unsigned I = 0, E = Segments.size(); I < E; ++I) { in renderLine()
552 const auto *CurSeg = Segments[I]; in renderLine()
565 if (Color.hasValue() && Segments.empty()) in renderLine()
584 for (unsigned I = 0, E = Segments.size() - 1; I < E; ++I) { in renderLine()
585 const auto *CurSeg = Segments[I]; in renderLine()
DSourceCoverageView.cpp119 CoverageSegmentArray Segments = LCS.getLineSegments(); in shouldRenderRegionMarkers() local
120 if (Segments.empty()) in shouldRenderRegionMarkers()
122 for (unsigned I = 0, E = Segments.size() - 1; I < E; ++I) { in shouldRenderRegionMarkers()
123 const auto *CurSeg = Segments[I]; in shouldRenderRegionMarkers()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp38 SegmentIter SegPos = Segments.find(RegPos->start); in unify()
65 SegmentIter SegPos = Segments.find(RegPos->start); in extract()
88 for (LiveSegments::const_iterator SI = Segments.begin(); SI.valid(); ++SI) { in print()
98 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/include/llvm/ProfileData/Coverage/
DCoverageMapping.h405 std::vector<CoverageSegment> Segments; variable
415 : Filename(std::move(RHS.Filename)), Segments(std::move(RHS.Segments)), in CoverageData()
421 std::vector<CoverageSegment>::iterator begin() { return Segments.begin(); } in begin()
422 std::vector<CoverageSegment>::iterator end() { return Segments.end(); } in end()
423 bool empty() { return Segments.empty(); } in empty()

123