Lines Matching refs:Elts
526 SmallVector<Value *, 16> Elts; in ParseStandaloneMetadata() local
532 ParseMDNodeVector(Elts, NULL) || in ParseStandaloneMetadata()
536 MDNode *Init = MDNode::get(Context, Elts); in ParseStandaloneMetadata()
1485 SmallVector<Type*, 8> Elts; in ParseAnonStructType() local
1486 if (ParseStructBody(Elts)) return true; in ParseAnonStructType()
1488 Result = StructType::get(Context, Elts, Packed); in ParseAnonStructType()
1937 SmallVector<Constant*, 16> Elts; in ParseValID() local
1938 if (ParseGlobalValueVector(Elts) || in ParseValID()
1942 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
1943 ID.UIntVal = Elts.size(); in ParseValID()
1944 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
1954 SmallVector<Constant*, 16> Elts; in ParseValID() local
1956 if (ParseGlobalValueVector(Elts) || in ParseValID()
1963 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
1964 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
1965 ID.UIntVal = Elts.size(); in ParseValID()
1970 if (Elts.empty()) in ParseValID()
1973 if (!Elts[0]->getType()->isIntegerTy() && in ParseValID()
1974 !Elts[0]->getType()->isFloatingPointTy()) in ParseValID()
1979 for (unsigned i = 1, e = Elts.size(); i != e; ++i) in ParseValID()
1980 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
1983 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
1985 ID.ConstantVal = ConstantVector::get(Elts); in ParseValID()
1991 SmallVector<Constant*, 16> Elts; in ParseValID() local
1993 if (ParseGlobalValueVector(Elts) || in ParseValID()
1998 if (Elts.empty()) { in ParseValID()
2005 if (!Elts[0]->getType()->isFirstClassType()) in ParseValID()
2007 getTypeString(Elts[0]->getType())); in ParseValID()
2009 ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size()); in ParseValID()
2012 for (unsigned i = 0, e = Elts.size(); i != e; ++i) { in ParseValID()
2013 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
2016 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
2019 ID.ConstantVal = ConstantArray::get(ATy, Elts); in ParseValID()
2291 SmallVector<Constant*, 16> Elts; in ParseValID() local
2297 ParseGlobalValueVector(Elts) || in ParseValID()
2302 if (Elts.size() == 0 || !Elts[0]->getType()->isPointerTy()) in ParseValID()
2305 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end()); in ParseValID()
2306 if (!GetElementPtrInst::getIndexedType(Elts[0]->getType(), Indices)) in ParseValID()
2308 ID.ConstantVal = ConstantExpr::getGetElementPtr(Elts[0], Indices, in ParseValID()
2311 if (Elts.size() != 3) in ParseValID()
2313 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1], in ParseValID()
2314 Elts[2])) in ParseValID()
2316 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]); in ParseValID()
2318 if (Elts.size() != 3) in ParseValID()
2320 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2323 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]); in ParseValID()
2325 if (Elts.size() != 2) in ParseValID()
2327 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1])) in ParseValID()
2329 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]); in ParseValID()
2332 if (Elts.size() != 3) in ParseValID()
2334 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2337 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]); in ParseValID()
2370 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts) { in ParseGlobalValueVector() argument
2380 Elts.push_back(C); in ParseGlobalValueVector()
2384 Elts.push_back(C); in ParseGlobalValueVector()
2394 SmallVector<Value*, 16> Elts; in ParseMetadataListValue() local
2395 if (ParseMDNodeVector(Elts, PFS) || in ParseMetadataListValue()
2399 ID.MDNodeVal = MDNode::get(Context, Elts); in ParseMetadataListValue()
3983 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Value*> &Elts, in ParseMDNodeVector() argument
3992 Elts.push_back(0); in ParseMDNodeVector()
3998 Elts.push_back(V); in ParseMDNodeVector()