Lines Matching refs:SrcStr

319   Value *SrcStr = CI->getArgOperand(0);  in optimizeStrChr()  local
326 uint64_t Len = GetStringLength(SrcStr); in optimizeStrChr()
334 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
342 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrChr()
344 if (Value *StrLen = emitStrLen(SrcStr, B, DL, TLI)) in optimizeStrChr()
345 return B.CreateGEP(B.getInt8Ty(), SrcStr, StrLen, "strchr"); in optimizeStrChr()
358 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
362 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() local
371 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrRChr()
374 return emitStrChr(SrcStr, '\0', B, TLI); in optimizeStrRChr()
386 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strrchr"); in optimizeStrRChr()
617 std::string SrcStr = Str.str(); in optimizeStrNCpy() local
618 SrcStr.resize(Len, '\0'); in optimizeStrNCpy()
619 Src = B.CreateGlobalString(SrcStr, "str"); in optimizeStrNCpy()
886 Value *SrcStr = CI->getArgOperand(0); in optimizeMemChr() local
902 if (!getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
970 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr"); in optimizeMemChr()
1113 StringRef SrcStr; in optimizeMemCCpy() local
1120 if (!getConstantStringInfo(Src, SrcStr, /*Offset=*/0, in optimizeMemCCpy()
1129 size_t Pos = SrcStr.find(StopChar->getSExtValue() & 0xFF); in optimizeMemCCpy()
1131 if (N->getZExtValue() <= SrcStr.size()) { in optimizeMemCCpy()