HomeSort by relevance Sort by last modified time
    Searched defs:StrChr (Results 1 - 4 of 4) sorted by null

  /external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp 87 /// EmitStrChr - Emit a call to the strchr function to the builder, for the
92 if (!TLI->has(LibFunc::strchr))
101 Constant *StrChr = M->getOrInsertFunction("strchr", AttrListPtr::get(AWI),
103 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B),
104 ConstantInt::get(I32Ty, C), "strchr");
105 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts()))
  /external/v8/src/
platform-posix.cc 343 char* OS::StrChr(char* str, int c) {
344 return strchr(str, c);
platform-win32.cc 805 char* OS::StrChr(char* str, int c) {
806 return const_cast<char*>(strchr(str, c));
    [all...]
  /external/llvm/lib/Transforms/Scalar/
SimplifyLibCalls.cpp 236 // 'strchr' Optimizations
240 // Verify the "strchr" function prototype.
276 if (I == StringRef::npos) // Didn't find the char. strchr returns null.
279 // strchr(s+n,c) -> gep(s+n+i,c)
280 return B.CreateGEP(SrcStr, B.getInt64(I), "strchr");
306 // strrchr(s, 0) -> strchr(s, 0)
616 // strpbrk(s, "a") -> strchr(s, 'a')
772 // fold strstr(x, "y") -> strchr(x, 'y').
774 Value *StrChr= EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TD, TLI);
775 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : 0
    [all...]

Completed in 60 milliseconds