/external/llvm/include/llvm/ADT/ |
H A D | SmallString.h | 48 void assign(size_t NumElts, char Elt) { argument 49 this->SmallVectorImpl<char>::assign(NumElts, Elt);
|
H A D | SmallVector.h | 468 void assign(unsigned NumElts, const T &Elt) { argument 470 if (this->capacity() < NumElts) 471 this->grow(NumElts); 472 this->setEnd(this->begin()+NumElts);
|
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitstreamReader.cpp | 141 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) 222 unsigned NumElts local 236 unsigned NumElts = ReadVBR(6); local [all...] |
/external/llvm/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 80 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)
|
/external/llvm/lib/Target/X86/Utils/ |
H A D | X86ShuffleDecode.cpp | 66 unsigned NumElts = VT.getVectorNumElements(); local 70 unsigned NumLaneElts = NumElts / NumLanes; 72 for (unsigned l = 0; l != NumElts; l += NumLaneElts) { 76 if (Base >= NumLaneElts) Base += NumElts - NumLaneElts; 86 unsigned NumElts = VT.getVectorNumElements(); local 89 unsigned NumLaneElts = NumElts / NumLanes; 92 for (unsigned l = 0; l != NumElts; l += NumLaneElts) { 103 unsigned NumElts = VT.getVectorNumElements(); local 105 for (unsigned l = 0; l != NumElts; l += 8) { 119 unsigned NumElts local 137 unsigned NumElts = VT.getVectorNumElements(); local 159 unsigned NumElts = VT.getVectorNumElements(); local 179 unsigned NumElts = VT.getVectorNumElements(); local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineVectorOps.cpp | 222 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); local 225 Mask.assign(NumElts, UndefValue::get(Type::getInt32Ty(V->getContext()))); 230 for (unsigned i = 0; i != NumElts; ++i) 236 for (unsigned i = 0; i != NumElts; ++i) 238 i+NumElts)); local 273 Mask[InsertedIdx % NumElts] = 278 Mask[InsertedIdx % NumElts] = 280 ExtractedIdx+NumElts); 301 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements(); local 304 Mask.assign(NumElts, UndefValu [all...] |
H A D | InstCombineCasts.cpp | 1509 unsigned NumElts = getTypeSizeIndex(C->getType()->getPrimitiveSizeInBits(), local 1513 if (NumElts == 1) 1525 for (unsigned i = 0; i != NumElts; ++i) {
|
/external/llvm/lib/CodeGen/ |
H A D | TargetLoweringBase.cpp | 781 unsigned NumElts = VT.getVectorNumElements(); local 788 if (!isPowerOf2_32(NumElts)) { 789 NumVectorRegs = NumElts; 790 NumElts = 1; 795 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) { 796 NumElts >>= 1; 802 MVT NewVT = MVT::getVectorVT(EltTy, NumElts); 1010 unsigned NumElts = VT.getVectorNumElements(); local 1012 NumElts > 1055 unsigned NumElts = VT.getVectorNumElements(); local [all...] |
/external/clang/include/clang/AST/ |
H A D | APValue.h | 82 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 D | APValue.cpp | 108 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 D | LegalizeDAG.cpp | 626 unsigned NumElts = Vec.getValueType().getVectorNumElements(); local 631 for (unsigned i = 0; i != NumElts; ++i) 632 ShufOps.push_back(i != InsertPos->getZExtValue() ? i : NumElts);
|
H A D | LegalizeTypes.cpp | 877 unsigned NumElts = Op.getValueType().getVectorNumElements(); local 879 EVT::getVectorVT(*DAG.getContext(), EltNVT, NumElts), Op);
|
H A D | LegalizeTypesGeneric.cpp | 344 unsigned NumElts = VecVT.getVectorNumElements(); local 355 NewElts.reserve(NumElts*2); 357 for (unsigned i = 0; i < NumElts; ++i) { 384 unsigned NumElts = VecVT.getVectorNumElements(); local 396 EVT NewVecVT = EVT::getVectorVT(*DAG.getContext(), NewEVT, NumElts*2); 421 unsigned NumElts = VT.getVectorNumElements(); local 422 SmallVector<SDValue, 16> Ops(NumElts); 425 for (unsigned i = 1; i < NumElts; ++i) 427 return DAG.getNode(ISD::BUILD_VECTOR, dl, VT, &Ops[0], NumElts);
|
H A D | LegalizeVectorOps.cpp | 352 unsigned NumElts = VT.getVectorNumElements(); local 358 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts);
|
H A D | LegalizeIntegerTypes.cpp | 590 unsigned NumElts = InVT.getVectorNumElements(); local 591 assert(NumElts == NVT.getVectorNumElements() && 593 assert(isPowerOf2_32(NumElts) && 600 NumElts/2); 911 unsigned NumElts = VecVT.getVectorNumElements(); local 912 assert(!(NumElts & 1) && "Legal vector of one illegal element?"); 922 for (unsigned i = 0; i < NumElts; ++i) 925 return SDValue(DAG.UpdateNodeOperands(N, &NewOps[0], NumElts), 0); 2907 unsigned NumElts = VT.getVectorNumElements(); local 2909 for (unsigned i = 0; i != NumElts; [all...] |
H A D | LegalizeVectorTypes.cpp | 1470 unsigned NumElts = VT.getVectorNumElements(); local 1471 while (!TLI.isTypeLegal(VT) && NumElts != 1) { 1472 NumElts = NumElts / 2; 1473 VT = EVT::getVectorVT(*DAG.getContext(), WidenEltVT, NumElts); 1476 if (NumElts != 1 && !TLI.canOpTrap(N->getOpcode(), VT)) { 1484 if (NumElts == 1) 1497 // NumElts := greatest legal vector size (at most WidenVT) 1499 // take munches of size NumElts from the beginning and add to ConcatOps 1500 // NumElts 1815 unsigned NumElts = VT.getVectorNumElements(); local 2002 unsigned NumElts = VT.getVectorNumElements(); local 2110 unsigned NumElts = VT.getVectorNumElements(); local 2221 unsigned NumElts = VT.getVectorNumElements(); local 2268 unsigned NumElts = VT.getVectorNumElements(); local 2413 unsigned NumElts = Width / LdTy.getSizeInBits(); local 2470 unsigned NumElts = WidenWidth / NewVTWidth; local 2608 unsigned NumElts = LdVT.getVectorNumElements(); local 2682 unsigned NumElts = ValWidth / NewVTWidth; local 2732 unsigned NumElts = StVT.getVectorNumElements(); local [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 344 uint64_t NumElts; local 346 NumElts = AT->getNumElements(); 348 NumElts = cast<VectorType>(C->getType())->getNumElements(); 350 for (; Index != NumElts; ++Index) {
|
/external/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 52 unsigned NumElts = DstTy->getNumElements(); local 53 if (NumElts != CV->getType()->getVectorNumElements()) 60 for (unsigned i = 0; i != NumElts; ++i) { 843 unsigned NumElts; local 845 NumElts = ST->getNumElements(); 847 NumElts = AT->getNumElements(); 849 NumElts = Agg->getType()->getVectorNumElements(); 852 for (unsigned i = 0; i != NumElts; ++i) {
|
H A D | Constants.cpp | 1016 Constant *ConstantVector::getSplat(unsigned NumElts, Constant *V) { argument 1021 return ConstantDataVector::getSplat(NumElts, V); 1023 SmallVector<Constant*, 32> Elts(NumElts, V); 2373 Constant *ConstantDataVector::getSplat(unsigned NumElts, Constant *V) { argument 2378 SmallVector<uint8_t, 16> Elts(NumElts, CI->getZExtValue()); 2382 SmallVector<uint16_t, 16> Elts(NumElts, CI->getZExtValue()); 2386 SmallVector<uint32_t, 16> Elts(NumElts, CI->getZExtValue()); 2390 SmallVector<uint64_t, 16> Elts(NumElts, CI->getZExtValue()); 2396 SmallVector<float, 16> Elts(NumElts, CFP->getValueAPF().convertToFloat()); 2400 SmallVector<double, 16> Elts(NumElts, [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1165 unsigned NumElts = Value.getVectorLength(); local 1167 for (unsigned i = 0; i != NumElts; ++i) {
|
H A D | CGCall.cpp | 508 uint64_t NumElts = AT->getSize().getZExtValue(); local 509 for (uint64_t Elt = 0; Elt < NumElts; ++Elt) 557 unsigned NumElts = AT->getSize().getZExtValue(); local 559 for (unsigned Elt = 0; Elt < NumElts; ++Elt) { 2039 unsigned NumElts = AT->getSize().getZExtValue(); local 2042 for (unsigned Elt = 0; Elt < NumElts; ++Elt) {
|
/external/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 919 unsigned NumElts = Str->getNumElements(); local 923 --NumElts; // Don't encode the null, which isn't allowed by char6. 930 for (unsigned i = 0; i != NumElts; ++i) {
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXISelLowering.cpp | 907 unsigned NumElts = ValVT.getVectorNumElements(); local 916 switch (NumElts) { 933 for (unsigned i = 0; i < NumElts; ++i) { 1448 unsigned NumElts = ResVT.getVectorNumElements(); local 1462 switch (NumElts) { 1494 for (unsigned i = 0; i < NumElts; ++i) { 1501 SDValue LoadChain = NewLD.getValue(NumElts); 1503 SDValue BuildVec = DAG.getNode(ISD::BUILD_VECTOR, DL, ResVT, &ScalarRes[0], NumElts); 1531 unsigned NumElts = ResVT.getVectorNumElements(); local 1546 switch (NumElts) { [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | ScalarReplAggregates.cpp | 1756 /// return true with NumElts and EltTy set to the number of elements and the 1758 static bool isHomogeneousAggregate(Type *T, unsigned &NumElts, argument 1761 NumElts = AT->getNumElements(); 1762 EltTy = (NumElts == 0 ? 0 : AT->getElementType()); 1766 NumElts = ST->getNumContainedTypes(); 1767 EltTy = (NumElts == 0 ? 0 : ST->getContainedType(0)); 1768 for (unsigned n = 1; n < NumElts; ++n) { 2300 unsigned NumElts = cast<VectorType>(EltTy)->getNumElements(); local 2301 StoreVal = ConstantVector::getSplat(NumElts, StoreVal);
|
/external/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 1383 /// NumElts elements. 1384 Value *CreateVectorSplat(unsigned NumElts, Value *V, const Twine &Name = "") { argument 1385 assert(NumElts > 0 && "Cannot splat to an empty vector!"); 1389 Value *Undef = UndefValue::get(VectorType::get(V->getType(), NumElts)); 1394 Value *Zeros = ConstantAggregateZero::get(VectorType::get(I32Ty, NumElts));
|