Lines Matching refs:numElements
698 llvm::Value *&numElements, in EmitCXXNewAllocSize() argument
719 numElements = in EmitCXXNewAllocSize()
721 if (!numElements) in EmitCXXNewAllocSize()
722 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
723 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
734 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
755 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
782 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
835 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
836 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
841 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
849 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
854 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
857 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
862 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
869 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
874 size = numElements; in EmitCXXNewAllocSize()
906 numElements = size; in EmitCXXNewAllocSize()
912 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1571 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1574 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1711 numElements, in EmitCXXNewExpr()
1736 SkippedChecks, numElements); in EmitCXXNewExpr()
1738 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2016 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2020 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2028 numElements, elementType, in EmitArrayDelete()
2033 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2041 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()