Lines Matching refs:numElements
705 llvm::Value *&numElements, in EmitCXXNewAllocSize() argument
726 numElements = in EmitCXXNewAllocSize()
728 if (!numElements) in EmitCXXNewAllocSize()
729 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
730 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
741 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
762 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
789 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
842 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
843 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
848 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
856 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
861 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
864 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
869 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
876 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
881 size = numElements; in EmitCXXNewAllocSize()
913 numElements = size; in EmitCXXNewAllocSize()
919 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1600 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1603 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1740 numElements, in EmitCXXNewExpr()
1765 SkippedChecks, numElements); in EmitCXXNewExpr()
1767 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2045 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2049 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2057 numElements, elementType, in EmitArrayDelete()
2062 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2070 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()