Lines Matching refs:SrcStr
293 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() local
299 uint64_t Len = GetStringLength(SrcStr); in optimizeStrChr()
303 return EmitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
311 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrChr()
313 return B.CreateGEP(B.getInt8Ty(), SrcStr, EmitStrLen(SrcStr, B, DL, TLI), "strchr"); in optimizeStrChr()
326 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
338 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() local
346 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrRChr()
349 return EmitStrChr(SrcStr, '\0', B, TLI); in optimizeStrRChr()
361 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strrchr"); in optimizeStrRChr()
759 Value *SrcStr = CI->getArgOperand(0); in optimizeMemChr() local
769 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
833 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr"); in optimizeMemChr()