Lines Matching refs:SrcStr
185 Value *SrcStr = CI->getArgOperand(0); in optimizeStrChr() local
191 uint64_t Len = GetStringLength(SrcStr); in optimizeStrChr()
195 return emitMemChr(SrcStr, CI->getArgOperand(1), // include nul. in optimizeStrChr()
203 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrChr()
205 return B.CreateGEP(B.getInt8Ty(), SrcStr, emitStrLen(SrcStr, B, DL, TLI), in optimizeStrChr()
219 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr"); in optimizeStrChr()
223 Value *SrcStr = CI->getArgOperand(0); in optimizeStrRChr() local
231 if (!getConstantStringInfo(SrcStr, Str)) { in optimizeStrRChr()
234 return emitStrChr(SrcStr, '\0', B, TLI); in optimizeStrRChr()
246 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strrchr"); in optimizeStrRChr()
619 Value *SrcStr = CI->getArgOperand(0); in optimizeMemChr() local
629 if (!LenC || !getConstantStringInfo(SrcStr, Str, 0, /*TrimAtNul=*/false)) in optimizeMemChr()
693 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "memchr"); in optimizeMemChr()