Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Indices

1698 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
1712 Indices.push_back(Idx);
2614 SmallVector<unsigned, 4> Indices;
2617 ParseIndexList(Indices) ||
2623 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
2624 return Error(ID.Loc, "invalid indices for extractvalue");
2625 ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices);
2632 SmallVector<unsigned, 4> Indices;
2637 ParseIndexList(Indices) ||
2642 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices))
2643 return Error(ID.Loc, "invalid indices for insertvalue");
2644 ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices);
2811 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end());
2812 if (!GetElementPtrInst::getIndexedType(Elts[0]->getType(), Indices))
2813 return Error(ID.Loc, "invalid indices for getelementptr");
2814 ID.ConstantVal = ConstantExpr::getGetElementPtr(Elts[0], Indices,
4498 SmallVector<Value*, 16> Indices;
4517 Indices.push_back(Val);
4520 if (!Indices.empty() && !BasePointerType->getElementType()->isSized())
4523 if (!GetElementPtrInst::getIndexedType(BaseType, Indices))
4524 return Error(Loc, "invalid getelementptr indices");
4525 Inst = GetElementPtrInst::Create(Ptr, Indices);
4535 SmallVector<unsigned, 4> Indices;
4538 ParseIndexList(Indices, AteExtraComma))
4544 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
4545 return Error(Loc, "invalid indices for extractvalue");
4546 Inst = ExtractValueInst::Create(Val, Indices);
4554 SmallVector<unsigned, 4> Indices;
4559 ParseIndexList(Indices, AteExtraComma))
4565 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices))
4566 return Error(Loc0, "invalid indices for insertvalue");
4567 Inst = InsertValueInst::Create(Val0, Val1, Indices);