Home | History | Annotate | Download | only in Utils

Lines Matching refs:StrChr

204     if (CharC->isZero()) // strchr(p, 0) -> p + strlen(p)
206 "strchr");
215 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
218 // strchr(s+n,c) -> gep(s+n+i,c)
219 return B.CreateGEP(B.getInt8Ty(), SrcStr, B.getInt64(I), "strchr");
232 // strrchr(s, 0) -> strchr(s, 0)
501 // strpbrk(s, "a") -> strchr(s, 'a')
610 // fold strstr(x, "y") -> strchr(x, 'y').
612 Value *StrChr = emitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI);
613 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr;
1901 case LibFunc::strchr: