Lines Matching refs:OldName
2119 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local
2121 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr()
2123 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr()
2125 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2126 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr()
2128 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr()
2129 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr()
2130 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr()
2132 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr()
2136 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr()
2142 Twine(OldName) + "." in getNewAllocaSlicePtr()