Lines Matching refs:NBytes
436 static Value* memChrToCharCompare(CallInst *CI, Value *NBytes, in memChrToCharCompare() argument
448 if (NBytes) { in memChrToCharCompare()
449 Value *Zero = ConstantInt::get(NBytes->getType(), 0); in memChrToCharCompare()
450 Value *And = B.CreateICmpNE(NBytes, Zero); in memChrToCharCompare()
539 uint64_t NBytes = Str.size() + 1; // Include the terminating nul. in optimizeStrRChr() local
540 Value *Size = ConstantInt::get(SizeTTy, NBytes); in optimizeStrRChr()
760 uint64_t NBytes; in optimizeStrLCpy() local
762 NBytes = SizeC->getZExtValue(); in optimizeStrLCpy()
768 if (NBytes <= 1) { in optimizeStrLCpy()
769 if (NBytes == 1) in optimizeStrLCpy()
787 bool NulTerm = SrcLen < NBytes; in optimizeStrLCpy()
792 NBytes = SrcLen + 1; in optimizeStrLCpy()
797 NBytes = std::min(NBytes - 1, SrcLen); in optimizeStrLCpy()
812 ConstantInt::get(DL.getIntPtrType(PT), NBytes)); in optimizeStrLCpy()
816 Value *EndOff = ConstantInt::get(CI->getType(), NBytes); in optimizeStrLCpy()