Lines Matching refs:numElements

708                                         llvm::Value *&numElements,  in EmitCXXNewAllocSize()  argument
729 numElements = in EmitCXXNewAllocSize()
731 if (!numElements) in EmitCXXNewAllocSize()
732 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
733 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
744 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
765 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
792 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
845 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
846 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
851 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
859 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
864 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
867 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
872 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
879 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
884 size = numElements; in EmitCXXNewAllocSize()
916 numElements = size; in EmitCXXNewAllocSize()
922 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1599 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1602 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1738 numElements, in EmitCXXNewExpr()
1763 numElements); in EmitCXXNewExpr()
1765 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2042 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2046 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2054 numElements, elementType, in EmitArrayDelete()
2059 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2067 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()