Home
last modified time | relevance | path

Searched refs:NumElems (Results 1 – 25 of 36) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp416 unsigned NumElems = VT->getNumElements(); in splitBinary() local
420 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
421 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
423 Res.resize(NumElems); in splitBinary()
424 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary()
457 unsigned NumElems = VT->getNumElements(); in splitCall() local
471 assert(Scattered[I].size() == NumElems && "mismatched call operands"); in splitCall()
477 ValueVector Res(NumElems); in splitCall()
484 for (unsigned Elem = 0; Elem < NumElems; ++Elem) { in splitCall()
507 unsigned NumElems = VT->getNumElements(); in visitSelectInst() local
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp382 unsigned NumElems = VT->getNumElements(); in splitBinary() local
386 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
387 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
389 Res.resize(NumElems); in splitBinary()
390 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary()
402 unsigned NumElems = VT->getNumElements(); in visitSelectInst() local
406 assert(Op1.size() == NumElems && "Mismatched select"); in visitSelectInst()
407 assert(Op2.size() == NumElems && "Mismatched select"); in visitSelectInst()
409 Res.resize(NumElems); in visitSelectInst()
413 assert(Op0.size() == NumElems && "Mismatched select"); in visitSelectInst()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonSubtarget.h226 unsigned NumElems = VecTy.getVectorNumElements();
231 if (8*HwLen == NumElems)
236 if (NumElems * T.getSizeInBits() == 8*HwLen)
DHexagonISelDAGToDAGHVX.cpp812 unsigned NumElems = HwLen / (ElemTy.getSizeInBits()/8); in getSingleVT() local
813 return MVT::getVectorVT(ElemTy, NumElems); in getSingleVT()
817 unsigned NumElems = (2*HwLen) / (ElemTy.getSizeInBits()/8); in getPairVT() local
818 return MVT::getVectorVT(ElemTy, NumElems); in getPairVT()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DMemoryBuiltins.cpp562 APInt NumElems = C->getValue(); in visitAllocaInst() local
563 if (!CheckedZextOrTrunc(NumElems)) in visitAllocaInst()
567 Size = Size.umul_ov(NumElems, Overflow); in visitAllocaInst()
626 APInt NumElems = Arg->getValue(); in visitCallSite() local
627 if (!CheckedZextOrTrunc(NumElems)) in visitCallSite()
631 Size = Size.umul_ov(NumElems, Overflow); in visitCallSite()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp109 unsigned NumElems = 2; in ExpandRes_BITCAST() local
111 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
119 NumElems *= 2; in ExpandRes_BITCAST()
121 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
128 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
DLegalizeDAG.cpp1730 unsigned NumElems = Node->getNumOperands(); in ExpandBVWithShuffles() local
1744 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBVWithShuffles()
1760 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
1774 ShuffleVec[k] = NumElems + j; in ExpandBVWithShuffles()
1806 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
1810 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i; in ExpandBVWithShuffles()
1824 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local
1836 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
1864 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR()
1897 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
[all …]
DLegalizeVectorOps.cpp1044 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC() local
1049 SmallVector<SDValue, 8> Ops(NumElems); in UnrollVSETCC()
1050 for (unsigned i = 0; i < NumElems; ++i) { in UnrollVSETCC()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAttributes.cpp72 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local
76 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs()
77 NumElemsArg = NumElems; in unpackAllocSizeArgs()
391 Optional<unsigned> NumElems; in getAsString() local
392 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString()
396 if (NumElems.hasValue()) { in getAsString()
398 Result += utostr(*NumElems); in getAsString()
1449 const Optional<unsigned> &NumElems) { in addAllocSizeAttr() argument
1450 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
DConstantFold.cpp360 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local
362 if (NumElems == 0) in getFoldedSizeOf()
368 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf()
375 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf()
426 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
428 if (NumElems == 0) in getFoldedAlignOf()
434 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
482 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
484 if (NumElems == 0) in getFoldedOffsetOf()
490 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/external/llvm/lib/IR/
DAttributes.cpp55 unsigned NumElems = Num & std::numeric_limits<unsigned>::max(); in unpackAllocSizeArgs() local
59 if (NumElems != AllocSizeNumElemsNotPresent) in unpackAllocSizeArgs()
60 NumElemsArg = NumElems; in unpackAllocSizeArgs()
362 Optional<unsigned> NumElems; in getAsString() local
363 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString()
367 if (NumElems.hasValue()) { in getAsString()
369 Result += utostr(*NumElems); in getAsString()
1390 const Optional<unsigned> &NumElems) { in addAllocSizeAttr() argument
1391 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
DConstantFold.cpp361 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local
363 if (NumElems == 0) in getFoldedSizeOf()
369 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf()
376 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf()
428 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
430 if (NumElems == 0) in getFoldedAlignOf()
436 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
485 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
487 if (NumElems == 0) in getFoldedOffsetOf()
493 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/external/swiftshader/third_party/subzero/src/
DIceCfg.h256 template <typename T> T *allocateArrayOf(size_t NumElems) { in allocateArrayOf() argument
257 return Allocator->Allocate<T>(NumElems); in allocateArrayOf()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp109 unsigned NumElems = 2; in ExpandRes_BITCAST() local
111 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
119 NumElems *= 2; in ExpandRes_BITCAST()
121 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST()
128 for (unsigned i = 0; i < NumElems; ++i) in ExpandRes_BITCAST()
DLegalizeVectorOps.cpp1145 unsigned NumElems = VT.getVectorNumElements(); in ExpandStrictFPOp() local
1154 for (unsigned i = 0; i < NumElems; ++i) { in ExpandStrictFPOp()
1191 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC() local
1196 SmallVector<SDValue, 8> Ops(NumElems); in UnrollVSETCC()
1197 for (unsigned i = 0; i < NumElems; ++i) { in UnrollVSETCC()
DLegalizeDAG.cpp1754 unsigned NumElems = Node->getNumOperands(); in ExpandBVWithShuffles() local
1768 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBVWithShuffles()
1784 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
1798 ShuffleVec[k] = NumElems + j; in ExpandBVWithShuffles()
1830 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
1834 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i; in ExpandBVWithShuffles()
1848 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local
1860 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
1888 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR()
1921 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
[all …]
DDAGCombiner.cpp7324 int NumElems = VT.getVectorNumElements(); in ConvertSelectToConcatVector() local
7340 for (int i = 0; i < NumElems / 2; ++i) { in ConvertSelectToConcatVector()
7352 for (int i = NumElems / 2; i < NumElems; ++i) { in ConvertSelectToConcatVector()
15334 unsigned NumElems = VT.getVectorNumElements(); in visitEXTRACT_VECTOR_ELT() local
15335 int Idx = (Elt > (int)NumElems) ? -1 : SVN->getMaskElt(Elt); in visitEXTRACT_VECTOR_ELT()
15336 InVec = (Idx < (int)NumElems) ? InVec.getOperand(0) : InVec.getOperand(1); in visitEXTRACT_VECTOR_ELT()
15347 Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; in visitEXTRACT_VECTOR_ELT()
15563 unsigned NumElems = VT.getVectorNumElements(); in createBuildVecShuffle() local
15564 unsigned ShuffleNumElems = NumElems; in createBuildVecShuffle()
15588 if (!TLI.isExtractSubvectorCheap(VT, InVT1, NumElems)) in createBuildVecShuffle()
[all …]
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp2951 unsigned NumElems = VT.getVectorNumElements(); in getMOVL() local
2953 Mask.push_back(NumElems); in getMOVL()
2954 for (unsigned i = 1; i != NumElems; ++i) in getMOVL()
4571 unsigned NumElems = OpVT.getVectorNumElements(); in insert1BitVector() local
4574 assert(IdxVal + SubVecNumElems <= NumElems && in insert1BitVector()
4611 NumElems = WideOpVT.getVectorNumElements(); in insert1BitVector()
4612 unsigned ShiftLeft = NumElems - SubVecNumElems; in insert1BitVector()
4613 unsigned ShiftRight = NumElems - SubVecNumElems - IdxVal; in insert1BitVector()
4636 if (IdxVal + SubVecNumElems == NumElems) { in insert1BitVector()
4651 for (unsigned i = 0; i < NumElems; ++i) in insert1BitVector()
[all …]
/external/clang/include/clang/Analysis/Analyses/
DThreadSafetyUtil.h53 template <typename T> T *allocateT(size_t NumElems) { in allocateT() argument
54 return Allocator->Allocate<T>(NumElems); in allocateT()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp3425 unsigned NumElems = VT.getVectorNumElements(); in getMOVL() local
3427 Mask.push_back(NumElems); in getMOVL()
3428 for (unsigned i = 1; i != NumElems; ++i) in getMOVL()
5276 unsigned NumElems = OpVT.getVectorNumElements(); in insert1BitVector() local
5282 if ((!Subtarget.hasDQI() && NumElems == 8) || NumElems < 8) in insert1BitVector()
5298 assert(IdxVal + SubVecNumElems <= NumElems && in insert1BitVector()
5331 NumElems = WideOpVT.getVectorNumElements(); in insert1BitVector()
5332 unsigned ShiftLeft = NumElems - SubVecNumElems; in insert1BitVector()
5333 unsigned ShiftRight = NumElems - SubVecNumElems - IdxVal; in insert1BitVector()
5343 if (IdxVal + SubVecNumElems == NumElems) { in insert1BitVector()
[all …]
/external/llvm/utils/TableGen/
DCodeGenDAGPatterns.cpp541 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSubVectorTypeIs() local
551 [NumElems](MVT VVT) { in EnforceVectorSubVectorTypeIs()
552 return VVT.getVectorNumElements() >= NumElems; in EnforceVectorSubVectorTypeIs()
565 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSubVectorTypeIs() local
575 [NumElems](MVT VVT) { in EnforceVectorSubVectorTypeIs()
576 return VVT.getVectorNumElements() <= NumElems; in EnforceVectorSubVectorTypeIs()
607 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSameNumElts() local
613 [NumElems](MVT VVT) { in EnforceVectorSameNumElts()
614 return VVT.getVectorNumElements() != NumElems; in EnforceVectorSameNumElts()
627 unsigned NumElems = IVT.getVectorNumElements(); in EnforceVectorSameNumElts() local
[all …]
/external/llvm/lib/Analysis/
DMemoryBuiltins.cpp535 APInt NumElems = Arg->getValue(); in visitCallSite() local
536 if (!CheckedZextOrTrunc(NumElems)) in visitCallSite()
540 Size = Size.umul_ov(NumElems, Overflow); in visitCallSite()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1263 unsigned NumElems = Mask.size();
1264 for (unsigned i = 0; i != NumElems; ++i) {
1268 else if (idx < (int)NumElems)
1269 Mask[i] = idx + NumElems;
1271 Mask[i] = idx - NumElems;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1479 unsigned NumElems = Mask.size();
1480 for (unsigned i = 0; i != NumElems; ++i) {
1484 else if (idx < (int)NumElems)
1485 Mask[i] = idx + NumElems;
1487 Mask[i] = idx - NumElems;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DWasmObjectFile.cpp956 uint32_t NumElems = readVaruint32(Ctx); in parseElemSection() local
957 while (NumElems--) { in parseElemSection()

12