Lines Matching refs:maxElements

664   int maxElements = 0x7FFFFFFF;  in numArrayElements()  local
667 maxElements = static_cast<int>(CAT->getSize().getZExtValue()); in numArrayElements()
669 return maxElements; in numArrayElements()
695 int maxElements = 0; in CheckImplicitInitList() local
698 maxElements = numArrayElements(T); in CheckImplicitInitList()
700 maxElements = numStructUnionElements(T); in CheckImplicitInitList()
702 maxElements = T->getAs<VectorType>()->getNumElements(); in CheckImplicitInitList()
706 if (maxElements == 0) { in CheckImplicitInitList()
1271 unsigned maxElements = VT->getNumElements(); in CheckVectorType() local
1323 for (unsigned i = 0; i < maxElements; ++i, ++numEltsInit) { in CheckVectorType()
1382 for (unsigned i = 0; i < maxElements; ++i) { in CheckVectorType()
1411 if (numEltsInit != maxElements) { in CheckVectorType()
1415 << (numEltsInit < maxElements) << maxElements << numEltsInit; in CheckVectorType()
1463 llvm::APSInt maxElements(elementIndex.getBitWidth(), in CheckArrayType() local
1467 maxElements = CAT->getSize(); in CheckArrayType()
1468 elementIndex = elementIndex.extOrTrunc(maxElements.getBitWidth()); in CheckArrayType()
1469 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1493 if (elementIndex.getBitWidth() > maxElements.getBitWidth()) in CheckArrayType()
1494 maxElements = maxElements.extend(elementIndex.getBitWidth()); in CheckArrayType()
1495 else if (elementIndex.getBitWidth() < maxElements.getBitWidth()) in CheckArrayType()
1496 elementIndex = elementIndex.extend(maxElements.getBitWidth()); in CheckArrayType()
1497 elementIndex.setIsUnsigned(maxElements.isUnsigned()); in CheckArrayType()
1501 if (!maxElementsKnown && elementIndex > maxElements) in CheckArrayType()
1502 maxElements = elementIndex; in CheckArrayType()
1509 if (maxElementsKnown && elementIndex == maxElements) in CheckArrayType()
1522 if (!maxElementsKnown && elementIndex > maxElements) in CheckArrayType()
1523 maxElements = elementIndex; in CheckArrayType()
1528 llvm::APSInt Zero(maxElements.getBitWidth(), maxElements.isUnsigned()); in CheckArrayType()
1529 if (maxElements == Zero) { in CheckArrayType()
1536 DeclType = SemaRef.Context.getConstantArrayType(elementType, maxElements, in CheckArrayType()
1543 if (maxElementsKnown && elementIndex < maxElements) in CheckArrayType()