Home
last modified time | relevance | path

Searched refs:StrChr (Results 1 – 10 of 10) sorted by relevance

/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc220 static void RunStrChrTestImpl(StrChrFn *StrChr) { in RunStrChrTestImpl() argument
225 EXPECT_EQ(str, StrChr(str, 'z')); in RunStrChrTestImpl()
226 EXPECT_EQ(str + 10, StrChr(str, 'q')); in RunStrChrTestImpl()
227 EXPECT_EQ(NULL, StrChr(str, 'a')); in RunStrChrTestImpl()
229 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1)); in RunStrChrTestImpl()
230 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0)); in RunStrChrTestImpl()
233 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0)); in RunStrChrTestImpl()
238 UNUSED static void RunStrChrTest(PointerToStrChr1 StrChr, ...) { in RunStrChrTest() argument
239 RunStrChrTestImpl(StrChr); in RunStrChrTest()
241 UNUSED static void RunStrChrTest(PointerToStrChr2 StrChr, int) { in RunStrChrTest() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DBuildLibCalls.cpp63 Constant *StrChr = M->getOrInsertFunction("strchr", AttrListPtr::get(&AWI, 1), in EmitStrChr() local
65 CallInst *CI = B.CreateCall2(StrChr, CastToCStr(Ptr, B), in EmitStrChr()
67 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts())) in EmitStrChr()
/external/v8/src/base/platform/
Dplatform.h207 static char* StrChr(char* str, int c);
Dplatform-posix.cc671 char* OS::StrChr(char* str, int c) { in StrChr() function in v8::base::OS
Dplatform-win32.cc673 char* OS::StrChr(char* str, int c) { in StrChr() function in v8::base::OS
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp742 Constant *StrChr = in emitStrChr() local
746 StrChr, {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, "strchr"); in emitStrChr()
747 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts())) in emitStrChr()
DSimplifyLibCalls.cpp612 Value *StrChr = emitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI); in optimizeStrStr() local
613 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr; in optimizeStrStr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp787 Constant *StrChr = in emitStrChr() local
791 StrChr, {castToCStr(Ptr, B), ConstantInt::get(I32Ty, C)}, StrChrName); in emitStrChr()
792 if (const Function *F = dyn_cast<Function>(StrChr->stripPointerCasts())) in emitStrChr()
DSimplifyLibCalls.cpp681 Value *StrChr = emitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI); in optimizeStrStr() local
682 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr; in optimizeStrStr()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp1454 StrCatOpt StrCat; StrNCatOpt StrNCat; StrChrOpt StrChr; StrRChrOpt StrRChr; member in __anon0f7d73dd0311::SimplifyLibCalls
1511 Optimizations["strchr"] = &StrChr; in InitOptimizations()