Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp379 unsigned NumElems = VT->getNumElements(); in splitBinary() local
383 assert(Op0.size() == NumElems && "Mismatched binary operation"); in splitBinary()
384 assert(Op1.size() == NumElems && "Mismatched binary operation"); in splitBinary()
386 Res.resize(NumElems); in splitBinary()
387 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary()
399 unsigned NumElems = VT->getNumElements(); in visitSelectInst() local
403 assert(Op1.size() == NumElems && "Mismatched select"); in visitSelectInst()
404 assert(Op2.size() == NumElems && "Mismatched select"); in visitSelectInst()
406 Res.resize(NumElems); in visitSelectInst()
410 assert(Op0.size() == NumElems && "Mismatched select"); in visitSelectInst()
[all …]
/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.cpp1986 unsigned NumElems = Node->getNumOperands(); in ExpandBVWithShuffles() local
2000 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBVWithShuffles()
2016 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
2030 ShuffleVec[k] = NumElems + j; in ExpandBVWithShuffles()
2062 SmallVector<int, 16> ShuffleVec(NumElems, -1); in ExpandBVWithShuffles()
2066 ShuffleVec[IntermedVals[1].second[i]] = NumElems + i; in ExpandBVWithShuffles()
2080 unsigned NumElems = Node->getNumOperands(); in ExpandBUILD_VECTOR() local
2092 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
2120 for (unsigned i = 0, e = NumElems; i != e; ++i) { in ExpandBUILD_VECTOR()
2153 for (unsigned i = 0; i < NumElems; ++i) { in ExpandBUILD_VECTOR()
[all …]
DLegalizeVectorOps.cpp1027 unsigned NumElems = VT.getVectorNumElements(); in UnrollVSETCC() local
1032 SmallVector<SDValue, 8> Ops(NumElems); in UnrollVSETCC()
1033 for (unsigned i = 0; i < NumElems; ++i) { in UnrollVSETCC()
DLegalizeIntegerTypes.cpp3179 unsigned NumElems = N->getNumOperands(); in PromoteIntRes_BUILD_VECTOR() local
3185 Ops.reserve(NumElems); in PromoteIntRes_BUILD_VECTOR()
3186 for (unsigned i = 0; i != NumElems; ++i) { in PromoteIntRes_BUILD_VECTOR()
3292 unsigned NumElems = N->getNumOperands(); in PromoteIntOp_CONCAT_VECTORS() local
3297 NewOps.reserve(NumElems); in PromoteIntOp_CONCAT_VECTORS()
3300 for (unsigned VecIdx = 0; VecIdx != NumElems; ++VecIdx) { in PromoteIntOp_CONCAT_VECTORS()
DDAGCombiner.cpp5224 int NumElems = VT.getVectorNumElements(); in ConvertSelectToConcatVector() local
5240 for (int i = 0; i < NumElems / 2; ++i) { in ConvertSelectToConcatVector()
5252 for (int i = NumElems / 2; i < NumElems; ++i) { in ConvertSelectToConcatVector()
12308 unsigned NumElems = VT.getVectorNumElements(); in visitEXTRACT_VECTOR_ELT() local
12309 int Idx = (Elt > (int)NumElems) ? -1 : SVN->getMaskElt(Elt); in visitEXTRACT_VECTOR_ELT()
12310 InVec = (Idx < (int)NumElems) ? InVec.getOperand(0) : InVec.getOperand(1); in visitEXTRACT_VECTOR_ELT()
12321 Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems; in visitEXTRACT_VECTOR_ELT()
13009 unsigned NumElems = NVT.getVectorNumElements(); in visitEXTRACT_SUBVECTOR() local
13010 assert((Idx % NumElems) == 0 && in visitEXTRACT_SUBVECTOR()
13012 return V->getOperand(Idx / NumElems); in visitEXTRACT_SUBVECTOR()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp3040 unsigned NumElems = VT.getVectorNumElements(); in getMOVL() local
3042 Mask.push_back(NumElems); in getMOVL()
3043 for (unsigned i = 1; i != NumElems; ++i) in getMOVL()
4586 unsigned NumElems = OpVT.getVectorNumElements(); in Insert1BitVector() local
4589 assert(IdxVal + SubVecNumElems <= NumElems && in Insert1BitVector()
4609 unsigned ShiftLeft = NumElems - SubVecNumElems; in Insert1BitVector()
4610 unsigned ShiftRight = NumElems - SubVecNumElems - IdxVal; in Insert1BitVector()
4627 if (IdxVal + SubVecNumElems == NumElems) { in Insert1BitVector()
4638 for (unsigned i = 0; i < NumElems; ++i) in Insert1BitVector()
4640 i : i + NumElems); 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/llvm/lib/IR/
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()
429 unsigned NumElems = STy->getNumElements(); in getFoldedAlignOf() local
431 if (NumElems == 0) in getFoldedAlignOf()
437 for (unsigned i = 1; i != NumElems; ++i) in getFoldedAlignOf()
487 unsigned NumElems = STy->getNumElements(); in getFoldedOffsetOf() local
489 if (NumElems == 0) in getFoldedOffsetOf()
495 for (unsigned i = 1; i != NumElems; ++i) in getFoldedOffsetOf()
/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/include/llvm/CodeGen/
DSelectionDAGNodes.h1403 unsigned NumElems = Mask.size();
1404 for (unsigned i = 0; i != NumElems; ++i) {
1408 else if (idx < (int)NumElems)
1409 Mask[i] = idx + NumElems;
1411 Mask[i] = idx - NumElems;
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp9841 unsigned NumElems = VT.getVectorNumElements(); in PerformSTORECombine() local
9847 if (!isPowerOf2_32(NumElems * FromEltSz * ToEltSz)) return SDValue(); in PerformSTORECombine()
9851 if (0 != (NumElems * FromEltSz) % ToEltSz) return SDValue(); in PerformSTORECombine()
9854 assert(SizeRatio * NumElems * ToEltSz == VT.getSizeInBits()); in PerformSTORECombine()
9858 NumElems*SizeRatio); in PerformSTORECombine()
9863 SmallVector<int, 8> ShuffleVec(NumElems * SizeRatio, -1); in PerformSTORECombine()
9864 for (unsigned i = 0; i < NumElems; ++i) in PerformSTORECombine()
9881 if (TLI.isTypeLegal(Tp) && Tp.getSizeInBits() <= NumElems * ToEltSz) in PerformSTORECombine()
9899 unsigned E = (ToEltSz*NumElems)/StoreType.getSizeInBits(); in PerformSTORECombine()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8058 unsigned NumElems = NarrowTy.getVectorNumElements(); in tryExtendDUPToExtractHigh() local
8059 MVT NewVT = MVT::getVectorVT(ElementTy, NumElems * 2); in tryExtendDUPToExtractHigh()
8064 DAG.getConstant(NumElems, dl, MVT::i64)); in tryExtendDUPToExtractHigh()