OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StrNCmp
(Results
1 - 2
of
2
) sorted by null
/external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp
72
/// EmitStrNCmp - Emit a call to the
strncmp
function to the builder.
83
Value *
StrNCmp
= M->getOrInsertFunction("
strncmp
", AttrListPtr::get(AWI, 3),
88
CallInst *CI = B.CreateCall3(
StrNCmp
, CastToCStr(Ptr1, B),
89
CastToCStr(Ptr2, B), Len, "
strncmp
");
91
if (const Function *F = dyn_cast<Function>(
StrNCmp
->stripPointerCasts()))
/external/llvm/lib/Transforms/Scalar/
SimplifyLibCalls.cpp
369
// '
strncmp
' Optimizations
373
// Verify the "
strncmp
" function prototype.
383
if (Str1P == Str2P) //
strncmp
(x,x,n) -> 0
393
if (Length == 0) //
strncmp
(x,y,0) -> 0
396
if (TD && Length == 1) //
strncmp
(x,y,1) -> memcmp(x,y,1)
403
if (HasStr1 && Str1.empty()) //
strncmp
("", x, n) -> *x
406
if (HasStr2 && Str2.empty()) //
strncmp
(x, "", n) -> *x
409
//
strncmp
(x, y) -> cnst (if both x and y are constant strings)
412
strncmp
(Str1.c_str(), Str2.c_str(), Length));
672
// fold strstr(a, b) == a ->
strncmp
(a, b, strlen(b)) ==
[
all
...]
Completed in 189 milliseconds