Lines Matching refs:numElements
701 llvm::Value *&numElements, in EmitCXXNewAllocSize() argument
722 numElements = in EmitCXXNewAllocSize()
724 if (!numElements) in EmitCXXNewAllocSize()
725 numElements = CGF.EmitScalarExpr(*e->getArraySize()); in EmitCXXNewAllocSize()
726 assert(isa<llvm::IntegerType>(numElements->getType())); in EmitCXXNewAllocSize()
737 = cast<llvm::IntegerType>(numElements->getType()); in EmitCXXNewAllocSize()
758 dyn_cast<llvm::ConstantInt>(numElements)) { in EmitCXXNewAllocSize()
785 numElements = llvm::ConstantInt::get(CGF.SizeTy, in EmitCXXNewAllocSize()
838 hasOverflow = CGF.Builder.CreateICmpUGE(numElements, thresholdV); in EmitCXXNewAllocSize()
839 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
844 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
852 hasOverflow = CGF.Builder.CreateICmpSLT(numElements, in EmitCXXNewAllocSize()
857 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize()
860 assert(numElements->getType() == CGF.SizeTy); in EmitCXXNewAllocSize()
865 hasOverflow = CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
872 CGF.Builder.CreateICmpULT(numElements, in EmitCXXNewAllocSize()
877 size = numElements; in EmitCXXNewAllocSize()
909 numElements = size; in EmitCXXNewAllocSize()
915 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize()
1574 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local
1577 EmitCXXNewAllocSize(*this, E, minElements, numElements, in EmitCXXNewExpr()
1714 numElements, in EmitCXXNewExpr()
1739 SkippedChecks, numElements); in EmitCXXNewExpr()
1741 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
2019 llvm::Value *numElements = nullptr; in EmitArrayDelete() local
2023 numElements, allocatedPtr, cookieSize); in EmitArrayDelete()
2031 numElements, elementType, in EmitArrayDelete()
2036 assert(numElements && "no element count for a type with a destructor!"); in EmitArrayDelete()
2044 deletedPtr.getElementType(), arrayBegin, numElements, "delete.end"); in EmitArrayDelete()