Lines Matching refs:numElements
697 llvm::Value *&numElements, in EmitCXXNewAllocSize() argument
718 numElements = in EmitCXXNewAllocSize()
720 if (!numElements) in EmitCXXNewAllocSize()
721 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
722 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
733 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
754 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
781 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
834 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
835 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
840 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
848 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
853 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
856 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
861 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
868 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
873 size = numElements; in EmitCXXNewAllocSize()
905 numElements = size; in EmitCXXNewAllocSize()
911 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1576 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1579 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1716 numElements, in EmitCXXNewExpr()
1742 SkippedChecks, numElements); in EmitCXXNewExpr()
1744 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2021 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2025 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2033 numElements, elementType, in EmitArrayDelete()
2038 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2046 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()