Home
last modified time | relevance | path

Searched refs:getNumElements (Results 1 – 25 of 128) sorted by relevance

123456

/NextBSD/contrib/llvm/include/llvm/IR/
HDDerivedTypes.h290 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function
352 uint64_t getNumElements() const { return NumElements; } in getNumElements() function
382 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
392 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
404 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
412 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType()
423 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType()
432 unsigned getNumElements() const { return NumElements; } in getNumElements() function
HDDataLayout.h516 return ATy->getNumElements() * in getTypeSizeInBits()
540 return VTy->getNumElements() * getTypeSizeInBits(VTy->getElementType()); in getTypeSizeInBits()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarizer.cpp379 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()
602 unsigned NumElems = Layout.VecTy->getNumElements(); in visitLoadInst()
627 unsigned NumElems = Layout.VecTy->getNumElements(); in visitStoreInst()
HDScalarReplAggregates.cpp816 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()
1465 return ST->getNumElements() <= StructMemberThreshold; in ShouldAttemptScalarRepl()
1468 return AT->getNumElements() <= ArrayElementThreshold; in ShouldAttemptScalarRepl()
1564 ElementAllocas.reserve(AT->getNumElements()); in DoScalarReplacement()
1566 for (unsigned i = 0, e = AT->getNumElements(); i != e; ++i) { in DoScalarReplacement()
1764 NumElts = AT->getNumElements(); in isHomogeneousAggregate()
1857 if (Offset >= AT->getNumElements() * EltSize) in TypeHasComponent()
[all …]
HDSROA.cpp1636 if (NumSkippedElements.ugt(VecTy->getNumElements())) in getNaturalGEPRecursively()
1648 if (NumSkippedElements.ugt(ArrTy->getNumElements())) in getNaturalGEPRecursively()
1948 BeginIndex >= Ty->getNumElements()) in isVectorPromotionViableForSlice()
1953 if (EndIndex * ElementSize != EndOffset || EndIndex > Ty->getNumElements()) in isVectorPromotionViableForSlice()
2069 return RHSTy->getNumElements() < LHSTy->getNumElements(); in isVectorPromotionViable()
2302 assert(NumElements <= VecTy->getNumElements() && "Too many elements!"); in extractVector()
2304 if (NumElements == VecTy->getNumElements()) in extractVector()
2338 assert(Ty->getNumElements() <= VecTy->getNumElements() && in insertVector()
2340 if (Ty->getNumElements() == VecTy->getNumElements()) { in insertVector()
2344 unsigned EndIndex = BeginIndex + Ty->getNumElements(); in insertVector()
[all …]
HDSCCP.cpp244 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in AddTrackedFunction()
297 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markAnythingOverdefined()
394 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
729 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitReturnInst()
793 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitInsertValueInst()
1143 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitCallSite()
1160 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitCallSite()
1272 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in ResolvedUndefsIn()
/NextBSD/contrib/llvm/lib/IR/
HDType.cpp105 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()
614 getNumElements() != Other->getNumElements()) in isLayoutIdentical()
617 if (!getNumElements()) in isLayoutIdentical()
662 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid()
671 return Idx < STy->getNumElements(); in indexValid()
HDConstants.cpp225 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()
552 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
564 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse()
587 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
612 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
663 return ConstantVector::getSplat(VTy->getNumElements(), C); in get()
[all …]
HDInstructions.cpp73 if (ET->getNumElements() != VT->getNumElements()) in areInvalidOperands()
1395 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1412 cast<VectorType>(Mask->getType())->getNumElements()), in ShuffleVectorInst()
1442 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements(); in isValidOperands()
1456 unsigned V1Size = cast<VectorType>(V1->getType())->getNumElements(); in isValidOperands()
1457 for (unsigned i = 0, e = MaskTy->getNumElements(); i != e; ++i) in isValidOperands()
1575 if (Index >= AT->getNumElements()) in getIndexedType()
1578 if (Index >= ST->getNumElements()) in getIndexedType()
2484 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isCastable()
2539 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isBitCastable()
[all …]
HDConstantFold.cpp54 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector()
120 if (STy->getNumElements() == 0) break; in FoldBitCast()
354 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf()
361 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf()
429 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf()
487 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf()
654 STy->getNumElements() == 2 && in ConstantFoldCastInstruction()
892 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction()
894 NumElts = AT->getNumElements(); in ConstantFoldInsertValueInstruction()
1198 for (unsigned i = 0, e = VTy->getNumElements(); i != e; ++i) { in ConstantFoldBinaryInstruction()
[all …]
HDValueTypes.cpp93 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
269 getVT(VTy->getElementType(), false), VTy->getNumElements()); in getVT()
286 VTy->getNumElements()); in getEVT()
HDDataLayout.cpp44 NumElements = ST->getNumElements(); in StructLayout()
489 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
561 int NumElts = Ty->getNumElements(); in getStructLayout()
705 return VectorType::get(IntTy, VecTy->getNumElements()); in getIntPtrType()
HDVerifier.cpp479 (STy->getNumElements() == 2 || STy->getNumElements() == 3) && in visitGlobalVariable()
483 if (STy->getNumElements() == 3) { in visitGlobalVariable()
2045 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitUIToFPInst()
2046 cast<VectorType>(DestTy)->getNumElements(), in visitUIToFPInst()
2068 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitSIToFPInst()
2069 cast<VectorType>(DestTy)->getNumElements(), in visitSIToFPInst()
2091 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToUIInst()
2092 cast<VectorType>(DestTy)->getNumElements(), in visitFPToUIInst()
2114 Assert(cast<VectorType>(SrcTy)->getNumElements() == in visitFPToSIInst()
2115 cast<VectorType>(DestTy)->getNumElements(), in visitFPToSIInst()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDMergeFunctions.cpp559 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants()
560 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants()
573 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants()
574 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants()
587 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements(); in cmpConstants()
588 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements(); in cmpConstants()
667 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
668 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes()
673 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes()
702 if (ATyL->getNumElements() != ATyR->getNumElements()) in cmpTypes()
[all …]
HDArgumentPromotion.cpp151 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked()
275 if (maxElements > 0 && STy->getNumElements() > maxElements) { in PromoteArguments()
284 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in PromoteArguments()
306 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in PromoteArguments()
792 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in DoPromotion()
926 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in DoPromotion()
HDGlobalOpt.cpp412 uint64_t NumElements = AT->getNumElements(); in IsUserOfGlobalSafeForSRA()
433 NumElements = SubArrayTy->getNumElements(); in IsUserOfGlobalSafeForSRA()
435 NumElements = SubVectorTy->getNumElements(); in IsUserOfGlobalSafeForSRA()
490 NewGlobals.reserve(STy->getNumElements()); in SRAGlobal()
492 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in SRAGlobal()
514 NumElements = ATy->getNumElements(); in SRAGlobal()
516 NumElements = cast<VectorType>(STy)->getNumElements(); in SRAGlobal()
1290 for (unsigned FieldNo = 0, e = STy->getNumElements(); FieldNo != e;++FieldNo){ in PerformHeapAllocSRoA()
1525 if (AllocSTy->getNumElements() <= 16 && AllocSTy->getNumElements() != 0 && in TryToOptimizeStoreOfMallocToGlobal()
1534 Value *NumElements = ConstantInt::get(IntPtrTy, AT->getNumElements()); in TryToOptimizeStoreOfMallocToGlobal()
[all …]
/NextBSD/contrib/llvm/lib/Linker/
HDLinkModules.cpp196 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
199 if (DVTy->getNumElements() != cast<VectorType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
224 Elements.resize(SrcSTy->getNumElements()); in linkDefinedTypeBodies()
317 cast<ArrayType>(Ty)->getNumElements()); in get()
320 cast<VectorType>(Ty)->getNumElements()); in get()
892 assert(OldTy->getNumElements() == 2 && "Expected to upgrade from 2 elements"); in upgradeGlobalArray()
915 assert(Initializers.size() == ATy->getNumElements() && in upgradeGlobalArray()
951 if (DstEltTy->getNumElements() == 2 && SrcEltTy->getNumElements() == 3) { in upgradeMismatchedGlobalArray()
955 if (DstEltTy->getNumElements() == 3 && SrcEltTy->getNumElements() == 2) in upgradeMismatchedGlobalArray()
1002 uint64_t NewSize = DstTy->getNumElements() + SrcTy->getNumElements(); in linkAppendingVarProto()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineVectorOps.cpp147 unsigned VectorWidth = EI.getVectorOperandType()->getNumElements(); in visitExtractElementInst()
171 if (VT->getNumElements() == VectorWidth) in visitExtractElementInst()
370 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements()
493 unsigned NumInsertVectorElts = IE.getType()->getNumElements(); in visitInsertElementInst()
530 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements(); in visitInsertElementInst()
818 cast<VectorType>(SVI.getOperand(0)->getType())->getNumElements(); in isShuffleExtractingFromLHS()
842 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements(); in visitShuffleVectorInst()
854 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements(); in visitShuffleVectorInst()
943 unsigned SrcNumElems = SrcTy->getNumElements(); in visitShuffleVectorInst()
1057 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements(); in visitShuffleVectorInst()
[all …]
HDInstCombineCasts.cpp1507 SrcTy = VectorType::get(DestTy->getElementType(), SrcTy->getNumElements()); in OptimizeVectorResize()
1517 if (SrcTy->getNumElements() > DestTy->getNumElements()) { in OptimizeVectorResize()
1521 for (unsigned i = 0, e = DestTy->getNumElements(); i != e; ++i) in OptimizeVectorResize()
1529 unsigned SrcElts = SrcTy->getNumElements(); in OptimizeVectorResize()
1534 for (unsigned i = 0, e = DestTy->getNumElements()-SrcElts; i != e; ++i) in OptimizeVectorResize()
1675 SmallVector<Value*, 8> Elements(DestVecTy->getNumElements()); in OptimizeIntegerToVectorInsertions()
1803 if (DestVTy->getNumElements() == 1 && !SrcTy->isVectorTy()) { in visitBitCast()
1832 if (SrcVTy->getNumElements() == 1) { in visitBitCast()
1855 DestTy->getVectorNumElements() == SVI->getType()->getNumElements() && in visitBitCast()
1856 SVI->getType()->getNumElements() == in visitBitCast()
[all …]
HDInstCombineCalls.cpp47 if (STy->getNumElements() == 1) in reduceToSingleValueType()
52 if (ATy->getNumElements() == 1) in reduceToSingleValueType()
205 assert(VecTy->getNumElements() == 4 && "insertps with wrong vector type"); in SimplifyX86insertps()
285 unsigned NumElts = VecTy->getNumElements(); in SimplifyX86vperm2()
696 cast<VectorType>(II->getArgOperand(0)->getType())->getNumElements(); in visitCallInst()
770 unsigned VWidth = VT->getNumElements(); in visitCallInst()
789 cast<VectorType>(II->getArgOperand(0)->getType())->getNumElements(); in visitCallInst()
902 unsigned Size = SelectorType->getNumElements(); in visitCallInst()
933 unsigned Size = cast<VectorType>(V->getType())->getNumElements(); in visitCallInst()
/NextBSD/contrib/llvm/tools/clang/utils/TableGen/
HDNeonEmitter.cpp182 unsigned getNumElements() const { return Bitwidth / ElementBitwidth; } in getNumElements() function in __anonb62af4a80111::Type
568 S += "x" + utostr(getNumElements()); in str()
626 Ret += "V" + utostr(getNumElements()) + S; in builtin_str()
1201 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable()
1209 for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J) in emitReverseVariable()
1228 if (!NewV.getType().isVector() || NewV.getType().getNumElements() == 1) in emitArgumentReversal()
1241 getReturnType().getNumElements() == 1) in emitReturnReversal()
1342 for (unsigned J = 0; J < BaseType.getNumElements(); ++J) { in emitBodyAsBuiltinCall()
1655 llvm::make_unique<MaskExpander>(Arg1.first.getNumElements())); in emitDagShuffle()
1669 if (Elts.size() > T.getNumElements()) { in emitDagShuffle()
[all …]
/NextBSD/contrib/llvm/tools/llvm-stress/
HDllvm-stress.cpp206 TempValues.reserve(VTp->getNumElements()); in getRandomValue()
207 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue()
433 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
446 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
476 Ran->Rand() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
494 DestTy = pickVectorType(VecTy->getNumElements()); in Act()
582 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDModuleUtils.cpp56 if (EltTy->getNumElements() >= 3) in appendToGlobalArray()
59 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
/NextBSD/contrib/llvm/lib/CodeGen/
HDAnalysis.cpp60 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex()
103 for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) in ComputeValueVTs()
377 return Idx < AT->getNumElements(); in indexReallyValid()
379 return Idx < cast<StructType>(T)->getNumElements(); in indexReallyValid()
/NextBSD/contrib/llvm/lib/Target/
HDTargetLoweringObjectFile.cpp84 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString()
99 return cast<ArrayType>(C->getType())->getNumElements() == 1; in IsNullTerminatedString()

123456