| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 289 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function 351 uint64_t getNumElements() const { return NumElements; } in getNumElements() function 381 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger() 391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType() 403 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType() 411 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() 422 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() 431 unsigned getNumElements() const { return NumElements; } in getNumElements() function
|
| /minix3/minix/llvm/passes/include/magic/support/ |
| H A D | SmartType.h | 68 unsigned getNumElements() const; 199 inline unsigned SmartType::getNumElements() const { in getNumElements() function 203 unsigned EDINumElements = aEDIType.getNumElements(); in getNumElements() 206 numElements = ((ArrayType*)type)->getNumElements(); in getNumElements()
|
| H A D | EDIType.h | 44 unsigned getNumElements() const; 107 inline unsigned EDIType::getNumElements() const { in getNumElements() function 119 return isArrayTy() || isVectorTy() ? getTypeArray().getNumElements() : 1; in getNumDimensions() 158 unsigned numValues = aDIArray.getNumElements(); in getEnumValues()
|
| /minix3/minix/llvm/passes/magic/support/ |
| H A D | EDIType.cpp | 64 unsigned numContainedTypes = aDIArray.getNumElements(); in getContainedType() 139 return DTA.getNumElements(); in getTypeArrayNum() 141 return getTypeArray().getNumElements(); in getTypeArrayNum() 151 if(aDIArray.getNumElements() == 0 && checkOpaqueTypes && myNames.size() > 0) { in getTypeArray() 257 unsigned numElements = getNumElements(); in printDescription() 342 if(getNumElements() != other->getNumElements()) { in equals()
|
| H A D | TypeUtil.cpp | 323 …sArrayTy() ? ((TYPECONST ArrayType*) type)->getNumElements() : ((TYPECONST VectorType*) type)->get… in printTypeString() 392 …eturn ((IntegerType*)containedType)->getBitWidth() * ((ArrayType*)containedType)->getNumElements(); in typeToBits()
|
| H A D | SmartType.cpp | 255 unsigned numElements = aEDIType.getNumElements(); in equals() 256 unsigned otherNumElements = other->getEDIType()->getNumElements(); in equals() 677 unsigned nEDINumElements = aEDIType->getNumElements(); in isTypeConsistent() 687 if(!type->isArrayTy() || ((ArrayType*)type)->getNumElements() != nEDINumElements) { in isTypeConsistent() 693 if(!type->isVectorTy() || ((VectorType*)type)->getNumElements() != nEDINumElements) { in isTypeConsistent()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 379 unsigned NumElems = VT->getNumElements(); in splitBinary() 399 unsigned NumElems = VT->getNumElements(); in visitSelectInst() 442 unsigned NumElems = VT->getNumElements(); in visitGetElementPtrInst() 474 unsigned NumElems = VT->getNumElements(); in visitCastInst() 493 unsigned DstNumElems = DstVT->getNumElements(); in visitBitCastInst() 494 unsigned SrcNumElems = SrcVT->getNumElements(); in visitBitCastInst() 547 unsigned NumElems = VT->getNumElements(); in visitShuffleVectorInst() 571 unsigned NumElems = VT->getNumElements(); in visitPHINode() 601 unsigned NumElems = Layout.VecTy->getNumElements(); in visitLoadInst() 625 unsigned NumElems = Layout.VecTy->getNumElements(); in visitStoreInst()
|
| H A D | ScalarReplAggregates.cpp | 816 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in ConvertScalar_ExtractValue() 830 for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) { in ConvertScalar_ExtractValue() 945 for (unsigned i = 0, e = ST->getNumElements(); i != e; ++i) { in ConvertScalar_InsertValue() 958 for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) { in ConvertScalar_InsertValue() 1469 return ST->getNumElements() <= StructMemberThreshold; in ShouldAttemptScalarRepl() 1472 return AT->getNumElements() <= ArrayElementThreshold; in ShouldAttemptScalarRepl() 1566 ElementAllocas.reserve(AT->getNumElements()); in DoScalarReplacement() 1568 for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) { in DoScalarReplacement() 1762 NumElts = AT->getNumElements(); in isHomogeneousAggregate() 1853 if (Offset >= AT->getNumElements() * EltSize) in TypeHasComponent() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Linker/ |
| H A D | LinkModules.cpp | 195 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic() 198 if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements()) in areTypesIsomorphic() 223 Elements.resize(SrcSTy->getNumElements()); in linkDefinedTypeBodies() 315 cast<ArrayType>(Ty)->getNumElements()); in get() 318 cast<VectorType>(Ty)->getNumElements()); in get() 887 assert(OldTy->getNumElements() == 2 && "Expected to upgrade from 2 elements"); in upgradeGlobalArray() 910 assert(Initializers.size() == ATy->getNumElements() && in upgradeGlobalArray() 946 if (DstEltTy->getNumElements() == 2 && SrcEltTy->getNumElements() == 3) { in upgradeMismatchedGlobalArray() 950 if (DstEltTy->getNumElements() == 3 && SrcEltTy->getNumElements() == 2) in upgradeMismatchedGlobalArray() 997 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements(); in linkAppendingVarProto() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 554 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants() 555 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants() 568 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants() 569 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants() 582 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements(); in cmpConstants() 583 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements(); in cmpConstants() 661 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes() 662 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes() 667 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes() 696 if (ATyL->getNumElements() != ATyR->getNumElements()) in cmpTypes() [all …]
|
| H A D | ArgumentPromotion.cpp | 153 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked() 257 if (maxElements > 0 && STy->getNumElements() > maxElements) { in PromoteArguments() 266 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in PromoteArguments() 288 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in PromoteArguments() 627 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in DoPromotion() 770 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in DoPromotion() 905 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in DoPromotion()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | ModuleUtils.cpp | 55 if (EltTy->getNumElements() >= 3) in appendToGlobalArray() 58 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | Type.cpp | 105 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() 111 unsigned NumElements = STy->getNumElements(); in isEmptyTy() 197 return cast<StructType>(this)->getNumElements(); in getStructNumElements() 209 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements() 213 return cast<VectorType>(this)->getNumElements(); in getVectorNumElements() 612 getNumElements() != Other->getNumElements()) in isLayoutIdentical() 657 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid() 666 return Idx < STy->getNumElements(); in indexValid()
|
| H A D | DebugInfo.cpp | 151 return getNumElements() && getElement(0) == dwarf::DW_OP_piece; in isVariablePiece() 931 for (unsigned Ti = 0, Te = Retain.getNumElements(); Ti != Te; ++Ti) { in generateDITypeIdentifierMap() 980 for (unsigned i = 0, e = GVs.getNumElements(); i != e; ++i) { in processModule() 988 for (unsigned i = 0, e = SPs.getNumElements(); i != e; ++i) in processModule() 991 for (unsigned i = 0, e = EnumTypes.getNumElements(); i != e; ++i) in processModule() 994 for (unsigned i = 0, e = RetainedTypes.getNumElements(); i != e; ++i) in processModule() 997 for (unsigned i = 0, e = Imports.getNumElements(); i != e; ++i) { in processModule() 1028 for (unsigned i = 0, e = DTA.getNumElements(); i != e; ++i) in processType() 1033 for (unsigned i = 0, e = DA.getNumElements(); i != e; ++i) { in processType() 1080 for (unsigned I = 0, E = TParams.getNumElements(); I != E; ++I) { in processSubprogram() [all …]
|
| H A D | Constants.cpp | 225 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue() 242 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue() 261 return Elt < CAZ->getNumElements() ? CAZ->getElementValue(Elt) : nullptr; in getAggregateElement() 264 return Elt < UV->getNumElements() ? UV->getElementValue(Elt) : nullptr; in getAggregateElement() 267 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement() 541 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue() 553 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse() 576 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 601 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() 647 return ConstantVector::getSplat(VTy->getNumElements(), C); in get() [all …]
|
| H A D | Instructions.cpp | 73 if (ET->getNumElements() != VT->getNumElements()) in areInvalidOperands() 1543 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst() 1560 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst() 1590 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements(); in isValidOperands() 1604 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements(); in isValidOperands() 1605 for (unsigned i = 0, e = MaskTy->getNumElements(); i != e; ++i) in isValidOperands() 1723 if (Index >= AT->getNumElements()) in getIndexedType() 1726 if (Index >= ST->getNumElements()) in getIndexedType() 2635 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isCastable() 2696 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isBitCastable() [all …]
|
| H A D | ValueTypes.cpp | 93 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements() 267 getVT(VTy->getElementType(), false), VTy->getNumElements()); in getVT() 284 VTy->getNumElements()); in getEVT()
|
| H A D | ConstantFold.cpp | 54 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector() 120 if (STy->getNumElements() == 0) break; in FoldBitCast() 342 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf() 349 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() 417 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() 475 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() 642 STy->getNumElements() == 2 && in ConstantFoldCastInstruction() 874 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction() 876 NumElts = AT->getNumElements(); in ConstantFoldInsertValueInstruction() 1180 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineVectorOps.cpp | 68 unsigned Width = VTy->getNumElements(); in FindScalarElement() 190 unsigned VectorWidth = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst() 219 if (VT->getNumElements() == VectorWidth) in visitExtractElementInst() 418 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements() 541 unsigned NumInsertVectorElts = IE.getType()->getNumElements(); in visitInsertElementInst() 578 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst() 867 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst() 879 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst() 994 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements(); in visitShuffleVectorInst() 998 RHSOp0Width = cast<VectorType>(RHSOp0->getType())->getNumElements(); in visitShuffleVectorInst()
|
| H A D | InstCombineCasts.cpp | 1510 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize() 1520 if (SrcTy->getNumElements() > DestTy->getNumElements()) { in OptimizeVectorResize() 1524 for (unsigned i = 0, e = DestTy->getNumElements(); i != e; ++i) in OptimizeVectorResize() 1532 unsigned SrcElts = SrcTy->getNumElements(); in OptimizeVectorResize() 1537 for (unsigned i = 0, e = DestTy->getNumElements()-SrcElts; i != e; ++i) in OptimizeVectorResize() 1680 SmallVector<Value*, 8> Elements(DestVecTy->getNumElements()); in OptimizeIntegerToVectorInsertions() 1811 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) { in visitBitCast() 1840 if (SrcVTy->getNumElements() == 1) { in visitBitCast() 1863 DestTy->getVectorNumElements() == SVI->getType()->getNumElements() && in visitBitCast() 1864 SVI->getType()->getNumElements() == in visitBitCast() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/utils/TableGen/ |
| H A D | NeonEmitter.cpp | 180 unsigned getNumElements() const { return Bitwidth / ElementBitwidth; } in getNumElements() function in __anon870a9de20111::Type 558 S += "x" + utostr(getNumElements()); in str() 610 Ret += "V" + utostr(getNumElements()) + S; in builtin_str() 1184 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1192 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable() 1211 if (!NewV.getType().isVector() || NewV.getType().getNumElements() == 1) in emitArgumentReversal() 1224 getReturnType().getNumElements() == 1) in emitReturnReversal() 1325 for (unsigned J = 0; J < BaseType.getNumElements(); ++J) { in emitBodyAsBuiltinCall() 1642 MaskExpander ME(Arg1.first.getNumElements()); in emitDagShuffle() 1662 if (Elts.size() > T.getNumElements()) { in emitDagShuffle() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 185 TempValues.reserve(VTp->getNumElements()); in getRandomValue() 186 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue() 425 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act() 438 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act() 468 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act() 486 DestTy = pickVectorType(VecTy->getNumElements()); in Act() 574 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DwarfExpression.cpp | 203 unsigned N = Expr.getNumElements(); in AddMachineRegExpression() 239 unsigned N = Expr.getNumElements(); in AddExpression()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ |
| H A D | TargetLoweringObjectFile.cpp | 84 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString() 99 return cast<ArrayType>(C->getType())->getNumElements() == 1; in IsNullTerminatedString()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/ |
| H A D | Analysis.cpp | 60 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() 103 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs() 376 return Idx < AT->getNumElements(); in indexReallyValid() 378 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
|