Home | History | Annotate | Download | only in Utils

Lines Matching refs:StrChr

476     // Verify the "strchr" function prototype.
506 if (DL && CharC->isZero()) // strchr(p, 0) -> p + strlen(p)
507 return B.CreateGEP(SrcStr, EmitStrLen(SrcStr, B, DL, TLI), "strchr");
515 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
518 // strchr(s+n,c) -> gep(s+n+i,c)
519 return B.CreateGEP(SrcStr, B.getInt64(I), "strchr");
543 // strrchr(s, 0) -> strchr(s, 0)
839 // strpbrk(s, "a") -> strchr(s, 'a')
985 // fold strstr(x, "y") -> strchr(x, 'y').
987 Value *StrChr= EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, DL, TLI);
988 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr;
2062 static StrChrOpt StrChr;
2130 case LibFunc::strchr:
2131 return &StrChr;