Lines Matching refs:Elts

1957   SmallVector<Type*, 8> Elts;  in ParseAnonStructType()  local
1958 if (ParseStructBody(Elts)) return true; in ParseAnonStructType()
1960 Result = StructType::get(Context, Elts, Packed); in ParseAnonStructType()
2385 SmallVector<Constant*, 16> Elts; in ParseValID() local
2386 if (ParseGlobalValueVector(Elts) || in ParseValID()
2390 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
2391 ID.UIntVal = Elts.size(); in ParseValID()
2392 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
2402 SmallVector<Constant*, 16> Elts; in ParseValID() local
2404 if (ParseGlobalValueVector(Elts) || in ParseValID()
2411 ID.ConstantStructElts = new Constant*[Elts.size()]; in ParseValID()
2412 memcpy(ID.ConstantStructElts, Elts.data(), Elts.size()*sizeof(Elts[0])); in ParseValID()
2413 ID.UIntVal = Elts.size(); in ParseValID()
2418 if (Elts.empty()) in ParseValID()
2421 if (!Elts[0]->getType()->isIntegerTy() && in ParseValID()
2422 !Elts[0]->getType()->isFloatingPointTy() && in ParseValID()
2423 !Elts[0]->getType()->isPointerTy()) in ParseValID()
2428 for (unsigned i = 1, e = Elts.size(); i != e; ++i) in ParseValID()
2429 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
2432 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
2434 ID.ConstantVal = ConstantVector::get(Elts); in ParseValID()
2440 SmallVector<Constant*, 16> Elts; in ParseValID() local
2442 if (ParseGlobalValueVector(Elts) || in ParseValID()
2447 if (Elts.empty()) { in ParseValID()
2454 if (!Elts[0]->getType()->isFirstClassType()) in ParseValID()
2456 getTypeString(Elts[0]->getType())); in ParseValID()
2458 ArrayType *ATy = ArrayType::get(Elts[0]->getType(), Elts.size()); in ParseValID()
2461 for (unsigned i = 0, e = Elts.size(); i != e; ++i) { in ParseValID()
2462 if (Elts[i]->getType() != Elts[0]->getType()) in ParseValID()
2465 " is not of type '" + getTypeString(Elts[0]->getType())); in ParseValID()
2468 ID.ConstantVal = ConstantArray::get(ATy, Elts); in ParseValID()
2800 SmallVector<Constant*, 16> Elts; in ParseValID() local
2818 if (ParseGlobalValueVector(Elts) || in ParseValID()
2823 if (Elts.size() == 0 || in ParseValID()
2824 !Elts[0]->getType()->getScalarType()->isPointerTy()) in ParseValID()
2827 Type *BaseType = Elts[0]->getType(); in ParseValID()
2834 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end()); in ParseValID()
2859 ConstantExpr::getGetElementPtr(Ty, Elts[0], Indices, InBounds); in ParseValID()
2861 if (Elts.size() != 3) in ParseValID()
2863 if (const char *Reason = SelectInst::areInvalidOperands(Elts[0], Elts[1], in ParseValID()
2864 Elts[2])) in ParseValID()
2866 ID.ConstantVal = ConstantExpr::getSelect(Elts[0], Elts[1], Elts[2]); in ParseValID()
2868 if (Elts.size() != 3) in ParseValID()
2870 if (!ShuffleVectorInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2873 ConstantExpr::getShuffleVector(Elts[0], Elts[1],Elts[2]); in ParseValID()
2875 if (Elts.size() != 2) in ParseValID()
2877 if (!ExtractElementInst::isValidOperands(Elts[0], Elts[1])) in ParseValID()
2879 ID.ConstantVal = ConstantExpr::getExtractElement(Elts[0], Elts[1]); in ParseValID()
2882 if (Elts.size() != 3) in ParseValID()
2884 if (!InsertElementInst::isValidOperands(Elts[0], Elts[1], Elts[2])) in ParseValID()
2887 ConstantExpr::getInsertElement(Elts[0], Elts[1],Elts[2]); in ParseValID()
2943 bool LLParser::ParseGlobalValueVector(SmallVectorImpl<Constant *> &Elts) { in ParseGlobalValueVector() argument
2953 Elts.push_back(C); in ParseGlobalValueVector()
2957 Elts.push_back(C); in ParseGlobalValueVector()
2964 SmallVector<Metadata *, 16> Elts; in ParseMDTuple() local
2965 if (ParseMDNodeVector(Elts)) in ParseMDTuple()
2968 MD = (IsDistinct ? MDTuple::getDistinct : MDTuple::get)(Context, Elts); in ParseMDTuple()
5612 bool LLParser::ParseMDNodeVector(SmallVectorImpl<Metadata *> &Elts) { in ParseMDNodeVector() argument
5623 Elts.push_back(nullptr); in ParseMDNodeVector()
5630 Elts.push_back(MD); in ParseMDNodeVector()