Home
last modified time | relevance | path

Searched refs:LineOffset (Results 1 – 4 of 4) sorted by relevance

/external/llvm/include/llvm/ProfileData/
DSampleProf.h72 LineLocation(int L, unsigned D) : LineOffset(L), Discriminator(D) {}
73 int LineOffset;
92 std::pair<int, unsigned>(Val.LineOffset, Val.Discriminator));
96 return LHS.LineOffset == RHS.LineOffset &&
173 void addBodySamples(int LineOffset, unsigned Discriminator, unsigned Num) {
174 assert(LineOffset >= 0);
181 BodySamples[LineLocation(LineOffset, Discriminator)].addSamples(Num);
183 void addCalledTargetSamples(int LineOffset, unsigned Discriminator,
185 assert(LineOffset >= 0);
186 BodySamples[LineLocation(LineOffset, Discriminator)].addCalledTarget(FName,
[all …]
/external/llvm/lib/ProfileData/
DSampleProfReader.cpp117 OS << "\tline offset: " << Loc.LineOffset in print()
201 unsigned LineOffset, NumSamples, Discriminator = 0; in read() local
202 Matches[1].getAsInteger(10, LineOffset); in read()
220 FProfile.addCalledTargetSamples(LineOffset, Discriminator, in read()
225 FProfile.addBodySamples(LineOffset, Discriminator, NumSamples); in read()
291 auto LineOffset = readNumber<uint64_t>(); in read() local
292 if (std::error_code EC = LineOffset.getError()) in read()
316 FProfile.addCalledTargetSamples(*LineOffset, *Discriminator, in read()
321 FProfile.addBodySamples(*LineOffset, *Discriminator, *NumSamples); in read()
DSampleProfWriter.cpp44 OS << Loc.LineOffset << ": "; in write()
46 OS << Loc.LineOffset << "." << Loc.Discriminator << ": "; in write()
85 encodeULEB128(Loc.LineOffset, OS); in write()
/external/clang/lib/Format/
DFormat.cpp910 auto LineOffset = Buffer.rfind('\n', FirstInLineOffset); in tryMergeConflictMarkers() local
911 if (LineOffset == StringRef::npos) { in tryMergeConflictMarkers()
912 LineOffset = 0; in tryMergeConflictMarkers()
914 ++LineOffset; in tryMergeConflictMarkers()
917 auto FirstSpace = Buffer.find_first_of(" \n", LineOffset); in tryMergeConflictMarkers()
920 LineStart = Buffer.substr(LineOffset); in tryMergeConflictMarkers()
922 LineStart = Buffer.substr(LineOffset, FirstSpace - LineOffset); in tryMergeConflictMarkers()