/external/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 382 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/lib/Target/X86/ |
D | X86ISelLowering.cpp | 3233 int NumElems = VT.getVectorNumElements(); in isVSHUFPSYMask() local 3238 if (NumElems != 8) in isVSHUFPSYMask() 3251 int QuarterSize = NumElems/4; in isVSHUFPSYMask() 3257 if (!isUndefOrInRange(Mask[i], NumElems, NumElems+HalfSize)) in isVSHUFPSYMask() 3264 if (!isUndefOrInRange(Mask[i], HalfSize, NumElems)) in isVSHUFPSYMask() 3272 for (int i = QuarterSize*3; i < NumElems; ++i) { in isVSHUFPSYMask() 3273 if (!isUndefOrInRange(Mask[i], NumElems+HalfSize, NumElems*2)) in isVSHUFPSYMask() 3291 int NumElems = VT.getVectorNumElements(); in getShuffleVSHUFPSYImmediate() local 3293 assert(NumElems == 8 && VT.getSizeInBits() == 256 && in getShuffleVSHUFPSYImmediate() 3296 int HalfSize = NumElems/2; in getShuffleVSHUFPSYImmediate() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 350 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC() local 355 SmallVector<SDValue, 8> Ops(NumElems); in UnrollVSETCC() 356 for (unsigned i = 0; i < NumElems; ++i) { in UnrollVSETCC() 368 return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, &Ops[0], NumElems); in UnrollVSETCC()
|
D | LegalizeDAG.cpp | 2091 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local 2103 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() 2131 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR() 2162 SmallVector<int, 8> ShuffleVec(NumElems, -1); in ExpandBUILD_VECTOR() 2163 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR() 2167 ShuffleVec[i] = V == Value1 ? 0 : NumElems; in ExpandBUILD_VECTOR() 3246 unsigned NumElems = VT.getVectorNumElements(); in ExpandNode() local 3248 for (unsigned i = 0; i != NumElems; ++i) { in ExpandNode() 3254 if (Idx < NumElems) in ExpandNode() 3261 DAG.getIntPtrConstant(Idx - NumElems))); in ExpandNode()
|
D | LegalizeIntegerTypes.cpp | 2894 unsigned NumElems = N->getNumOperands(); in PromoteIntRes_BUILD_VECTOR() local 2900 Ops.reserve(NumElems); in PromoteIntRes_BUILD_VECTOR() 2901 for (unsigned i = 0; i != NumElems; ++i) { in PromoteIntRes_BUILD_VECTOR() 2997 unsigned NumElems = N->getNumOperands(); in PromoteIntOp_CONCAT_VECTORS() local 3002 NewOps.reserve(NumElems); in PromoteIntOp_CONCAT_VECTORS() 3005 for (unsigned VecIdx = 0; VecIdx != NumElems; ++VecIdx) { in PromoteIntOp_CONCAT_VECTORS()
|
D | DAGCombiner.cpp | 6887 unsigned NumElems = VT.getVectorNumElements(); in visitEXTRACT_VECTOR_ELT() local 6888 int Idx = (Elt > (int)NumElems) ? -1 : SVN->getMaskElt(Elt); in visitEXTRACT_VECTOR_ELT() 6889 InVec = (Idx < (int)NumElems) ? InVec.getOperand(0) : InVec.getOperand(1); in visitEXTRACT_VECTOR_ELT() 6895 Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; in visitEXTRACT_VECTOR_ELT()
|
D | SelectionDAG.cpp | 200 unsigned NumElems = N->getNumOperands(); in isScalarToVector() local 201 if (NumElems == 1) in isScalarToVector() 203 for (unsigned i = 1; i < NumElems; ++i) { in isScalarToVector()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 109 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()
|
D | LegalizeDAG.cpp | 1730 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 …]
|
D | LegalizeVectorOps.cpp | 1044 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()
|
D | LegalizeIntegerTypes.cpp | 3270 unsigned NumElems = N->getNumOperands(); in PromoteIntRes_BUILD_VECTOR() local 3276 Ops.reserve(NumElems); in PromoteIntRes_BUILD_VECTOR() 3277 for (unsigned i = 0; i != NumElems; ++i) { in PromoteIntRes_BUILD_VECTOR() 3418 unsigned NumElems = N->getNumOperands(); in PromoteIntOp_CONCAT_VECTORS() local 3423 NewOps.reserve(NumElems); in PromoteIntOp_CONCAT_VECTORS() 3426 for (unsigned VecIdx = 0; VecIdx != NumElems; ++VecIdx) { in PromoteIntOp_CONCAT_VECTORS()
|
D | DAGCombiner.cpp | 5279 int NumElems = VT.getVectorNumElements(); in ConvertSelectToConcatVector() local 5295 for (int i = 0; i < NumElems / 2; ++i) { in ConvertSelectToConcatVector() 5307 for (int i = NumElems / 2; i < NumElems; ++i) { in ConvertSelectToConcatVector() 12509 unsigned NumElems = VT.getVectorNumElements(); in visitEXTRACT_VECTOR_ELT() local 12510 int Idx = (Elt > (int)NumElems) ? -1 : SVN->getMaskElt(Elt); in visitEXTRACT_VECTOR_ELT() 12511 InVec = (Idx < (int)NumElems) ? InVec.getOperand(0) : InVec.getOperand(1); in visitEXTRACT_VECTOR_ELT() 12522 Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; in visitEXTRACT_VECTOR_ELT() 13207 unsigned NumElems = NVT.getVectorNumElements(); in visitEXTRACT_SUBVECTOR() local 13208 assert((Idx % NumElems) == 0 && in visitEXTRACT_SUBVECTOR() 13210 return V->getOperand(Idx / NumElems); in visitEXTRACT_SUBVECTOR()
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 55 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()
|
D | ConstantFold.cpp | 361 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/clang/include/clang/Analysis/Analyses/ |
D | ThreadSafetyUtil.h | 53 template <typename T> T *allocateT(size_t NumElems) { in allocateT() argument 54 return Allocator->Allocate<T>(NumElems); in allocateT()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 344 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() local 346 if (NumElems == 0) in getFoldedSizeOf() 352 for (unsigned i = 1; i != NumElems; ++i) in getFoldedSizeOf() 359 Constant *N = ConstantInt::get(DestTy, NumElems); in getFoldedSizeOf() 412 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local 414 if (NumElems == 0) in getFoldedAlignOf() 420 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf() 470 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local 472 if (NumElems == 0) in getFoldedOffsetOf() 478 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
|
/external/llvm/utils/TableGen/ |
D | CodeGenDAGPatterns.cpp | 541 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/ |
D | MemoryBuiltins.cpp | 535 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/ |
D | SelectionDAGNodes.h | 1263 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/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVModule.h | 235 SPIRVValue *Dest, SPIRVValue *Src, SPIRVValue *NumElems, SPIRVValue *Stride,
|
D | SPIRVModule.cpp | 234 SPIRVValue *Dest, SPIRVValue *Src, SPIRVValue *NumElems, SPIRVValue *Stride, 1096 SPIRVValue *Dest, SPIRVValue *Src, SPIRVValue *NumElems, SPIRVValue *Stride, in addAsyncGroupCopy() argument 1099 NumElems, Stride, Event, BB), BB); in addAsyncGroupCopy()
|
/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 5669 llvm::Value *MapTypesArray, unsigned NumElems) { in emitOffloadingArraysArgument() argument 5671 if (NumElems) { in emitOffloadingArraysArgument() 5673 llvm::ArrayType::get(CGM.VoidPtrTy, NumElems), BasePointersArray, in emitOffloadingArraysArgument() 5676 llvm::ArrayType::get(CGM.VoidPtrTy, NumElems), PointersArray, in emitOffloadingArraysArgument() 5680 llvm::ArrayType::get(CGM.SizeTy, NumElems), SizesArray, in emitOffloadingArraysArgument() 5683 llvm::ArrayType::get(CGM.Int32Ty, NumElems), MapTypesArray, in emitOffloadingArraysArgument()
|
/external/clang/lib/Sema/ |
D | SemaInit.cpp | 640 unsigned NumElems = numStructUnionElements(ILE->getType()); in FillInEmptyInitializations() local 642 ++NumElems; in FillInEmptyInitializations() 643 if (ILE->getNumInits() < NumElems) in FillInEmptyInitializations() 644 ILE->resizeInits(SemaRef.Context, NumElems); in FillInEmptyInitializations()
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.cpp | 10250 unsigned NumElems = VT.getVectorNumElements(); in PerformSTORECombine() local 10256 if (!isPowerOf2_32(NumElems * FromEltSz * ToEltSz)) return SDValue(); in PerformSTORECombine() 10260 if (0 != (NumElems * FromEltSz) % ToEltSz) return SDValue(); in PerformSTORECombine() 10263 assert(SizeRatio * NumElems * ToEltSz == VT.getSizeInBits()); in PerformSTORECombine() 10267 NumElems*SizeRatio); in PerformSTORECombine() 10272 SmallVector<int, 8> ShuffleVec(NumElems * SizeRatio, -1); in PerformSTORECombine() 10273 for (unsigned i = 0; i < NumElems; ++i) in PerformSTORECombine() 10290 if (TLI.isTypeLegal(Tp) && Tp.getSizeInBits() <= NumElems * ToEltSz) in PerformSTORECombine() 10308 unsigned E = (ToEltSz*NumElems)/StoreType.getSizeInBits(); in PerformSTORECombine()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.cpp | 8211 unsigned NumElems = NarrowTy.getVectorNumElements(); in tryExtendDUPToExtractHigh() local 8212 MVT NewVT = MVT::getVectorVT(ElementTy, NumElems * 2); in tryExtendDUPToExtractHigh() 8217 DAG.getConstant(NumElems, dl, MVT::i64)); in tryExtendDUPToExtractHigh()
|