Lines Matching refs:maxElements
794 int maxElements = 0x7FFFFFFF; in numArrayElements() local
797 maxElements = static_cast<int>(CAT->getSize().getZExtValue()); in numArrayElements()
799 return maxElements; in numArrayElements()
827 int maxElements = 0; in CheckImplicitInitList() local
830 maxElements = numArrayElements(T); in CheckImplicitInitList()
832 maxElements = numStructUnionElements(T); in CheckImplicitInitList()
834 maxElements = T->getAs<VectorType>()->getNumElements(); in CheckImplicitInitList()
838 if (maxElements == 0) { in CheckImplicitInitList()
1419 unsigned maxElements = VT->getNumElements(); in CheckVectorType() local
1471 for (unsigned i = 0; i < maxElements; ++i, ++numEltsInit) { in CheckVectorType()
1530 for (unsigned i = 0; i < maxElements; ++i) { in CheckVectorType()
1559 if (numEltsInit != maxElements) { in CheckVectorType()
1563 << (numEltsInit < maxElements) << maxElements << numEltsInit; in CheckVectorType()
1611 llvm::APSInt maxElements(elementIndex.getBitWidth(), in CheckArrayType() local
1615 maxElements = CAT->getSize(); in CheckArrayType()
1616 elementIndex = elementIndex.extOrTrunc(maxElements.getBitWidth()); in CheckArrayType()
1617 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1641 if (elementIndex.getBitWidth() > maxElements.getBitWidth()) in CheckArrayType()
1642 maxElements = maxElements.extend(elementIndex.getBitWidth()); in CheckArrayType()
1643 else if (elementIndex.getBitWidth() < maxElements.getBitWidth()) in CheckArrayType()
1644 elementIndex = elementIndex.extend(maxElements.getBitWidth()); in CheckArrayType()
1645 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1649 if (!maxElementsKnown && elementIndex > maxElements) in CheckArrayType()
1650 maxElements = elementIndex; in CheckArrayType()
1657 if (maxElementsKnown && elementIndex == maxElements) in CheckArrayType()
1670 if (!maxElementsKnown && elementIndex > maxElements) in CheckArrayType()
1671 maxElements = elementIndex; in CheckArrayType()
1676 llvm::APSInt Zero(maxElements.getBitWidth(), maxElements.isUnsigned()); in CheckArrayType()
1677 if (maxElements == Zero) { in CheckArrayType()
1684 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements, in CheckArrayType()
1691 if (maxElementsKnown && elementIndex < maxElements) in CheckArrayType()