| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 514 unsigned NumElems = VT->getNumElements(); in splitUnary() local 517 assert(Op.size() == NumElems && "Mismatched unary operation"); in splitUnary() 519 Res.resize(NumElems); in splitUnary() 520 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitUnary() 534 unsigned NumElems = VT->getNumElements(); in splitBinary() local 538 assert(VOp0.size() == NumElems && "Mismatched binary operation"); in splitBinary() 539 assert(VOp1.size() == NumElems && "Mismatched binary operation"); in splitBinary() 541 Res.resize(NumElems); in splitBinary() 542 for (unsigned Elem = 0; Elem < NumElems; ++Elem) { in splitBinary() 577 unsigned NumElems = VT->getNumElements(); in splitCall() local [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | Descriptor.cpp | 64 const unsigned NumElems = D->getNumElems(); in ctorArrayDesc() local 69 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc() 89 const unsigned NumElems = D->getNumElems(); in dtorArrayDesc() local 94 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc() 104 const unsigned NumElems = D->getNumElems(); in moveArrayDesc() local 109 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc() 208 size_t NumElems, bool IsConst, bool IsTemporary, in Descriptor() argument 210 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor() 229 unsigned NumElems, bool IsConst, bool IsTemporary, in Descriptor() argument 232 Size(ElemSize * NumElems), MDSize(MD.value_or(0)), in Descriptor()
|
| H A D | Program.cpp | 327 size_t NumElems = CAT->getSize().getZExtValue(); in createDescriptor() local 331 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor() 334 return allocateDescriptor(D, *T, MDSize, NumElems, IsConst, IsTemporary, in createDescriptor() 345 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor() 347 return allocateDescriptor(D, ElemDesc, MDSize, NumElems, IsConst, in createDescriptor()
|
| H A D | EvalEmitter.cpp | 183 const size_t NumElems = Ptr.getNumElems(); in emitRetValue() local 185 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in emitRetValue() 188 for (unsigned I = 0; I < NumElems; ++I) { in emitRetValue()
|
| H A D | Descriptor.h | 125 Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, size_t NumElems, 133 unsigned NumElems, bool IsConst, bool IsTemporary, bool IsMutable);
|
| H A D | Interp.cpp | 419 size_t NumElems = CAT->getSize().getZExtValue(); in CheckArrayInitialized() local 424 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized() 429 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized() 434 for (size_t I = 0; I != NumElems; ++I) { in CheckArrayInitialized()
|
| H A D | ByteCodeExprGen.cpp | 922 size_t NumElems = CAT->getSize().getZExtValue(); in visitArrayInitializer() local 928 for (size_t I = 0; I != NumElems; ++I) { in visitArrayInitializer() 943 size_t NumElems = CAT->getSize().getZExtValue(); in visitArrayInitializer() local 950 for (size_t I = 0; I != NumElems; ++I) { in visitArrayInitializer()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandVectorPredication.cpp | 149 unsigned NumElems); 204 unsigned NumElems) { in createStepVector() argument 208 for (unsigned Idx = 0; Idx < NumElems; ++Idx) in createStepVector() 231 unsigned NumElems = ElemCount.getFixedValue(); in convertEVLToMask() local 232 Value *VLSplat = Builder.CreateVectorSplat(NumElems, EVLParam); in convertEVLToMask() 233 Value *IdxVec = createStepVector(Builder, LaneTy, NumElems); in convertEVLToMask()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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 | 1805 unsigned NumElems = Node->getNumOperands(); in ExpandBVWithShuffles() local 1819 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBVWithShuffles() 1835 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles() 1849 ShuffleVec[k] = NumElems + j; in ExpandBVWithShuffles() 1881 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles() 1885 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i; in ExpandBVWithShuffles() 1899 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local 1911 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() 1939 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR() 1972 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() [all …]
|
| H A D | LegalizeVectorOps.cpp | 1639 unsigned NumElems = VT.getVectorNumElements(); in UnrollStrictFPOp() local 1655 for (unsigned i = 0; i < NumElems; ++i) { in UnrollStrictFPOp() 1697 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC() local 1704 SmallVector<SDValue, 8> Ops(NumElems); in UnrollVSETCC() 1705 for (unsigned i = 0; i < NumElems; ++i) { in UnrollVSETCC()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 368 unsigned NumElems = cast<FixedVectorType>(BO->getType())->getNumElements(); in matchAddReduction() local 370 if (!isPowerOf2_32(NumElems)) in matchAddReduction() 374 unsigned Stages = Log2_32(NumElems); in matchAddReduction()
|
| H A D | X86ISelLowering.cpp | 4394 unsigned NumElems = VT.getVectorNumElements(); in getMOVL() local 4396 Mask.push_back(NumElems); in getMOVL() 4397 for (unsigned i = 1; i != NumElems; ++i) in getMOVL() 6668 unsigned NumElems = VT.getVectorNumElements(); in splitVector() local 6670 assert((NumElems % 2) == 0 && (SizeInBits % 2) == 0 && in splitVector() 6679 SDValue Hi = extractSubVector(Op, NumElems / 2, DAG, dl, SizeInBits / 2); in splitVector() 6867 unsigned NumElems = OpVT.getVectorNumElements(); in insert1BitVector() local 6872 if ((!Subtarget.hasDQI() && NumElems == 8) || NumElems < 8) in insert1BitVector() 6887 assert(IdxVal + SubVecNumElems <= NumElems && in insert1BitVector() 6926 NumElems = WideOpVT.getVectorNumElements(); in insert1BitVector() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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() 759 APInt NumElems = C->getValue(); in visitAllocaInst() local 760 if (!CheckedZextOrTrunc(NumElems)) in visitAllocaInst() 764 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.h | 189 SPIRVType *getOpTypeVector(uint32_t NumElems, SPIRVType *ElemType, 192 SPIRVType *getOpTypeArray(uint32_t NumElems, SPIRVType *ElemType,
|
| H A D | SPIRVGlobalRegistry.cpp | 103 SPIRVType *SPIRVGlobalRegistry::getOpTypeVector(uint32_t NumElems, in getOpTypeVector() argument 114 .addImm(NumElems); in getOpTypeVector() 520 SPIRVType *SPIRVGlobalRegistry::getOpTypeArray(uint32_t NumElems, in getOpTypeArray() argument 527 buildConstantInt(NumElems, MIRBuilder, nullptr, EmitIR); in getOpTypeArray()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Attributes.cpp | 68 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local 72 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs() 73 NumElemsArg = NumElems; in unpackAllocSizeArgs() 456 std::optional<unsigned> NumElems; in getAsString() local 457 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString() 459 return (NumElems in getAsString() 460 ? "allocsize(" + Twine(ElemSize) + "," + Twine(*NumElems) + ")" in getAsString() 1773 const std::optional<unsigned> &NumElems) { in addAllocSizeAttr() argument 1774 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 834 unsigned NumElems = in tryCreateIncrementingWBGatScat() local 840 Builder.CreateVectorSplat(NumElems, Builder.getInt32(TypeScale)), in tryCreateIncrementingWBGatScat() 846 NumElems, in tryCreateIncrementingWBGatScat() 854 Builder.CreateVectorSplat(NumElems, Builder.getInt32(Immediate)), in tryCreateIncrementingWBGatScat()
|
| H A D | ARMTargetTransformInfo.cpp | 1576 unsigned NumElems = VTy->getNumElements(); in getGatherScatterOpCost() local 1586 NumElems * LT.first * ST->getMVEVectorCostFactor(CostKind); in getGatherScatterOpCost() 1590 NumElems * LT.first + in getGatherScatterOpCost() 1615 TypeSize * NumElems == 128) { in getGatherScatterOpCost() 1629 TypeSize * NumElems == 128) in getGatherScatterOpCost() 1634 if (ExtSize * NumElems != 128 || NumElems < 4) in getGatherScatterOpCost()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| H A D | HexagonSubtarget.cpp | 197 unsigned NumElems = VecTy.getVectorNumElements(); in isHVXVectorType() local 204 if (NumElems * T.getSizeInBits() == 8 * HwLen) in isHVXVectorType()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAGNodes.h | 1569 unsigned NumElems = Mask.size(); 1570 for (unsigned i = 0; i != NumElems; ++i) { 1574 else if (idx < (int)NumElems) 1575 Mask[i] = idx + NumElems; 1577 Mask[i] = idx - NumElems;
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/BPF/ |
| H A D | BTFDebug.h | 119 BTFTypeArray(uint32_t ElemTypeId, uint32_t NumElems);
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyISelLowering.cpp | 2590 unsigned NumElems = SrcVT.getVectorNumElements(); in truncateVectorWithNARROW() local 2591 if (!isPowerOf2_32(NumElems)) in truncateVectorWithNARROW() 2593 assert(DstVT.getVectorNumElements() == NumElems && "Illegal truncation"); in truncateVectorWithNARROW() 2612 SDValue Hi = extractSubVector(In, NumElems / 2, DAG, DL, SubSizeInBits); in truncateVectorWithNARROW() 2623 EVT PackedVT = EVT::getVectorVT(Ctx, PackedSVT, NumElems / 2); in truncateVectorWithNARROW() 2627 PackedVT = EVT::getVectorVT(Ctx, PackedSVT, NumElems); in truncateVectorWithNARROW()
|