Lines Matching defs:Elts
579 SmallVector<Value *, 16> Elts;
585 ParseMDNodeVector(Elts, NULL) ||
589 MDNode *Init = MDNode::get(Context, Elts);
1815 SmallVector<Type*, 8> Elts;
1816 if (ParseStructBody(Elts)) return true;
1818 Result = StructType::get(Context, Elts, Packed);
2267 SmallVector<Constant*, 16> Elts;
2268 if (ParseGlobalValueVector(Elts) ||
2272 ID.ConstantStructElts = new Constant*[Elts.size()];
2273 ID.UIntVal = Elts.size();
2274 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0]));
2284 SmallVector<Constant*, 16> Elts;
2286 if (ParseGlobalValueVector(Elts) ||
2293 ID.ConstantStructElts = new Constant*[Elts.size()];
2294 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0]));
2295 ID.UIntVal = Elts.size();
2300 if (Elts.empty())
2303 if (!Elts[0]->getType()->isIntegerTy() &&
2304 !Elts[0]->getType()->isFloatingPointTy() &&
2305 !Elts[0]->getType()->isPointerTy())
2310 for (unsigned i = 1, e = Elts.size(); i != e; ++i)
2311 if (Elts[i]->getType() != Elts[0]->getType())
2314 " is not of type '" + getTypeString(Elts[0]->getType()));
2316 ID.ConstantVal = ConstantVector::get(Elts);
2322 SmallVector<Constant*, 16> Elts;
2324 if (ParseGlobalValueVector(Elts) ||
2329 if (Elts.empty()) {
2336 if (!Elts[0]->getType()->isFirstClassType())
2338 getTypeString(Elts[0]->getType()));
2340 ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size());
2343 for (unsigned i = 0, e = Elts.size(); i != e; ++i) {
2344 if (Elts[i]->getType() != Elts[0]->getType())
2347 " is not of type '" + getTypeString(Elts[0]->getType()));
2350 ID.ConstantVal = ConstantArray::get(ATy, Elts);
2626 SmallVector<Constant*, 16> Elts;
2632 ParseGlobalValueVector(Elts) ||
2637 if (Elts.size() == 0 ||
2638 !Elts[0]->getType()->getScalarType()->isPointerTy())
2641 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end());
2642 if (!GetElementPtrInst::getIndexedType(Elts[0]->getType(), Indices))
2644 ID.ConstantVal = ConstantExpr::getGetElementPtr(Elts[0], Indices,
2647 if (Elts.size() != 3)
2649 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1],
2650 Elts[2]))
2652 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]);
2654 if (Elts.size() != 3)
2656 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
2659 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]);
2661 if (Elts.size() != 2)
2663 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1]))
2665 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]);
2668 if (Elts.size() != 3)
2670 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2]))
2673 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]);
2706 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts) {
2716 Elts.push_back(C);
2720 Elts.push_back(C);
2730 SmallVector<Value*, 16> Elts;
2731 if (ParseMDNodeVector(Elts, PFS) ||
2735 ID.MDNodeVal = MDNode::get(Context, Elts);
4363 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts,
4372 Elts.push_back(0);
4378 Elts.push_back(V);