Lines Matching refs:Elts
522 SmallVector<Value *, 16> Elts; in ParseStandaloneMetadata() local
528 ParseMDNodeVector(Elts, NULL) || in ParseStandaloneMetadata()
532 MDNode *Init = MDNode::get(Context, Elts); in ParseStandaloneMetadata()
1522 SmallVector<Type*, 8> Elts; in ParseAnonStructType() local
1523 if (ParseStructBody(Elts)) return true; in ParseAnonStructType()
1525 Result = StructType::get(Context, Elts, Packed); in ParseAnonStructType()
1975 SmallVector<Constant*, 16> Elts; in ParseValID() local
1976 if (ParseGlobalValueVector(Elts) || in ParseValID()
1980 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
1981 ID.UIntVal = Elts.size(); in ParseValID()
1982 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
1992 SmallVector<Constant*, 16> Elts; in ParseValID() local
1994 if (ParseGlobalValueVector(Elts) || in ParseValID()
2001 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
2002 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
2003 ID.UIntVal = Elts.size(); in ParseValID()
2008 if (Elts.empty()) in ParseValID()
2011 if (!Elts[0]->getType()->isIntegerTy() && in ParseValID()
2012 !Elts[0]->getType()->isFloatingPointTy() && in ParseValID()
2013 !Elts[0]->getType()->isPointerTy()) in ParseValID()
2018 for (unsigned i = 1, e = Elts.size(); i != e; ++i) in ParseValID()
2019 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
2022 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
2024 ID.ConstantVal = ConstantVector::get(Elts); in ParseValID()
2030 SmallVector<Constant*, 16> Elts; in ParseValID() local
2032 if (ParseGlobalValueVector(Elts) || in ParseValID()
2037 if (Elts.empty()) { in ParseValID()
2044 if (!Elts[0]->getType()->isFirstClassType()) in ParseValID()
2046 getTypeString(Elts[0]->getType())); in ParseValID()
2048 ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size()); in ParseValID()
2051 for (unsigned i = 0, e = Elts.size(); i != e; ++i) { in ParseValID()
2052 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
2055 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
2058 ID.ConstantVal = ConstantArray::get(ATy, Elts); in ParseValID()
2333 SmallVector<Constant*, 16> Elts; in ParseValID() local
2339 ParseGlobalValueVector(Elts) || in ParseValID()
2344 if (Elts.size() == 0 || in ParseValID()
2345 !Elts[0]->getType()->getScalarType()->isPointerTy()) in ParseValID()
2348 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end()); in ParseValID()
2349 if (!GetElementPtrInst::getIndexedType(Elts[0]->getType(), Indices)) in ParseValID()
2351 ID.ConstantVal = ConstantExpr::getGetElementPtr(Elts[0], Indices, in ParseValID()
2354 if (Elts.size() != 3) in ParseValID()
2356 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1], in ParseValID()
2357 Elts[2])) in ParseValID()
2359 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]); in ParseValID()
2361 if (Elts.size() != 3) in ParseValID()
2363 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2366 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]); in ParseValID()
2368 if (Elts.size() != 2) in ParseValID()
2370 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1])) in ParseValID()
2372 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]); in ParseValID()
2375 if (Elts.size() != 3) in ParseValID()
2377 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2380 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]); in ParseValID()
2413 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts) { in ParseGlobalValueVector() argument
2423 Elts.push_back(C); in ParseGlobalValueVector()
2427 Elts.push_back(C); in ParseGlobalValueVector()
2437 SmallVector<Value*, 16> Elts; in ParseMetadataListValue() local
2438 if (ParseMDNodeVector(Elts, PFS) || in ParseMetadataListValue()
2442 ID.MDNodeVal = MDNode::get(Context, Elts); in ParseMetadataListValue()
4024 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts, in ParseMDNodeVector() argument
4033 Elts.push_back(0); in ParseMDNodeVector()
4039 Elts.push_back(V); in ParseMDNodeVector()