Lines Matching refs:StrChr
446 // Verify the "strchr" function prototype.
482 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
485 // strchr(s+n,c) -> gep(s+n+i,c)
486 return B.CreateGEP(SrcStr, B.getInt64(I), "strchr");
509 // strrchr(s, 0) -> strchr(s, 0)
783 // strpbrk(s, "a") -> strchr(s, 'a')
926 // fold strstr(x, "y") -> strchr(x, 'y').
928 Value *StrChr= EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TD, TLI);
929 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : 0;
1721 static StrChrOpt StrChr;
1784 case LibFunc::strchr:
1785 return &StrChr;
1994 // strchr:
1995 // * strchr(p, 0) -> strlen(p)