HomeSort by relevance Sort by last modified time
    Searched refs:StrNCmp (Results 1 - 3 of 3) sorted by null

  /external/compiler-rt/lib/asan/tests/
asan_test.cc 1089 // strncmp
1090 EXPECT_EQ(0, strncmp("a", "b", 0));
1091 EXPECT_EQ(0, strncmp("abcd", "abcd", 10))
    [all...]
  /external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp 76 /// EmitStrNCmp - Emit a call to the strncmp function to the builder.
87 Value *StrNCmp = M->getOrInsertFunction("strncmp", AttrListPtr::get(AWI, 3),
92 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B),
93 CastToCStr(Ptr2, B), Len, "strncmp");
95 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts()))
  /external/llvm/lib/Transforms/Scalar/
SimplifyLibCalls.cpp 366 // 'strncmp' Optimizations
370 // Verify the "strncmp" function prototype.
380 if (Str1P == Str2P) // strncmp(x,x,n) -> 0
390 if (Length == 0) // strncmp(x,y,0) -> 0
393 if (TD && Length == 1) // strncmp(x,y,1) -> memcmp(x,y,1)
400 // strncmp(x, y) -> cnst (if both x and y are constant strings)
407 if (HasStr1 && Str1.empty()) // strncmp("", x, n) -> -*x
411 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x
679 // fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0
682 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1)
    [all...]

Completed in 243 milliseconds