Searched refs:StrNCmp (Results 1 – 5 of 5) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 340 void RunStrNCmpTest(PointerToStrNCmp StrNCmp) { in RunStrNCmpTest() argument 347 Ident(StrNCmp(s1, s2, size + 2)); in RunStrNCmpTest() 350 Ident(StrNCmp(s1 + size - 2, s2 + size - 2, size)); in RunStrNCmpTest() 352 Ident(StrNCmp(s1 - 1, s2 - 1, 0)); in RunStrNCmpTest() 353 Ident(StrNCmp(s1 + size - 1, s2 + size - 1, 1)); in RunStrNCmpTest() 355 EXPECT_DEATH(Ident(StrNCmp)(s1 - 1, s2, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 356 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 - 1, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 357 EXPECT_DEATH(Ident(StrNCmp)(s1 + size, s2, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 358 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 + size, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 360 EXPECT_DEATH(Ident(StrNCmp)(s1 + 1, s2 + 1, size), RightOOBReadMessage(0)); in RunStrNCmpTest() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 83 Value *StrNCmp = M->getOrInsertFunction("strncmp", AttrListPtr::get(AWI, 3), in EmitStrNCmp() local 88 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), in EmitStrNCmp() 91 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in EmitStrNCmp()
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 759 Value *StrNCmp = M->getOrInsertFunction("strncmp", B.getInt32Ty(), in emitStrNCmp() local 764 StrNCmp, {castToCStr(Ptr1, B), castToCStr(Ptr2, B), Len}, "strncmp"); in emitStrNCmp() 766 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in emitStrNCmp()
|
D | SimplifyLibCalls.cpp | 574 Value *StrNCmp = emitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in optimizeStrStr() local 576 if (!StrNCmp) in optimizeStrStr() 581 B.CreateICmp(Old->getPredicate(), StrNCmp, in optimizeStrStr() 582 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | SimplifyLibCalls.cpp | 680 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in CallOptimizer() local 685 Value *Cmp = B.CreateICmp(Old->getPredicate(), StrNCmp, in CallOptimizer() 686 ConstantInt::getNullValue(StrNCmp->getType()), in CallOptimizer() 1455 StrCmpOpt StrCmp; StrNCmpOpt StrNCmp; StrCpyOpt StrCpy; StrCpyOpt StrCpyChk; member in __anona18d68930311::SimplifyLibCalls 1514 Optimizations["strncmp"] = &StrNCmp; in InitOptimizations()
|