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

12

/external/llvm/lib/Target/X86/Utils/
H A DX86ShuffleDecode.cpp68 unsigned NumElts = VT.getVectorNumElements(); local
71 unsigned NumLaneElts = NumElts / NumLanes;
74 for (unsigned l = 0; l != NumElts; l += NumLaneElts) {
109 unsigned NumElts = VT.getVectorNumElements(); local
112 unsigned NumLaneElts = NumElts / NumLanes;
115 for (unsigned l = 0; l != NumElts; l += NumLaneElts) {
123 ShuffleMask.push_back(NewImm % NumLaneElts + NumElts + l);
134 unsigned NumElts = VT.getVectorNumElements(); local
140 unsigned NumLaneElts = NumElts / NumLanes;
142 for (unsigned l = 0; l != NumElts;
154 unsigned NumElts = VT.getVectorNumElements(); local
[all...]
/external/llvm/include/llvm/ADT/
H A DSmallString.h48 void assign(unsigned NumElts, char Elt) { argument
49 this->SmallVectorImpl<char>::assign(NumElts, Elt);
H A DSmallVector.h368 void assign(unsigned NumElts, const T &Elt) { argument
370 if (this->capacity() < NumElts)
371 this->grow(NumElts);
372 this->setEnd(this->begin()+NumElts);
/external/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp80 unsigned NumElts = CDS->getNumElements(); local
81 assert(NumElts != 0 && "Can't have an empty CDS");
83 if (CDS->getElementAsInteger(NumElts-1) != 0)
87 for (unsigned i = 0; i != NumElts-1; ++i)
H A DTargetData.cpp427 int NumElts = Ty->getNumElements(); local
429 (StructLayout *)malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t));
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp213 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); local
216 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext())));
221 for (unsigned i = 0; i != NumElts; ++i)
227 for (unsigned i = 0; i != NumElts; ++i)
229 i+NumElts)); local
264 Mask[InsertedIdx % NumElts] =
269 Mask[InsertedIdx % NumElts] =
271 ExtractedIdx+NumElts);
292 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); local
295 Mask.assign(NumElts, UndefValu
[all...]
H A DInstCombineCasts.cpp1491 unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(), local
1495 if (NumElts == 1)
1507 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp300 unsigned NumElts = VecVT.getVectorNumElements(); local
311 NewElts.reserve(NumElts*2);
313 for (unsigned i = 0; i < NumElts; ++i) {
340 unsigned NumElts = VecVT.getVectorNumElements(); local
352 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2);
377 unsigned NumElts = VT.getVectorNumElements(); local
378 SmallVector<SDValue, 16> Ops(NumElts);
381 for (unsigned i = 1; i < NumElts; ++i)
383 return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, &Ops[0], NumElts);
H A DLegalizeTypes.cpp876 unsigned NumElts = Op.getValueType().getVectorNumElements(); local
878 EVT::getVectorVT(*DAG.getContext(), EltNVT, NumElts), Op);
H A DLegalizeDAG.cpp618 unsigned NumElts = Vec.getValueType().getVectorNumElements(); local
623 for (unsigned i = 0; i != NumElts; ++i)
624 ShufOps.push_back(i != InsertPos->getZExtValue() ? i : NumElts);
H A DLegalizeIntegerTypes.cpp588 unsigned NumElts = InVT.getVectorNumElements(); local
589 assert(NumElts == NVT.getVectorNumElements() &&
592 assert(isPowerOf2_32(NumElts) &&
595 EVT HalfVT = EVT::getVectorVT(*DAG.getContext(), EltVT, NumElts/2);
597 NumElts/2);
602 DAG.getIntPtrConstant(NumElts/2));
905 unsigned NumElts = VecVT.getVectorNumElements(); local
906 assert(!(NumElts & 1) && "Legal vector of one illegal element?");
916 for (unsigned i = 0; i < NumElts; ++i)
919 return SDValue(DAG.UpdateNodeOperands(N, &NewOps[0], NumElts),
2894 unsigned NumElts = VT.getVectorNumElements(); local
[all...]
H A DLegalizeVectorTypes.cpp1340 unsigned NumElts = VT.getVectorNumElements(); local
1341 while (!TLI.isTypeLegal(VT) && NumElts != 1) {
1342 NumElts = NumElts / 2;
1343 VT = EVT::getVectorVT(*DAG.getContext(), WidenEltVT, NumElts);
1346 if (NumElts != 1 && !TLI.canOpTrap(N->getOpcode(), VT)) {
1354 if (NumElts == 1)
1367 // NumElts := greatest legal vector size (at most WidenVT)
1369 // take munches of size NumElts from the beginning and add to ConcatOps
1370 // NumElts
1685 unsigned NumElts = VT.getVectorNumElements(); local
1872 unsigned NumElts = VT.getVectorNumElements(); local
1980 unsigned NumElts = VT.getVectorNumElements(); local
2087 unsigned NumElts = VT.getVectorNumElements(); local
2134 unsigned NumElts = VT.getVectorNumElements(); local
2279 unsigned NumElts = Width / LdTy.getSizeInBits(); local
2336 unsigned NumElts = WidenWidth / NewVTWidth; local
2476 unsigned NumElts = LdVT.getVectorNumElements(); local
2550 unsigned NumElts = ValWidth / NewVTWidth; local
2600 unsigned NumElts = StVT.getVectorNumElements(); local
[all...]
/external/clang/include/clang/AST/
H A DAPValue.h82 unsigned NumElts; member in struct:clang::APValue::Vec
83 Vec() : Elts(0), NumElts(0) {}
88 unsigned NumElts, ArrSize; member in struct:clang::APValue::Arr
89 Arr(unsigned NumElts, unsigned ArrSize);
262 return ((const Vec*)(const void *)Data)->NumElts;
286 return ((const Arr*)(const void *)Data)->NumElts;
352 ((Vec*)(char*)Data)->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/include/llvm/Bitcode/
H A DBitstreamReader.h508 unsigned NumElts = ReadVBR(6);
509 for (unsigned i = 0; i != NumElts; ++i)
522 unsigned NumElts = ReadVBR(6); local
529 for (; NumElts; --NumElts)
533 unsigned NumElts = ReadVBR(6); local
537 size_t NewEnd = NextChar+((NumElts+3)&~3);
542 Vals.append(NumElts, 0);
551 NextChar, NumElts);
552 *BlobLen = NumElts;
[all...]
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp356 uint64_t NumElts; local
358 NumElts = AT->getNumElements();
360 NumElts = cast<VectorType>(C->getType())->getNumElements();
362 for (; Index != NumElts; ++Index) {
/external/llvm/lib/VMCore/
H A DConstantFold.cpp52 unsigned NumElts = DstTy->getNumElements(); local
53 if (NumElts != CV->getType()->getVectorNumElements())
60 for (unsigned i = 0; i != NumElts; ++i) {
834 unsigned NumElts; local
836 NumElts = ST->getNumElements();
838 NumElts = AT->getNumElements();
840 NumElts = AT->getVectorNumElements();
843 for (unsigned i = 0; i != NumElts; ++i) {
H A DConstants.cpp964 Constant *ConstantVector::getSplat(unsigned NumElts, Constant *V) { argument
969 return ConstantDataVector::getSplat(NumElts, V);
971 SmallVector<Constant*, 32> Elts(NumElts, V);
2242 Constant *ConstantDataVector::getSplat(unsigned NumElts, Constant *V) { argument
2247 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue());
2251 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue());
2255 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue());
2259 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue());
2265 SmallVector<float, 16> Elts(NumElts, CFP->getValueAPF().convertToFloat());
2269 SmallVector<double, 16> Elts(NumElts,
[all...]
H A DVerifier.cpp1791 unsigned NumElts = 0; local
1796 NumElts = VTy->getNumElements();
1864 Suffix += "v" + utostr(NumElts);
1888 Suffix += "v" + utostr(NumElts);
1897 Suffix += ".v" + utostr(NumElts) + EVT::getEVT(EltTy).getEVTString();
1930 if (VVT.getVectorNumElements() != NumElts) {
/external/clang/lib/CodeGen/
H A DCGCall.cpp419 uint64_t NumElts = AT->getSize().getZExtValue(); local
420 for (uint64_t Elt = 0; Elt < NumElts; ++Elt)
469 unsigned NumElts = AT->getSize().getZExtValue(); local
471 for (unsigned Elt = 0; Elt < NumElts; ++Elt) {
1791 unsigned NumElts = AT->getSize().getZExtValue(); local
1794 for (unsigned Elt = 0; Elt < NumElts; ++Elt) {
H A DCGExprConstant.cpp1148 unsigned NumElts = Value.getVectorLength(); local
1150 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp852 unsigned NumElts = Str->getNumElements(); local
856 --NumElts; // Don't encode the null, which isn't allowed by char6.
863 for (unsigned i = 0; i != NumElts; ++i) {
/external/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp2882 unsigned NumElts = VecVT.getVectorNumElements(); local
2884 assert(NumElts == 2 && "unexpected type for BUILD_VECTOR");
2888 if (NumElts == 2)
2890 assert(NumElts == 4 && "unexpected type for BUILD_VECTOR");
/external/llvm/lib/Transforms/Scalar/
H A DScalarReplAggregates.cpp1645 /// return true with NumElts and EltTy set to the number of elements and the
1647 static bool isHomogeneousAggregate(Type *T, unsigned &NumElts, argument
1650 NumElts = AT->getNumElements();
1651 EltTy = (NumElts == 0 ? 0 : AT->getElementType());
1655 NumElts = ST->getNumContainedTypes();
1656 EltTy = (NumElts == 0 ? 0 : ST->getContainedType(0));
1657 for (unsigned n = 1; n < NumElts; ++n) {
2158 unsigned NumElts = cast<VectorType>(EltTy)->getNumElements(); local
2159 StoreVal = ConstantVector::getSplat(NumElts, StoreVal);
/external/clang/lib/Sema/
H A DSemaDeclObjC.cpp719 unsigned NumElts,
722 for (unsigned i = 0; i != NumElts; ++i) {
1798 unsigned NumElts) {
1800 for (unsigned i = 0; i != NumElts; ++i) {
717 ActOnForwardProtocolDeclaration(SourceLocation AtProtocolLoc, const IdentifierLocPair *IdentList, unsigned NumElts, AttributeList *attrList) argument
1795 ActOnForwardClassDeclaration(SourceLocation AtClassLoc, IdentifierInfo **IdentList, SourceLocation *IdentLocs, unsigned NumElts) argument

Completed in 542 milliseconds

12