Searched refs:LastPos (Results 1 – 7 of 7) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | TLSVariableHoist.cpp | 212 Instruction *LastPos = nullptr; in findInsertPos() local 220 Pos = getDomInst(LastPos, Pos); in findInsertPos() 221 LastPos = Pos; in findInsertPos() 224 assert(LastPos && "Unexpected insert position!"); in findInsertPos() 225 BasicBlock *Parent = LastPos->getParent(); in findInsertPos() 227 return LastPos->getIterator(); in findInsertPos()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | Rename.cpp | 818 Position LastPos{0, 0}; in buildRenameEdit() local 822 assert(LastPos <= P && "malformed input"); in buildRenameEdit() 824 P.line - LastPos.line, in buildRenameEdit() 825 P.line > LastPos.line ? P.character : P.character - LastPos.character}; in buildRenameEdit() 831 LastPos = P; in buildRenameEdit()
|
| /llvm-project-15.0.7/llvm/lib/FileCheck/ |
| H A D | FileCheck.cpp | 2270 size_t LastPos = 0; in Check() local 2279 LastPos = CheckDag(SM, Buffer, NotStrings, Req, Diags); in Check() 2280 if (LastPos == StringRef::npos) in Check() 2285 size_t LastMatchEnd = LastPos; in Check() 2305 FirstMatchPos = LastPos + MatchPos; in Check() 2316 size_t MatchPos = FirstMatchPos - LastPos; in Check() 2317 StringRef MatchBuffer = Buffer.substr(LastPos); in Check() 2318 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); in Check()
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | InstrProfWriter.cpp | 66 const uint64_t LastPos = FDOStream.tell(); in patch() local 75 FDOStream.seek(LastPos); in patch()
|
| H A D | InstrProf.cpp | 274 uint32_t Pos = 0, LastPos = 0; in stripDirPrefix() local 278 LastPos = Pos; in stripDirPrefix() 284 return PathNameStr.substr(LastPos); in stripDirPrefix()
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | Format.cpp | 2637 size_t Pos = 0, LastPos = 0; in replaceCRLF() local 2640 Pos = Code.find("\r\n", LastPos); in replaceCRLF() 2641 if (Pos == LastPos) { in replaceCRLF() 2642 ++LastPos; in replaceCRLF() 2646 NewCode += Code.substr(LastPos); in replaceCRLF() 2649 NewCode += Code.substr(LastPos, Pos - LastPos) + "\n"; in replaceCRLF() 2650 LastPos = Pos + 2; in replaceCRLF()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantRangeTest.cpp | 1204 int LastPos = Results.find_next(Bias) - Bias; in TEST_F() local 1208 else if (LastPos == 1) in TEST_F() 1209 --LastPos; in TEST_F() 1213 APInt WMin(Bits, LastPos); in TEST_F()
|