Home
last modified time | relevance | path

Searched refs:StrNCmp (Results 1 – 7 of 7) sorted by relevance

/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc340 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/
DBuildLibCalls.cpp83 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/
DBuildLibCalls.cpp759 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()
DSimplifyLibCalls.cpp574 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/
DSimplifyLibCalls.cpp680 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 __anon0f7d73dd0311::SimplifyLibCalls
1514 Optimizations["strncmp"] = &StrNCmp; in InitOptimizations()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp805 Value *StrNCmp = M->getOrInsertFunction(StrNCmpName, B.getInt32Ty(), in emitStrNCmp() local
810 StrNCmp, {castToCStr(Ptr1, B), castToCStr(Ptr2, B), Len}, StrNCmpName); in emitStrNCmp()
812 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in emitStrNCmp()
DSimplifyLibCalls.cpp643 Value *StrNCmp = emitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in optimizeStrStr() local
645 if (!StrNCmp) in optimizeStrStr()
650 B.CreateICmp(Old->getPredicate(), StrNCmp, in optimizeStrStr()
651 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr()