| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Descriptor.cpp | 87 const unsigned NumElems = D->getNumElems(); in ctorArrayDesc() local 92 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc() 116 const unsigned NumElems = D->getNumElems(); in dtorArrayDesc() local 121 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc() 132 const unsigned NumElems = D->getNumElems(); in moveArrayDesc() local 137 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc() 354 size_t NumElems, bool IsConst, bool IsTemporary, in Descriptor() argument 356 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor() 363 assert(NumElems <= (MaxArrayElemBytes / ElemSize)); in Descriptor() 381 unsigned NumElems, bool IsConst, bool IsTemporary, in Descriptor() argument [all …]
|
| H A D | EvaluationResult.cpp | 70 size_t NumElems = CAT->getZExtSize(); in CheckArrayInitialized() local 75 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized() 80 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized() 85 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized()
|
| H A D | Program.cpp | 414 size_t NumElems = CAT->getZExtSize(); in createDescriptor() local 418 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor() 421 return allocateDescriptor(D, *T, MDSize, NumElems, IsConst, IsTemporary, in createDescriptor() 431 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor() 433 return allocateDescriptor(D, Ty, ElemDesc, MDSize, NumElems, IsConst, in createDescriptor()
|
| H A D | Descriptor.h | 188 Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, size_t NumElems, 197 MetadataSize MD, unsigned NumElems, bool IsConst, bool IsTemporary,
|
| H A D | InterpBuiltin.cpp | 1509 APInt NumElems, Remainder; in interp__builtin_operator_new() local 1511 APInt::udivrem(Bytes, ElemSizeAP, NumElems, Remainder); in interp__builtin_operator_new() 1520 if (NumElems.getActiveBits() > in interp__builtin_operator_new() 1522 NumElems.ugt(Descriptor::MaxArrayElemBytes / ElemSize.getQuantity())) { in interp__builtin_operator_new() 1526 << NumElems.getZExtValue(); in interp__builtin_operator_new() 1530 if (!CheckArraySize(S, OpPC, NumElems.getZExtValue())) in interp__builtin_operator_new() 1533 bool IsArray = NumElems.ugt(1); in interp__builtin_operator_new() 1538 Allocator.allocate(NewCall, *ElemT, NumElems.getZExtValue(), in interp__builtin_operator_new() 1553 Allocator.allocate(Desc, NumElems.getZExtValue(), S.Ctx.getEvalID(), in interp__builtin_operator_new() 1562 ElemType, NumElems, nullptr, ArraySizeModifier::Normal, 0); in interp__builtin_operator_new() [all …]
|
| H A D | Pointer.cpp | 729 const size_t NumElems = Ptr.getNumElems(); in toRValue() local 731 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in toRValue() 734 for (unsigned I = 0; I < NumElems; ++I) { in toRValue()
|
| H A D | InterpBuiltinBitCast.cpp | 101 unsigned NumElems = FieldDesc->getNumElems(); in enumerateData() local 103 for (unsigned I = P.getIndex(); I != NumElems; ++I) { in enumerateData()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VECustomDAG.h | 216 EVT getVectorVT(EVT ElemVT, unsigned NumElems) const { in getVectorVT() argument 217 return EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in getVectorVT()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 365 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction() local 367 if (!isPowerOf2_32(NumElems)) in matchAddReduction() 371 unsigned Stages = Log2_32(NumElems); in matchAddReduction()
|
| H A D | X86ISelLowering.cpp | 4364 unsigned NumElems = VT.getVectorNumElements(); in splitVector() local 4366 assert((NumElems % 2) == 0 && (SizeInBits % 2) == 0 && in splitVector() 4387 SDValue Hi = extractSubVector(Op, NumElems / 2, DAG, dl, SizeInBits / 2); in splitVector() 4574 unsigned NumElems = OpVT.getVectorNumElements(); in insert1BitVector() local 4592 assert(IdxVal + SubVecNumElems <= NumElems && in insert1BitVector() 4631 NumElems = WideOpVT.getVectorNumElements(); in insert1BitVector() 4632 unsigned ShiftLeft = NumElems - SubVecNumElems; in insert1BitVector() 4633 unsigned ShiftRight = NumElems - SubVecNumElems - IdxVal; in insert1BitVector() 4644 if (IdxVal + SubVecNumElems == NumElems) { in insert1BitVector() 4647 if (SubVecNumElems * 2 == NumElems) { in insert1BitVector() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 801 uint64_t NumElems = 1; in tryPromoteAllocaToVector() local 804 NumElems *= ArrayTy->getNumElements(); in tryPromoteAllocaToVector() 811 NumElems *= InnerVectorTy->getNumElements(); in tryPromoteAllocaToVector() 815 if (VectorType::isValidElementType(ElemTy) && NumElems > 0) { in tryPromoteAllocaToVector() 823 if (NumElems * ElementSize != AllocaSize) in tryPromoteAllocaToVector() 824 NumElems = AllocaSize / ElementSize; in tryPromoteAllocaToVector() 825 if (NumElems > 0 && (AllocaSize % ElementSize) == 0) in tryPromoteAllocaToVector() 826 VectorTy = FixedVectorType::get(ElemTy, NumElems); in tryPromoteAllocaToVector()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeTypesGeneric.cpp | 105 unsigned NumElems = 2; in ExpandRes_BITCAST() local 107 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() 115 NumElems *= 2; in ExpandRes_BITCAST() 117 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() 124 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
|
| H A D | LegalizeDAG.cpp | 1908 unsigned NumElems = Node->getNumOperands(); in ExpandBVWithShuffles() local 1922 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBVWithShuffles() 1938 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles() 1952 ShuffleVec[k] = NumElems + j; in ExpandBVWithShuffles() 1984 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles() 1988 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i; in ExpandBVWithShuffles() 2002 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local 2014 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() 2042 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR() 2075 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyUtil.h | 57 template <typename T> T *allocateT(size_t NumElems) { in allocateT() argument 58 return Allocator->Allocate<T>(NumElems); in allocateT()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 1443 InstructionCost getFastReductionCost(unsigned NumVec, unsigned NumElems, in getFastReductionCost() argument 1451 Cost += 2 * Log2_32_Ceil(std::min(NumElems, NumEltsPerVecReg)); in getFastReductionCost() 1471 unsigned NumElems = ((FixedVectorType *)Ty)->getNumElements(); in getArithmeticReductionCost() local 1477 getFastReductionCost(NumVectors, NumElems, ScalarBits); in getArithmeticReductionCost() 1494 unsigned NumElems = ((FixedVectorType *)Ty)->getNumElements(); in getMinMaxReductionCost() local 1501 Cost += 2 * (std::min(NumElems, SystemZ::VectorBits / ScalarBits) - 1); in getMinMaxReductionCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 576 unsigned NumElems = Split.VecTy->getNumElements(); in getVectorSplit() local 579 if (NumElems == 1 || ElemTy->isPointerTy() || in getVectorSplit() 582 Split.NumFragments = NumElems; in getVectorSplit() 586 if (Split.NumPacked >= NumElems) in getVectorSplit() 589 Split.NumFragments = divideCeil(NumElems, Split.NumPacked); in getVectorSplit() 592 unsigned RemainderElems = NumElems % Split.NumPacked; in getVectorSplit()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 417 APInt NumElems = Arg->getValue(); in getAllocSize() local 418 if (!CheckedZextOrTrunc(NumElems, IntTyBits)) in getAllocSize() 422 Size = Size.umul_ov(NumElems, Overflow); in getAllocSize() 908 APInt NumElems = *PossibleSize; in visitAllocaInst() local 909 if (!CheckedZextOrTrunc(NumElems)) in visitAllocaInst() 913 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Attributes.cpp | 72 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local 76 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs() 77 NumElemsArg = NumElems; in unpackAllocSizeArgs() 579 std::optional<unsigned> NumElems; in getAsString() local 580 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString() 582 return (NumElems in getAsString() 583 ? "allocsize(" + Twine(ElemSize) + "," + Twine(*NumElems) + ")" in getAsString() 2198 const std::optional<unsigned> &NumElems) { in addAllocSizeAttr() argument 2199 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 834 unsigned NumElems = in tryCreateIncrementingWBGatScat() local 840 Builder.CreateVectorSplat(NumElems, Builder.getInt32(TypeScale)), in tryCreateIncrementingWBGatScat() 847 NumElems, in tryCreateIncrementingWBGatScat() 856 Builder.CreateVectorSplat(NumElems, Builder.getInt32(Immediate)), in tryCreateIncrementingWBGatScat()
|
| H A D | ARMTargetTransformInfo.cpp | 1673 unsigned NumElems = VTy->getNumElements(); in getGatherScatterOpCost() local 1683 NumElems * LT.first * ST->getMVEVectorCostFactor(CostKind); in getGatherScatterOpCost() 1689 NumElems * LT.first + (VariableMask ? NumElems * 5 : 0) + in getGatherScatterOpCost() 1714 TypeSize * NumElems == 128) { in getGatherScatterOpCost() 1728 TypeSize * NumElems == 128) in getGatherScatterOpCost() 1733 if (ExtSize * NumElems != 128 || NumElems < 4) in getGatherScatterOpCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandVectorPredication.cpp | 224 unsigned NumElems = ElemCount.getFixedValue(); in convertEVLToMask() local 225 Value *VLSplat = Builder.CreateVectorSplat(NumElems, EVLParam); in convertEVLToMask()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.h | 443 SPIRVType *getOpTypeVector(uint32_t NumElems, SPIRVType *ElemType, 446 SPIRVType *getOpTypeArray(uint32_t NumElems, SPIRVType *ElemType,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonSubtarget.cpp | 192 unsigned NumElems = VecTy.getVectorNumElements(); in isHVXVectorType() local 199 if (NumElems * T.getSizeInBits() == 8 * HwLen) in isHVXVectorType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.h | 119 BTFTypeArray(uint32_t ElemTypeId, uint32_t NumElems);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 1723 unsigned NumElems = Mask.size(); 1724 for (unsigned i = 0; i != NumElems; ++i) { 1728 else if (idx < (int)NumElems) 1729 Mask[i] = idx + NumElems; 1731 Mask[i] = idx - NumElems;
|