Lines Matching refs:numElements
694 llvm::Value *&numElements, in EmitCXXNewAllocSize() argument
715 numElements = in EmitCXXNewAllocSize()
717 if (!numElements) in EmitCXXNewAllocSize()
718 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
719 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
730 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
751 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
778 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
831 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
832 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
837 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
845 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
850 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
853 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
858 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
865 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
870 size = numElements; in EmitCXXNewAllocSize()
902 numElements = size; in EmitCXXNewAllocSize()
908 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1573 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1576 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1713 numElements, in EmitCXXNewExpr()
1739 SkippedChecks, numElements); in EmitCXXNewExpr()
1741 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2018 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2022 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2030 numElements, elementType, in EmitArrayDelete()
2035 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2043 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()