Searched defs:NumElts (Results 1 - 25 of 44) sorted by relevance

12

/external/llvm/lib/Transforms/Utils/
H A DCtorUtils.cpp49 size_t NumElts = StructTy->getNumElements(); local
50 if (NumElts > 2)
53 ConstantStruct::get(StructTy, makeArrayRef(CSVals, NumElts)));
/external/llvm/include/llvm/ADT/
H A DSmallString.h45 void assign(size_t NumElts, char Elt) { argument
46 this->SmallVectorImpl<char>::assign(NumElts, Elt);
H A DSmallVector.h442 void assign(unsigned NumElts, const T &Elt) { argument
444 if (this->capacity() < NumElts)
445 this->grow(NumElts);
446 this->setEnd(this->begin()+NumElts);
/external/llvm/lib/Bitcode/Reader/
H A DBitstreamReader.cpp141 unsigned NumElts = ReadVBR(6); local
142 for (unsigned i = 0; i != NumElts; ++i)
162 unsigned NumElts = ReadVBR(6); local
169 for (; NumElts; --NumElts)
176 unsigned NumElts = ReadVBR(6); local
180 size_t NewEnd = GetCurrentBitNo()+((NumElts+3)&~3)*8;
199 unsigned NumElts = ReadVBR(6); local
200 for (unsigned i = 0; i != NumElts; ++i)
231 unsigned NumElts local
245 unsigned NumElts = ReadVBR(6); local
[all...]
/external/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp83 unsigned NumElts = CDS->getNumElements(); local
84 assert(NumElts != 0 && "Can't have an empty CDS");
86 if (CDS->getElementAsInteger(NumElts-1) != 0)
90 for (unsigned i = 0; i != NumElts-1; ++i)
/external/llvm/lib/Target/X86/Utils/
H A DX86ShuffleDecode.cpp67 unsigned NumElts = VT.getVectorNumElements(); local
71 unsigned NumLaneElts = NumElts / NumLanes;
73 for (unsigned l = 0; l != NumElts; l += NumLaneElts) {
77 if (Base >= NumLaneElts) Base += NumElts - NumLaneElts;
87 unsigned NumElts = VT.getVectorNumElements(); local
90 unsigned NumLaneElts = NumElts / NumLanes;
93 for (unsigned l = 0; l != NumElts; l += NumLaneElts) {
104 unsigned NumElts = VT.getVectorNumElements(); local
106 for (unsigned l = 0; l != NumElts; l += 8) {
120 unsigned NumElts local
138 unsigned NumElts = VT.getVectorNumElements(); local
160 unsigned NumElts = VT.getVectorNumElements(); local
180 unsigned NumElts = VT.getVectorNumElements(); local
[all...]
/external/llvm/include/llvm/IR/
H A DDerivedTypes.h408 unsigned NumElts = VTy->getNumElements(); local
409 assert ((NumElts & 1) == 0 &&
411 return VectorType::get(VTy->getElementType(), NumElts/2);
419 unsigned NumElts = VTy->getNumElements(); local
420 return VectorType::get(VTy->getElementType(), NumElts*2);
H A DIRBuilder.h1458 /// NumElts elements.
1459 Value *CreateVectorSplat(unsigned NumElts, Value *V, const Twine &Name = "") { argument
1460 assert(NumElts > 0 && "Cannot splat to an empty vector!");
1464 Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts));
1469 Value *Zeros = ConstantAggregateZero::get(VectorType::get(I32Ty, NumElts));
/external/clang/include/clang/AST/
H A DAPValue.h82 unsigned NumElts; member in struct:clang::APValue::Vec
83 Vec() : Elts(nullptr), NumElts(0) {}
88 unsigned NumElts, ArrSize; member in struct:clang::APValue::Arr
89 Arr(unsigned NumElts, unsigned ArrSize);
268 return ((const Vec*)(const void *)Data.buffer)->NumElts;
292 return ((const Arr*)(const void *)Data.buffer)->NumElts;
358 ((Vec*)(char*)Data.buffer)->NumElts = N;
/external/clang/lib/AST/
H A DAPValue.cpp108 APValue::Arr::Arr(unsigned NumElts, unsigned Size) : argument
109 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]),
110 NumElts(NumElts), ArrSize(Size) {}
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp634 unsigned NumElts = Vec.getValueType().getVectorNumElements(); local
639 for (unsigned i = 0; i != NumElts; ++i)
640 ShufOps.push_back(i != InsertPos->getZExtValue() ? i : NumElts);
H A DLegalizeTypes.cpp882 unsigned NumElts = Op.getValueType().getVectorNumElements(); local
884 EVT::getVectorVT(*DAG.getContext(), EltNVT, NumElts), Op);
H A DLegalizeTypesGeneric.cpp346 unsigned NumElts = 2; local
350 NumElts);
354 NumElts = N->getValueType(0).getVectorNumElements();
359 IntegerToVector(N->getOperand(0), NumElts, Ops, NVT.getVectorElementType());
362 makeArrayRef(Ops.data(), NumElts));
373 unsigned NumElts = VecVT.getVectorNumElements(); local
384 NewElts.reserve(NumElts*2);
386 for (unsigned i = 0; i < NumElts; ++i) {
413 unsigned NumElts = VecVT.getVectorNumElements(); local
425 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*
451 unsigned NumElts = VT.getVectorNumElements(); local
[all...]
H A DLegalizeIntegerTypes.cpp629 unsigned NumElts = InVT.getVectorNumElements(); local
630 assert(NumElts == NVT.getVectorNumElements() &&
632 assert(isPowerOf2_32(NumElts) &&
639 NumElts/2);
948 unsigned NumElts = VecVT.getVectorNumElements(); local
949 assert(!((NumElts & 1) && (!TLI.isTypeLegal(VecVT))) &&
960 for (unsigned i = 0; i < NumElts; ++i)
2919 unsigned NumElts = VT.getVectorNumElements(); local
2921 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp872 unsigned NumElts = VT.getVectorNumElements(); local
879 if (!isPowerOf2_32(NumElts)) {
880 NumVectorRegs = NumElts;
881 NumElts = 1;
886 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) {
887 NumElts >>= 1;
893 MVT NewVT = MVT::getVectorVT(EltTy, NumElts);
1206 unsigned NumElts = VT.getVectorNumElements(); local
1214 if (NumElts !
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp333 unsigned NumElts = V->getType()->getVectorNumElements(); local
336 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
341 for (unsigned i = 0; i != NumElts; ++i)
347 for (unsigned i = 0; i != NumElts; ++i)
349 i+NumElts)); local
384 Mask[InsertedIdx % NumElts] =
389 Mask[InsertedIdx % NumElts] =
418 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); local
421 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
427 Mask.assign(NumElts, ConstantIn
[all...]
H A DInstCombineCasts.cpp1619 unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(), local
1623 if (NumElts == 1)
1635 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp358 uint64_t NumElts; local
360 NumElts = AT->getNumElements();
362 NumElts = C->getType()->getVectorNumElements();
364 for (; Index != NumElts; ++Index) {
/external/llvm/lib/IR/
H A DConstantFold.cpp52 unsigned NumElts = DstTy->getNumElements(); local
53 if (NumElts != CV->getType()->getVectorNumElements())
60 for (unsigned i = 0; i != NumElts; ++i) {
858 unsigned NumElts; local
860 NumElts = ST->getNumElements();
862 NumElts = AT->getNumElements();
864 NumElts = Agg->getType()->getVectorNumElements();
867 for (unsigned i = 0; i != NumElts; ++i) {
H A DConstants.cpp1059 Constant *ConstantVector::getSplat(unsigned NumElts, Constant *V) { argument
1064 return ConstantDataVector::getSplat(NumElts, V);
1066 SmallVector<Constant*, 32> Elts(NumElts, V);
2478 Constant *ConstantDataVector::getSplat(unsigned NumElts, Constant *V) { argument
2483 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue());
2487 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue());
2491 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue());
2495 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue());
2501 SmallVector<float, 16> Elts(NumElts, CFP->getValueAPF().convertToFloat());
2505 SmallVector<double, 16> Elts(NumElts,
[all...]
H A DInstructions.cpp1641 unsigned NumElts = Mask->getType()->getVectorNumElements(); local
1644 for (unsigned i = 0; i != NumElts; ++i)
1648 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp2511 unsigned NumElts = 1; local
2516 NumElts = 1;
2519 NumElts = 2;
2522 NumElts = 4;
2528 for (unsigned i = 0; i < NumElts; ++i)
2537 switch (NumElts) {
2637 unsigned NumElts = 1; local
2644 NumElts = 1;
2647 NumElts = 2;
2650 NumElts
[all...]
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp1137 unsigned NumElts = Value.getVectorLength(); local
1139 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1036 unsigned NumElts = Str->getNumElements(); local
1040 --NumElts; // Don't encode the null, which isn't allowed by char6.
1047 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp1743 /// return true with NumElts and EltTy set to the number of elements and the
1745 static bool isHomogeneousAggregate(Type *T, unsigned &NumElts, argument
1748 NumElts = AT->getNumElements();
1749 EltTy = (NumElts == 0 ? nullptr : AT->getElementType());
1753 NumElts = ST->getNumContainedTypes();
1754 EltTy = (NumElts == 0 ? nullptr : ST->getContainedType(0));
1755 for (unsigned n = 1; n < NumElts; ++n) {
2289 unsigned NumElts = cast<VectorType>(EltTy)->getNumElements(); local
2290 StoreVal = ConstantVector::getSplat(NumElts, StoreVal);

Completed in 9622 milliseconds

12