Home
last modified time | relevance | path

Searched refs:NumElts (Results 1 – 25 of 65) sorted by relevance

123

/NextBSD/contrib/llvm/lib/Target/X86/Utils/
HDX86ShuffleDecode.cpp67 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSLDUPMask() local
68 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSLDUPMask()
75 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVSHDUPMask() local
76 for (int i = 0, e = NumElts / 2; i < e; ++i) { in DecodeMOVSHDUPMask()
85 unsigned NumElts = VT.getVectorNumElements(); in DecodeMOVDDUPMask() local
87 unsigned NumLaneElts = NumElts / NumLanes; in DecodeMOVDDUPMask()
90 for (unsigned l = 0; l < NumElts; l += NumLaneElts) in DecodeMOVDDUPMask()
98 unsigned NumElts = VectorSizeInBits / 8; in DecodePSLLDQMask() local
100 unsigned NumLaneElts = NumElts / NumLanes; in DecodePSLLDQMask()
102 for (unsigned l = 0; l < NumElts; l += NumLaneElts) in DecodePSLLDQMask()
[all …]
/NextBSD/contrib/llvm/lib/Bitcode/Reader/
HDBitstreamReader.cpp106 unsigned NumElts = ReadVBR(6); in skipRecord() local
107 for (unsigned i = 0; i != NumElts; ++i) in skipRecord()
127 unsigned NumElts = ReadVBR(6); in skipRecord() local
134 for (; NumElts; --NumElts) in skipRecord()
141 unsigned NumElts = ReadVBR(6); in skipRecord() local
145 size_t NewEnd = GetCurrentBitNo()+((NumElts+3)&~3)*8; in skipRecord()
164 unsigned NumElts = ReadVBR(6); in readRecord() local
165 for (unsigned i = 0; i != NumElts; ++i) in readRecord()
200 unsigned NumElts = ReadVBR(6); in readRecord() local
214 for (; NumElts; --NumElts) in readRecord()
[all …]
/NextBSD/contrib/llvm/lib/IR/
HDAutoUpgrade.cpp253 unsigned NumElts = NumLanes * 16; in UpgradeX86PSLLDQIntrinsics() local
257 VectorType::get(Type::getInt8Ty(C), NumElts), in UpgradeX86PSLLDQIntrinsics()
260 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSLLDQIntrinsics()
267 for (unsigned l = 0; l != NumElts; l += 16) in UpgradeX86PSLLDQIntrinsics()
269 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics()
270 if (Idx < NumElts) in UpgradeX86PSLLDQIntrinsics()
271 Idx -= NumElts - 16; // end of lane, switch operand. in UpgradeX86PSLLDQIntrinsics()
290 unsigned NumElts = NumLanes * 16; in UpgradeX86PSRLDQIntrinsics() local
294 VectorType::get(Type::getInt8Ty(C), NumElts), in UpgradeX86PSRLDQIntrinsics()
297 Value *Res = ConstantVector::getSplat(NumElts, Builder.getInt8(0)); in UpgradeX86PSRLDQIntrinsics()
[all …]
HDConstantFold.cpp54 unsigned NumElts = DstTy->getNumElements(); in BitCastConstantVector() local
55 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector()
62 for (unsigned i = 0; i != NumElts; ++i) { in BitCastConstantVector()
809 unsigned NumElts = Val->getType()->getVectorNumElements(); in ConstantFoldInsertElementInstruction() local
810 if (CIdx->uge(NumElts)) in ConstantFoldInsertElementInstruction()
814 Result.reserve(NumElts); in ConstantFoldInsertElementInstruction()
817 for (unsigned i = 0; i != NumElts; ++i) { in ConstantFoldInsertElementInstruction()
890 unsigned NumElts; in ConstantFoldInsertValueInstruction() local
892 NumElts = ST->getNumElements(); in ConstantFoldInsertValueInstruction()
894 NumElts = AT->getNumElements(); in ConstantFoldInsertValueInstruction()
[all …]
/NextBSD/contrib/llvm/lib/CodeGen/
HDInterleavedAccessPass.cpp148 unsigned NumElts = Mask.size(); in isReInterleaveMask() local
149 if (NumElts < 4) in isReInterleaveMask()
154 if (NumElts % Factor) in isReInterleaveMask()
157 unsigned NumSubElts = NumElts / Factor; in isReInterleaveMask()
164 for (; i < NumElts; i++) in isReInterleaveMask()
171 if (i == NumElts) in isReInterleaveMask()
HDTargetLoweringBase.cpp960 unsigned NumElts = VT.getVectorNumElements(); in getTypeConversion() local
964 if (NumElts == 1) in getTypeConversion()
974 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion()
975 EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); in getTypeConversion()
986 EVT::getVectorVT(Context, EltVT, NumElts / 2)); in getTypeConversion()
1007 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
1011 EVT::getVectorVT(Context, EltVT, NumElts)); in getTypeConversion()
1023 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion()
1030 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
1055 unsigned NumElts = VT.getVectorNumElements(); in getVectorTypeBreakdownMVT() local
[all …]
HDAnalysis.cpp60 unsigned NumElts = ATy->getNumElements(); in ComputeLinearIndex() local
64 assert(*Indices < NumElts && "Unexpected out of bound"); in ComputeLinearIndex()
70 CurIndex += EltLinearOffset*NumElts; in ComputeLinearIndex()
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDLegalizeTypesGeneric.cpp350 unsigned NumElts = 2; in ExpandOp_BITCAST() local
354 NumElts); in ExpandOp_BITCAST()
358 NumElts = N->getValueType(0).getVectorNumElements(); in ExpandOp_BITCAST()
363 IntegerToVector(N->getOperand(0), NumElts, Ops, NVT.getVectorElementType()); in ExpandOp_BITCAST()
366 makeArrayRef(Ops.data(), NumElts)); in ExpandOp_BITCAST()
377 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_BUILD_VECTOR() local
388 NewElts.reserve(NumElts*2); in ExpandOp_BUILD_VECTOR()
390 for (unsigned i = 0; i < NumElts; ++i) { in ExpandOp_BUILD_VECTOR()
417 unsigned NumElts = VecVT.getVectorNumElements(); in ExpandOp_INSERT_VECTOR_ELT() local
429 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2); in ExpandOp_INSERT_VECTOR_ELT()
[all …]
HDLegalizeVectorTypes.cpp2050 unsigned NumElts = VT.getVectorNumElements(); in WidenVecRes_BinaryCanTrap() local
2051 while (!TLI.isTypeLegal(VT) && NumElts != 1) { in WidenVecRes_BinaryCanTrap()
2052 NumElts = NumElts / 2; in WidenVecRes_BinaryCanTrap()
2053 VT = EVT::getVectorVT(*DAG.getContext(), WidenEltVT, NumElts); in WidenVecRes_BinaryCanTrap()
2056 if (NumElts != 1 && !TLI.canOpTrap(N->getOpcode(), VT)) { in WidenVecRes_BinaryCanTrap()
2064 if (NumElts == 1) in WidenVecRes_BinaryCanTrap()
2083 while (CurNumElts >= NumElts) { in WidenVecRes_BinaryCanTrap()
2091 Idx += NumElts; in WidenVecRes_BinaryCanTrap()
2092 CurNumElts -= NumElts; in WidenVecRes_BinaryCanTrap()
2095 NumElts = NumElts / 2; in WidenVecRes_BinaryCanTrap()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDAPValue.h82 unsigned NumElts; member
83 Vec() : Elts(nullptr), NumElts(0) {} in Vec()
88 unsigned NumElts, ArrSize; member
89 Arr(unsigned NumElts, unsigned ArrSize);
268 return ((const Vec*)(const void *)Data.buffer)->NumElts; in getVectorLength()
292 return ((const Arr*)(const void *)Data.buffer)->NumElts; in getArrayInitializedElts()
358 ((Vec*)(char*)Data.buffer)->NumElts = N; in setVector()
/NextBSD/contrib/llvm/include/llvm/IR/
HDDerivedTypes.h412 unsigned NumElts = VTy->getNumElements(); in getHalfElementsVectorType() local
413 assert ((NumElts & 1) == 0 && in getHalfElementsVectorType()
415 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType()
423 unsigned NumElts = VTy->getNumElements(); in getDoubleElementsVectorType() local
424 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineVectorOps.cpp285 unsigned NumElts = V->getType()->getVectorNumElements(); in CollectSingleShuffleElements() local
288 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in CollectSingleShuffleElements()
293 for (unsigned i = 0; i != NumElts; ++i) in CollectSingleShuffleElements()
299 for (unsigned i = 0; i != NumElts; ++i) in CollectSingleShuffleElements()
301 i+NumElts)); in CollectSingleShuffleElements()
336 Mask[InsertedIdx % NumElts] = in CollectSingleShuffleElements()
341 Mask[InsertedIdx % NumElts] = in CollectSingleShuffleElements()
370 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); in CollectShuffleElements() local
373 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); in CollectShuffleElements()
379 Mask.assign(NumElts, ConstantInt::get(Type::getInt32Ty(V->getContext()),0)); in CollectShuffleElements()
[all …]
/NextBSD/contrib/llvm/lib/Target/
HDTargetLoweringObjectFile.cpp84 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString() local
85 assert(NumElts != 0 && "Can't have an empty CDS"); in IsNullTerminatedString()
87 if (CDS->getElementAsInteger(NumElts-1) != 0) in IsNullTerminatedString()
91 for (unsigned i = 0; i != NumElts-1; ++i) in IsNullTerminatedString()
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64TargetTransformInfo.cpp417 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() local
418 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost()
422 if (NumElts % Factor == 0 && (SubVecSize == 64 || SubVecSize == 128)) in getInterleavedMemoryOpCost()
475 unsigned NumElts = Inst->getNumArgOperands() - 1; in getOrCreateResultFromMemIntrinsic() local
476 if (ST->getNumElements() != NumElts) in getOrCreateResultFromMemIntrinsic()
478 for (unsigned i = 0, e = NumElts; i != e; ++i) { in getOrCreateResultFromMemIntrinsic()
484 for (unsigned i = 0, e = NumElts; i != e; ++i) { in getOrCreateResultFromMemIntrinsic()
HDAArch64ISelLowering.cpp1813 unsigned NumElts = VT.getVectorNumElements(); in skipExtensionForVectorMULL() local
1816 for (unsigned i = 0; i != NumElts; ++i) { in skipExtensionForVectorMULL()
1824 MVT::getVectorVT(TruncVT, NumElts), Ops); in skipExtensionForVectorMULL()
4526 unsigned NumElts = VT.getVectorNumElements(); in ReconstructShuffle() local
4552 for (unsigned i = 0; i < NumElts; ++i) { in ReconstructShuffle()
4590 NumElts = VT.getSizeInBits() / SmallestEltTy.getSizeInBits(); in ReconstructShuffle()
4591 EVT ShuffleVT = EVT::getVectorVT(*DAG.getContext(), SmallestEltTy, NumElts); in ReconstructShuffle()
4696 ExtractBase += NumElts * (Src - Sources.begin()); in ReconstructShuffle()
4717 unsigned NumElts = VT.getVectorNumElements(); in isSingletonEXTMask() local
4729 for (unsigned i = 1; i < NumElts; ++i) { in isSingletonEXTMask()
[all …]
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXISelLowering.cpp1152 unsigned NumElts = ObjectVT.getVectorNumElements(); in LowerCall() local
1162 if (NumElts == 1) { in LowerCall()
1176 } else if (NumElts == 2) { in LowerCall()
1213 for (unsigned i = 0; i < NumElts; i += VecSize) { in LowerCall()
1228 if (i + 1 < NumElts) { in LowerCall()
1240 if (i + 2 < NumElts) { in LowerCall()
1250 if (i + 3 < NumElts) { in LowerCall()
1482 unsigned NumElts = ObjectVT.getVectorNumElements(); in LowerCall() local
1485 ObjectVT) == NumElts && in LowerCall()
1490 if (NumElts == 1) { in LowerCall()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDAPValue.cpp108 APValue::Arr::Arr(unsigned NumElts, unsigned Size) : in Arr() argument
109 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]), in Arr()
110 NumElts(NumElts), ArrSize(Size) {} in Arr()
/NextBSD/contrib/llvm/include/llvm/ADT/
HDSmallString.h45 void assign(size_t NumElts, char Elt) { in assign() argument
46 this->SmallVectorImpl<char>::assign(NumElts, Elt); in assign()
HDSmallVector.h442 void assign(size_type NumElts, const T &Elt) { in assign() argument
444 if (this->capacity() < NumElts) in assign()
445 this->grow(NumElts); in assign()
446 this->setEnd(this->begin()+NumElts); in assign()
/NextBSD/contrib/llvm/lib/Target/ARM/
HDARMISelLowering.cpp4939 unsigned NumElts = VT.getVectorNumElements(); in isSingletonVEXTMask() local
4951 for (unsigned i = 1; i < NumElts; ++i) { in isSingletonVEXTMask()
4955 if (ExpectedElt == NumElts) in isSingletonVEXTMask()
4969 unsigned NumElts = VT.getVectorNumElements(); in isVEXTMask() local
4982 for (unsigned i = 1; i < NumElts; ++i) { in isVEXTMask()
4986 if (ExpectedElt == NumElts * 2) { in isVEXTMask()
4998 Imm -= NumElts; in isVEXTMask()
5014 unsigned NumElts = VT.getVectorNumElements(); in isVREVMask() local
5023 for (unsigned i = 0; i < NumElts; ++i) { in isVREVMask()
5044 unsigned NumElts = VT.getVectorNumElements(); in isVTRNMask() local
[all …]
HDARMTargetTransformInfo.cpp494 unsigned NumElts = VecTy->getVectorNumElements(); in getInterleavedMemoryOpCost() local
495 Type *SubVecTy = VectorType::get(VecTy->getScalarType(), NumElts / Factor); in getInterleavedMemoryOpCost()
499 if (NumElts % Factor == 0 && (SubVecSize == 64 || SubVecSize == 128)) in getInterleavedMemoryOpCost()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDBasicTTIImpl.h526 unsigned NumElts = VT->getNumElements(); in getInterleavedMemoryOpCost() local
527 assert(Factor > 1 && NumElts % Factor == 0 && "Invalid interleave factor"); in getInterleavedMemoryOpCost()
529 unsigned NumSubElts = NumElts / Factor; in getInterleavedMemoryOpCost()
578 for (unsigned i = 0; i < NumElts; i++) in getInterleavedMemoryOpCost()
/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDDeclSpec.h1148 Expr *NumElts; member
1469 bool isStatic, bool isStar, Expr *NumElts, in getArray()
1479 I.Arr.NumElts = NumElts; in getArray()
2002 !chunk->Arr.NumElts); in isArrayOfUnknownBound()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.cpp1761 static bool isHomogeneousAggregate(Type *T, unsigned &NumElts, in isHomogeneousAggregate() argument
1764 NumElts = AT->getNumElements(); in isHomogeneousAggregate()
1765 EltTy = (NumElts == 0 ? nullptr : AT->getElementType()); in isHomogeneousAggregate()
1769 NumElts = ST->getNumContainedTypes(); in isHomogeneousAggregate()
1770 EltTy = (NumElts == 0 ? nullptr : ST->getContainedType(0)); in isHomogeneousAggregate()
1771 for (unsigned n = 1; n < NumElts; ++n) { in isHomogeneousAggregate()
2312 unsigned NumElts = cast<VectorType>(EltTy)->getNumElements(); in RewriteMemIntrinUserOfAlloca() local
2313 StoreVal = ConstantVector::getSplat(NumElts, StoreVal); in RewriteMemIntrinUserOfAlloca()
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86ISelLowering.cpp1719 const unsigned NumElts = VT.getVectorNumElements(); in getSetCCResultType() local
1725 switch(NumElts) { in getSetCCResultType()
1731 switch(NumElts) { in getSetCCResultType()
1741 switch(NumElts) { in getSetCCResultType()
1748 switch(NumElts) { in getSetCCResultType()
5460 unsigned NumElts = LastIdx - BaseIdx; in isHorizontalBinOp() local
5465 for (unsigned i = 0, e = NumElts; i != e && CanFold; ++i) { in isHorizontalBinOp()
5471 if (i * 2 == NumElts) in isHorizontalBinOp()
5498 if (i * 2 < NumElts) { in isHorizontalBinOp()
5510 if (i * 2 == NumElts) in isHorizontalBinOp()
[all …]

123