Home | History | Annotate | Download | only in Scalar

Lines Matching defs:StrChr

230 // 'strchr' Optimizations
234 // Verify the "strchr" function prototype.
266 // strchr can find the nul character.
271 if (I == std::string::npos) // Didn't find the char. strchr returns null.
274 // strchr(s+n,c) -> gep(s+n+i,c)
275 return B.CreateGEP(SrcStr, B.getInt64(I), "strchr");
301 // strrchr(s, 0) -> strchr(s, 0)
570 // strpbrk(s, "a") -> strchr(s, 'a')
716 // fold strstr(x, "y") -> strchr(x, 'y').
1454 StrCatOpt StrCat; StrNCatOpt StrNCat; StrChrOpt StrChr; StrRChrOpt StrRChr;
1511 Optimizations["strchr"] = &StrChr;
1704 } else if (Name == "strchr" ||