Home | History | Annotate | Download | only in Utils

Lines Matching refs:StrNCmp

573     // Verify the "strncmp" function prototype.
583 if (Str1P == Str2P) // strncmp(x,x,n) -> 0
593 if (Length == 0) // strncmp(x,y,0) -> 0
596 if (TD && Length == 1) // strncmp(x,y,1) -> memcmp(x,y,1)
603 // strncmp(x, y) -> cnst (if both x and y are constant strings)
610 if (HasStr1 && Str1.empty()) // strncmp("", x, n) -> -*x
614 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x
884 // fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0
889 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1),
891 if (!StrNCmp)
896 Value *Cmp = B.CreateICmp(Old->getPredicate(), StrNCmp,
897 ConstantInt::getNullValue(StrNCmp->getType()),
1724 static StrNCmpOpt StrNCmp;
1790 case LibFunc::strncmp:
1791 return &StrNCmp;