/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
D | CollectionToArrayTester.java | 67 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray() 77 assertEquals("toArray(emptyT[]).length:", getNumElements(), array.length); in testToArray_emptyArray_ordered() 87 getNumElements(), array.length); in testToArray_emptyArrayOfObject() 92 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray() 100 E[] array = getSubjectGenerator().createArray(getNumElements()); in testToArray_rightSizedArray_ordered() 107 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject() 115 Object[] array = new Object[getNumElements()]; in testToArray_rightSizedArrayOfObject_ordered() 122 E[] array = getSubjectGenerator().createArray(getNumElements() + 2); in testToArray_oversizedArray() 123 array[getNumElements()] = samples.e3; in testToArray_oversizedArray() 124 array[getNumElements() + 1] = samples.e3; in testToArray_oversizedArray() [all …]
|
D | SetEqualsTester.java | 45 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherSetWithDifferentElements() 57 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_containingNull() 68 Collection<E> elements = getSampleElements(getNumElements() - 1); in testEquals_otherContainsNull() 79 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_smallerSet() 85 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_largerSet()
|
D | ListAddAtIndexTester.java | 83 getList().add(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 84 expectAdded(getNumElements() / 2, samples.e3); in testAddAtIndex_middle() 90 getList().add(getNumElements(), samples.e3); in testAddAtIndex_end() 91 expectAdded(getNumElements(), samples.e3); in testAddAtIndex_end() 128 getList().add(getNumElements() + 1, samples.e3); in testAddAtIndex_tooLarge()
|
D | ListAddAllAtIndexTester.java | 140 getList().addAll(getNumElements() / 2, createDisjointCollection())); in testAddAllAtIndex_middle() 141 expectAdded(getNumElements() / 2, createDisjointCollection()); in testAddAllAtIndex_middle() 148 getList().addAll(getNumElements(), createDisjointCollection())); in testAddAllAtIndex_end() 149 expectAdded(getNumElements(), createDisjointCollection()); in testAddAllAtIndex_end() 176 getList().addAll(getNumElements() + 1, MinimalCollection.of(samples.e3)); in testAddAllAtIndex_tooLarge()
|
D | ListSubListTester.java | 57 getList().subList(0, getNumElements() + 1); in testSubList_endTooLarge() 85 getList(), getList().subList(0, getNumElements())); in testSubList_entireList() 94 Arrays.asList(createSamplesArray()).subList(1, getNumElements()); in testSubList_subListRemoveAffectsOriginal() 180 int size = getNumElements(); in testSubList_size() 196 int size = getNumElements(); in testSubList_isEmpty() 210 int size = getNumElements(); in testSubList_get() 234 int size = getNumElements(); in testSubList_contains() 252 int size = getNumElements(); in testSubList_indexOf()
|
D | ListRemoveAtIndexTester.java | 63 getList().remove(getNumElements()); in testRemoveAtIndex_tooLarge() 79 runRemoveTest(getNumElements() / 2); in testRemoveAtIndex_middle() 85 runRemoveTest(getNumElements() - 1); in testRemoveAtIndex_last()
|
D | ListLastIndexOfTester.java | 48 array[getNumElements() / 2] = samples.e0; in testLastIndexOf_duplicate() 52 getNumElements() / 2, getList().lastIndexOf(samples.e0)); in testLastIndexOf_duplicate()
|
D | SetCreationTester.java | 49 Arrays.asList(array).subList(1, getNumElements()); in testCreateWithDuplicates_nullDuplicatesNotRejected() 61 Arrays.asList(array).subList(1, getNumElements()); in testCreateWithDuplicates_nonNullDuplicatesNotRejected()
|
D | ListEqualsTester.java | 75 Collection<E> fewerElements = getSampleElements(getNumElements() - 1); in testEquals_shorterList() 81 Collection<E> moreElements = getSampleElements(getNumElements() + 1); in testEquals_longerList()
|
D | ListListIteratorTester.java | 98 getList().listIterator(getNumElements() + 1); in testListIterator_tooHigh() 105 getList().listIterator(getNumElements()); in testListIterator_atSize()
|
D | ListSetTester.java | 72 getNumElements(), getList().size()); in doTestSet() 87 int index = getNumElements(); in testSet_indexTooHigh()
|
D | CollectionSizeTester.java | 32 assertEquals("size():", getNumElements(), collection.size()); in testSize()
|
D | MapSizeTester.java | 32 assertEquals("size():", getNumElements(), getMap().size()); in testSize()
|
D | ListGetTester.java | 44 getList().get(getNumElements()); in testGet_tooLarge()
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | AbstractContainerTester.java | 168 E[] array = getSubjectGenerator().createArray(getNumElements()); in createSamplesArray() 196 protected int getNumElements() { in getNumElements() method in AbstractContainerTester 197 return getSubjectGenerator().getCollectionSize().getNumElements(); in getNumElements() 205 return getSampleElements(getNumElements()); in getSampleElements() 228 return getNumElements() / 2; in getNullLocation()
|
/external/llvm/utils/TableGen/ |
D | TGValueTypes.cpp | 51 return getNumElements() * getElementType().getSizeInBits(); in getSizeInBits() 56 unsigned getNumElements() const { in getNumElements() function in ExtendedVectorType 99 return static_cast<const ExtendedVectorType *>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
|
/external/llvm/include/llvm/ |
D | DerivedTypes.h | 288 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 352 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 393 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 405 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType() 413 unsigned getNumElements() const { return NumElements; } in getNumElements() function
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 62 unsigned Width = VTy->getNumElements(); in FindScalarElement() 110 unsigned VectorWidth = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst() 139 if (VT->getNumElements() == VectorWidth) in visitExtractElementInst() 213 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectSingleShuffleElements() 292 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements() 368 unsigned NumVectorElts = IE.getType()->getNumElements(); in visitInsertElementInst() 397 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() 421 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst() 433 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst() 551 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements(); in visitShuffleVectorInst() [all …]
|
D | InstCombineCasts.cpp | 1414 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize() 1424 if (SrcTy->getNumElements() > DestTy->getNumElements()) { in OptimizeVectorResize() 1428 for (unsigned i = 0, e = DestTy->getNumElements(); i != e; ++i) in OptimizeVectorResize() 1436 unsigned SrcElts = SrcTy->getNumElements(); in OptimizeVectorResize() 1441 for (unsigned i = 0, e = DestTy->getNumElements()-SrcElts; i != e; ++i) in OptimizeVectorResize() 1572 SmallVector<Value*, 8> Elements(DestVecTy->getNumElements()); in OptimizeIntegerToVectorInsertions() 1700 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) { in visitBitCast() 1729 if (SrcVTy->getNumElements() == 1 && !DestTy->isVectorTy()) { in visitBitCast() 1741 cast<VectorType>(DestTy)->getNumElements() == in visitBitCast() 1742 SVI->getType()->getNumElements() && in visitBitCast() [all …]
|
/external/llvm/lib/VMCore/ |
D | Type.cpp | 118 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() 124 unsigned NumElements = STy->getNumElements(); in isEmptyTy() 216 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 230 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 234 return cast<VectorType>(this)->getNumElements(); in getVectorNumElements() 624 getNumElements() != Other->getNumElements()) in isLayoutIdentical() 668 return CU->getZExtValue() < STy->getNumElements(); in indexValid() 678 return Idx < STy->getNumElements(); in indexValid()
|
D | Verifier.cpp | 436 Assert1(STy && STy->getNumElements() == 2 && in visitGlobalVariable() 950 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst() 951 cast<VectorType>(DestTy)->getNumElements(), in visitUIToFPInst() 973 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst() 974 cast<VectorType>(DestTy)->getNumElements(), in visitSIToFPInst() 996 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst() 997 cast<VectorType>(DestTy)->getNumElements(), in visitFPToUIInst() 1019 Assert1(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst() 1020 cast<VectorType>(DestTy)->getNumElements(), in visitFPToSIInst() 1041 Assert1(VSrc->getNumElements() == VDest->getNumElements(), in visitPtrToIntInst() [all …]
|
D | ConstantFold.cpp | 52 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector() 114 if (STy->getNumElements() == 0) break; in FoldBitCast() 336 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf() 343 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() 411 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() 469 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() 628 STy->getNumElements() == 2 && in ConstantFoldCastInstruction() 836 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction() 838 NumElts = AT->getNumElements(); in ConstantFoldInsertValueInstruction() 1133 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() [all …]
|
D | Constants.cpp | 136 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue() 153 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue() 178 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) : 0; in getAggregateElement() 401 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue() 413 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse() 438 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 463 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 509 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 523 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 542 return ConstantVector::getSplat(VTy->getNumElements(), C); in getZeroValueForNegation() [all …]
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 178 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic() 181 if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic() 218 Elements.resize(SrcSTy->getNumElements()); in linkDefinedTypeBodies() 288 cast<ArrayType>(Ty)->getNumElements()); in getImpl() 291 cast<VectorType>(Ty)->getNumElements()); in getImpl() 679 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements(); in linkAppendingVarProto() 882 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements(); in getArrayElements()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 173 TempValues.reserve(VTp->getNumElements()); in getRandomValue() 174 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue() 415 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act() 428 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act() 458 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act() 476 DestTy = pickVectorType(VecTy->getNumElements()); in Act() 564 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
|