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

  /external/llvm/lib/Transforms/Utils/
BuildLibCalls.cpp 184 /// EmitMemCmp - Emit a call to the memcmp function.
195 Value *MemCmp = M->getOrInsertFunction("memcmp", AttrListPtr::get(AWI, 3),
200 CallInst *CI = B.CreateCall3(MemCmp, CastToCStr(Ptr1, B), CastToCStr(Ptr2, B),
201 Len, "memcmp");
203 if (const Function *F = dyn_cast<Function>(MemCmp->stripPointerCasts()))
  /external/llvm/lib/Transforms/Scalar/
SimplifyLibCalls.cpp 349 // strcmp(P, "x") -> memcmp(P, "x", 2)
393 if (TD && Length == 1) // strncmp(x,y,1) -> memcmp(x,y,1)
728 // 'memcmp' Optimizations
740 if (LHS == RHS) // memcmp(s,s,x) -> 0
748 if (Len == 0) // memcmp(s1,s2,0) -> 0
751 // memcmp(S1,S2,1) -> *(unsigned char*)LHS - *(unsigned char*)RHS
760 // Constant folding: memcmp(x, y, l) -> cnst (all arguments are constant)
767 uint64_t Ret = memcmp(LHSStr.data(), RHSStr.data(), Len);
    [all...]

Completed in 1509 milliseconds