Searched refs:StrChr (Results 1 – 6 of 6) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 220 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/llvm-project/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cpp | 258 static void RunStrChrTestImpl(StrChrFn *StrChr) { in RunStrChrTestImpl() argument 263 EXPECT_EQ(str, StrChr(str, 'z')); in RunStrChrTestImpl() 264 EXPECT_EQ(str + 10, StrChr(str, 'q')); in RunStrChrTestImpl() 265 EXPECT_EQ(NULL, StrChr(str, 'a')); in RunStrChrTestImpl() 267 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1)); in RunStrChrTestImpl() 268 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0)); in RunStrChrTestImpl() 271 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0)); in RunStrChrTestImpl() 276 UNUSED static void RunStrChrTest(PointerToStrChr1 StrChr, ...) { in RunStrChrTest() argument 277 RunStrChrTestImpl(StrChr); in RunStrChrTest() 279 UNUSED static void RunStrChrTest(PointerToStrChr2 StrChr, int) { in RunStrChrTest() argument [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 742 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()
|
D | SimplifyLibCalls.cpp | 612 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/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 871 Value *StrChr = emitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI); in optimizeStrStr() local 872 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr; in optimizeStrStr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 888 Value *StrChr = emitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TLI); in optimizeStrStr() local 889 return StrChr ? B.CreateBitCast(StrChr, CI->getType()) : nullptr; in optimizeStrStr()
|