Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DDerivedTypes.h313 unsigned getNumElements() const { return NumContainedTys; } in getNumElements() function
330 return cast<StructType>(this)->getNumElements(); in getStructNumElements()
359 uint64_t getNumElements() const { return NumElements; } in getNumElements() function
389 return cast<ArrayType>(this)->getNumElements(); in getArrayNumElements()
410 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
418 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
428 return VectorType::get(EltTy, VTy->getNumElements()); in getTruncatedElementVectorType()
434 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType()
443 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType()
453 return getNumElements() * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp291 uint64_t NumElementsL = cast<ArrayType>(TyL)->getNumElements(); in cmpConstants()
292 uint64_t NumElementsR = cast<ArrayType>(TyR)->getNumElements(); in cmpConstants()
305 unsigned NumElementsL = cast<StructType>(TyL)->getNumElements(); in cmpConstants()
306 unsigned NumElementsR = cast<StructType>(TyR)->getNumElements(); in cmpConstants()
319 unsigned NumElementsL = cast<VectorType>(TyL)->getNumElements(); in cmpConstants()
320 unsigned NumElementsR = cast<VectorType>(TyR)->getNumElements(); in cmpConstants()
435 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
436 return cmpNumbers(STyL->getNumElements(), STyR->getNumElements()); in cmpTypes()
441 for (unsigned i = 0, e = STyL->getNumElements(); i != e; ++i) { in cmpTypes()
471 if (STyL->getNumElements() != STyR->getNumElements()) in cmpTypes()
[all …]
H A DModuleUtils.cpp36 if (Data && OldEltTy->getNumElements() < 3) in appendToGlobalArray()
66 if (EltTy->getNumElements() >= 3) in appendToGlobalArray()
70 ConstantStruct::get(EltTy, makeArrayRef(CSVals, EltTy->getNumElements())); in appendToGlobalArray()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp680 EI = new ElementInfo[VTy->getNumElements()]; in VectorInfo()
685 unsigned getDimension() const { return VTy->getNumElements(); } in getDimension()
743 if (Result.VTy->getNumElements() % VTy->getNumElements()) in computeFromBCI()
746 unsigned Factor = Result.VTy->getNumElements() / VTy->getNumElements(); in computeFromBCI()
757 for (unsigned i = 0; i < Result.VTy->getNumElements(); i += Factor) { in computeFromBCI()
838 assert((i < 2 * (signed)ArgTy->getNumElements()) && in computeFromSVI()
843 else if (i < (signed)ArgTy->getNumElements()) { in computeFromSVI()
850 Result.EI[j] = RHS.EI[i - ArgTy->getNumElements()]; in computeFromSVI()
1202 InterleavedLoad.front().SVI->getType()->getNumElements(); in combine()
H A DLowLevelType.cpp23 auto NumElements = VTy->getNumElements(); in getLLTForType()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp433 unsigned NumElems = VT->getNumElements(); in splitBinary()
474 unsigned NumElems = VT->getNumElements(); in splitCall()
524 unsigned NumElems = VT->getNumElements(); in visitSelectInst()
567 unsigned NumElems = VT->getNumElements(); in visitGetElementPtrInst()
612 unsigned NumElems = VT->getNumElements(); in visitCastInst()
631 unsigned DstNumElems = DstVT->getNumElements(); in visitBitCastInst()
632 unsigned SrcNumElems = SrcVT->getNumElements(); in visitBitCastInst()
685 unsigned NumElems = VT->getNumElements(); in visitShuffleVectorInst()
709 unsigned NumElems = VT->getNumElements(); in visitPHINode()
740 unsigned NumElems = Layout.VecTy->getNumElements(); in visitLoadInst()
[all …]
H A DSCCP.cpp306 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in AddTrackedFunction()
357 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor()
401 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined()
411 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant()
525 assert(i < cast<StructType>(V->getType())->getNumElements() && in getStructValueState()
840 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitReturnInst()
908 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitInsertValueInst()
1286 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in visitCallSite()
1314 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitCallSite()
1422 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in ResolvedUndefsIn()
[all …]
H A DSROA.cpp1463 if (NumSkippedElements.ugt(VecTy->getNumElements())) in getNaturalGEPRecursively()
1475 if (NumSkippedElements.ugt(ArrTy->getNumElements())) in getNaturalGEPRecursively()
1784 BeginIndex >= Ty->getNumElements()) in isVectorPromotionViableForSlice()
1905 return RHSTy->getNumElements() < LHSTy->getNumElements(); in isVectorPromotionViable()
2147 if (NumElements == VecTy->getNumElements()) in extractVector()
2181 assert(Ty->getNumElements() <= VecTy->getNumElements() && in insertVector()
2183 if (Ty->getNumElements() == VecTy->getNumElements()) { in insertVector()
2187 unsigned EndIndex = BeginIndex + Ty->getNumElements(); in insertVector()
2194 Mask.reserve(VecTy->getNumElements()); in insertVector()
2195 for (unsigned i = 0; i != VecTy->getNumElements(); ++i) in insertVector()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp314 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
331 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
857 unsigned ConstantAggregateZero::getNumElements() const { in getNumElements() function in ConstantAggregateZero
860 return AT->getNumElements(); in getNumElements()
862 return VT->getNumElements(); in getNumElements()
890 unsigned UndefValue::getNumElements() const { in getNumElements() function in UndefValue
893 return ST->getNumElements(); in getNumElements()
979 assert(V.size() == T->getNumElements() && in ConstantArray()
1074 assert(V.size() == T->getNumElements() && in ConstantVector()
2446 return AT->getNumElements(); in getNumElements()
[all …]
H A DConstantFold.cpp53 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector()
119 if (STy->getNumElements() == 0) break; in FoldBitCast()
353 Constant *N = ConstantInt::get(DestTy, ATy->getNumElements()); in getFoldedSizeOf()
360 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf()
426 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf()
482 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf()
664 STy->getNumElements() == 2 && in ConstantFoldCastInstruction()
897 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction()
1298 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in isMaybeZeroSizedType()
1702 VT->getNumElements()); in ConstantFoldCompareInstruction()
[all …]
H A DInstructions.cpp92 if (ET->getNumElements() != VT->getNumElements()) in areInvalidOperands()
1998 if (Index >= AT->getNumElements()) in getIndexedType()
2001 if (Index >= ST->getNumElements()) in getIndexedType()
2802 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isCastable()
2857 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in isBitCastable()
2924 if (SrcVecTy->getNumElements() == DestVecTy->getNumElements()) { in getCastOpcode()
3064 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements()) in castIsValid()
3071 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements()) in castIsValid()
3096 return (SrcVecTy->getNumElements() == DstVecTy->getNumElements()); in castIsValid()
3098 return SrcVecTy->getNumElements() == 1; in castIsValid()
[all …]
H A DDataLayout.cpp51 NumElements = ST->getNumElements(); in StructLayout()
537 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo()
598 int NumElts = Ty->getNumElements(); in getStructLayout()
761 return VectorType::get(IntTy, VecTy->getNumElements()); in getIntPtrType()
783 return VectorType::get(IntTy, VecTy->getNumElements()); in getIndexType()
H A DDebugInfoMetadata.cpp857 if (getNumElements() == 1) in isValid()
908 if (getNumElements() == 0) { in extractIfOffset()
913 if (getNumElements() == 2 && Elements[0] == dwarf::DW_OP_plus_uconst) { in extractIfOffset()
918 if (getNumElements() == 3 && Elements[0] == dwarf::DW_OP_constu) { in extractIfOffset()
1011 bool NeedsDeref = (Expr->getNumElements() > DropUntilStackValue) && in appendToStack()
1064 if (getNumElements() != 3 && getNumElements() != 6) in isConstant()
1069 if (getNumElements() == 6 && getElement(3) != dwarf::DW_OP_LLVM_fragment) in isConstant()
H A DType.cpp100 unsigned NumElements = ATy->getNumElements(); in isEmptyTy()
105 unsigned NumElements = STy->getNumElements(); in isEmptyTy()
560 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid()
569 return Idx < STy->getNumElements(); in indexValid()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DEfficiencySanitizer.cpp181 return StructTy->getNumElements(); in getArrayCounterIdx()
187 return (StructTy->getNumElements()/*field*/ + 1/*array*/); in getStructCounterSize()
305 Twine(StructTy->getNumElements()).toVector(NameStr); in createStructCounterName()
307 for (int i = StructTy->getNumElements() - 1; i >= 0; --i) { in createStructCounterName()
328 auto *TypeNameArrayTy = ArrayType::get(Int8PtrTy, StructTy->getNumElements()); in createCacheFragAuxGV()
333 auto *OffsetArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV()
338 auto *SizeArrayTy = ArrayType::get(Int32Ty, StructTy->getNumElements()); in createCacheFragAuxGV()
342 for (unsigned i = 0; i < StructTy->getNumElements(); ++i) { in createCacheFragAuxGV()
449 ConstantInt::get(Int32Ty, StructTy->getNumElements()), in createCacheFragInfoGV()
771 Idx->getSExtValue() < StructTy->getNumElements()); in instrumentGetElementPtr()
/freebsd-12.1/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp245 TempValues.reserve(VTp->getNumElements()); in getRandomValue()
246 for (unsigned i = 0; i < VTp->getNumElements(); ++i) in getRandomValue()
487 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
501 unsigned Width = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
531 getRandom() % cast<VectorType>(Val0->getType())->getNumElements()), in Act()
549 DestTy = pickVectorType(VecTy->getNumElements()); in Act()
631 unsigned NumElem = cast<VectorType>(Val0->getType())->getNumElements(); in Act()
/freebsd-12.1/contrib/llvm/tools/clang/utils/TableGen/
H A DNeonEmitter.cpp590 S += "x" + utostr(getNumElements()); in str()
648 Ret += "V" + utostr(getNumElements()) + S; in builtin_str()
1321 getReturnType().getNumElements() == 1) in emitReturnReversal()
1755 if (Elts.size() > T.getNumElements()) { in emitDagShuffle()
1757 Elts.size() == T.getNumElements() * 2, in emitDagShuffle()
1760 } else if (Elts.size() < T.getNumElements()) { in emitDagShuffle()
1762 Elts.size() == T.getNumElements() / 2, in emitDagShuffle()
1779 for (unsigned I = 0; I < T.getNumElements(); ++I) { in emitDagDup()
1801 for (unsigned I = 0; I < T.getNumElements(); ++I) { in emitDagDupTyped()
2264 UpperBound = utostr(T.getNumElements() - 1); in genIntrinsicRangeCheckCode()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h92 uint16_t getNumElements() const { in getNumElements() function
104 return getScalarSizeInBits() * getNumElements(); in getSizeInBits()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp216 if (VT0->getNumElements() != 3 || in isVec3ToVec4Shuffle()
217 VT1->getNumElements() != 4) in isVec3ToVec4Shuffle()
404 assert(CT->getNumElements() == 1); in runOnFunction()
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp759 assert(SrcTy.getNumElements() == DstTy.getNumElements() && in validateTruncExt()
784 TstTy.getNumElements() == Op0Ty.getNumElements())) && in validateSelectOp()
869 DstTy.getNumElements() == Op0Ty.getNumElements(); in buildInstr()
927 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
928 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
H A DLegalizeMutations.cpp45 unsigned NewNumElements = 1 << Log2_32_Ceil(VecTy.getNumElements()); in moreElementsToNextPow2()
/freebsd-12.1/contrib/llvm/lib/Linker/
H A DIRMover.cpp178 if (DSeqTy->getNumElements() != in areTypesIsomorphic()
179 cast<SequentialType>(SrcTy)->getNumElements()) in areTypesIsomorphic()
204 Elements.resize(SrcSTy->getNumElements()); in linkDefinedTypeBodies()
306 cast<ArrayType>(Ty)->getNumElements()); in get()
309 cast<VectorType>(Ty)->getNumElements()); in get()
784 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements(); in getArrayElements()
805 if (cast<StructType>(EltTy)->getNumElements() == 3) in linkAppendingVarProto()
821 DstNumElements = DstTy->getNumElements(); in linkAppendingVarProto()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp693 auto NumElements = ST->getNumElements(); in unpackLoadToAggregate()
742 auto NumElements = AT->getNumElements(); in unpackLoadToAggregate()
1142 if (AT->getNumElements() != UT->getNumElements()) in likeBitCastFromVector()
1146 if (ST->getNumElements() != UT->getNumElements()) in likeBitCastFromVector()
1222 unsigned Count = ST->getNumElements(); in unpackStoreToAggregate()
1268 auto NumElements = AT->getNumElements(); in unpackStoreToAggregate()
/freebsd-12.1/contrib/llvm/lib/Support/
H A DLowLevelType.cpp39 OS << "<" << getNumElements() << " x " << getElementType() << ">"; in print()
/freebsd-12.1/contrib/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp96 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString()
111 return cast<ArrayType>(C->getType())->getNumElements() == 1; in IsNullTerminatedString()

1234567