Lines Matching refs:NBytes
445 static Value* memChrToCharCompare(CallInst *CI, Value *NBytes, in memChrToCharCompare() argument
457 if (NBytes) { in memChrToCharCompare()
458 Value *Zero = ConstantInt::get(NBytes->getType(), 0); in memChrToCharCompare()
459 Value *And = B.CreateICmpNE(NBytes, Zero); in memChrToCharCompare()
548 uint64_t NBytes = Str.size() + 1; // Include the terminating nul. in optimizeStrRChr() local
549 Value *Size = ConstantInt::get(SizeTTy, NBytes); in optimizeStrRChr()
769 uint64_t NBytes; in optimizeStrLCpy() local
771 NBytes = SizeC->getZExtValue(); in optimizeStrLCpy()
777 if (NBytes <= 1) { in optimizeStrLCpy()
778 if (NBytes == 1) in optimizeStrLCpy()
796 bool NulTerm = SrcLen < NBytes; in optimizeStrLCpy()
801 NBytes = SrcLen + 1; in optimizeStrLCpy()
806 NBytes = std::min(NBytes - 1, SrcLen); in optimizeStrLCpy()
821 ConstantInt::get(DL.getIntPtrType(PT), NBytes)); in optimizeStrLCpy()
825 Value *EndOff = ConstantInt::get(CI->getType(), NBytes); in optimizeStrLCpy()