Home
last modified time | relevance | path

Searched refs:OldName (Results 1 – 18 of 18) sorted by relevance

/external/swiftshader/third_party/subzero/src/
DIceMangling.cpp38 void incrementSubstitutions(ManglerVector &OldName) { in incrementSubstitutions() argument
41 ManglerVector NewName(OldName.size() * 2); in incrementSubstitutions()
44 const size_t OldLen = OldName.size(); in incrementSubstitutions()
46 if (OldName[OldPos] == '\0') in incrementSubstitutions()
48 if (OldName[OldPos] == 'S') { in incrementSubstitutions()
54 char Ch = OldName[Last]; in incrementSubstitutions()
67 NewName[NewPos++] = OldName[OldPos++]; // 'S' in incrementSubstitutions()
71 assert(OldName[OldPos - 1] == 'S'); in incrementSubstitutions()
72 assert(OldName[OldPos + Length] == '_'); in incrementSubstitutions()
85 char Ch = OldName[OldPos + Offset]; in incrementSubstitutions()
[all …]
/external/llvm-project/clang/unittests/Rename/
DRenameClassTest.cpp196 std::string OldName = Param.OldName.empty() ? "a::Foo" : Param.OldName; in TEST_P() local
198 std::string Actual = runClangRenameOnCode(Param.Before, OldName, NewName); in TEST_P()
306 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
402 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
DClangRenameTest.h40 std::string OldName; member
50 llvm::StringRef OldName, in runClangRenameOnCode() argument
61 tooling::USRFindingAction FindingAction({}, {std::string(OldName)}, false); in runClangRenameOnCode()
DRenameEnumTest.cpp149 assert(!Param.OldName.empty()); in TEST_P()
152 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
DRenameMemberTest.cpp161 assert(!Param.OldName.empty()); in TEST_P()
164 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
DRenameAliasTest.cpp197 assert(!Param.OldName.empty()); in TEST_P()
200 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DOverlappingReplacementsTest.cpp68 virtual std::string newName(StringRef OldName) = 0;
120 std::string newName(StringRef OldName) override { in newName() argument
121 return "toma" + OldName.substr(4).str(); in newName()
130 std::string newName(StringRef OldName) override { in newName() argument
131 return OldName.substr(0, OldName.size() - 4).str() + "melo"; in newName()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDefineInline.cpp295 llvm::StringRef OldName = OldDecl->getName(); in renameParameters() local
301 if (OldName.empty()) in renameParameters()
321 OldName, NewName, Err); in renameParameters()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp114 StringRef OldName = BB->getName(); in foldBlockIntoPredecessor() local
137 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor()
138 OnlyPred->setName(OldName); in foldBlockIntoPredecessor()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp2279 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2281 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2283 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2285 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2286 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2288 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2289 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2290 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2292 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2296 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
[all …]
/external/lzma/CPP/7zip/UI/Common/
DUpdate.h71 UString OldName; member
DUpdate.cpp462 return !DoesNameContainWildcard(OldName); in Prepare()
487 unsigned num = CompareTwoNames(OldName, src); in GetNewPath()
488 if (OldName[num] == 0) in GetNewPath()
501 || !IsPathSepar(OldName[num]) in GetNewPath()
502 || OldName[num + 1] != 0) in GetNewPath()
DArchiveCommandLine.cpp388 pair.OldName = oldName; in AddRenamePair()
396 val += pair.OldName; in AddRenamePair()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp2396 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2398 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2400 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2402 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2403 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2405 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2406 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2407 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2409 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2413 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp2419 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2421 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2423 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2425 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2426 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2428 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2429 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2430 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2432 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2436 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
[all …]
/external/llvm/lib/TableGen/
DRecord.cpp1686 Init *OldName = getNameInit(); in resolveReferencesTo() local
1688 if (NewName != OldName) { in resolveReferencesTo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DRecord.cpp2138 Init *OldName = getNameInit(); in resolveReferences() local
2140 if (NewName != OldName) { in resolveReferences()
/external/llvm-project/llvm/lib/TableGen/
DRecord.cpp2290 Init *OldName = getNameInit(); in resolveReferences() local
2292 if (NewName != OldName) { in resolveReferences()