Home
last modified time | relevance | path

Searched refs:LastPos (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DTLSVariableHoist.cpp199 Instruction *LastPos = nullptr; in findInsertPos() local
207 Pos = getDomInst(LastPos, Pos); in findInsertPos()
208 LastPos = Pos; in findInsertPos()
211 assert(LastPos && "Unexpected insert position!"); in findInsertPos()
212 BasicBlock *Parent = LastPos->getParent(); in findInsertPos()
214 return LastPos->getIterator(); in findInsertPos()
/freebsd-14.2/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheck.cpp2168 size_t LastPos = 0; in Check() local
2177 LastPos = CheckDag(SM, Buffer, NotStrings, Req, Diags); in Check()
2178 if (LastPos == StringRef::npos) in Check()
2183 size_t LastMatchEnd = LastPos; in Check()
2203 FirstMatchPos = LastPos + MatchPos; in Check()
2214 size_t MatchPos = FirstMatchPos - LastPos; in Check()
2215 StringRef MatchBuffer = Buffer.substr(LastPos); in Check()
2216 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); in Check()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp68 const uint64_t LastPos = FDOStream.tell(); in patch() local
77 FDOStream.seek(LastPos); in patch()
H A DInstrProf.cpp275 uint32_t Pos = 0, LastPos = 0; in stripDirPrefix() local
279 LastPos = Pos; in stripDirPrefix()
285 return PathNameStr.substr(LastPos); in stripDirPrefix()
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DFormat.cpp3016 size_t Pos = 0, LastPos = 0; in replaceCRLF() local
3019 Pos = Code.find("\r\n", LastPos); in replaceCRLF()
3020 if (Pos == LastPos) { in replaceCRLF()
3021 ++LastPos; in replaceCRLF()
3025 NewCode += Code.substr(LastPos); in replaceCRLF()
3028 NewCode += Code.substr(LastPos, Pos - LastPos) + "\n"; in replaceCRLF()
3029 LastPos = Pos + 2; in replaceCRLF()