Home | History | Annotate | Download | only in AsmParser

Lines Matching refs:Indices

1528 bool LLParser::ParseIndexList(SmallVectorImpl<unsigned> &Indices,
1542 Indices.push_back(Idx);
2444 SmallVector<unsigned, 4> Indices;
2447 ParseIndexList(Indices) ||
2453 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
2454 return Error(ID.Loc, "invalid indices for extractvalue");
2455 ID.ConstantVal = ConstantExpr::getExtractValue(Val, Indices);
2462 SmallVector<unsigned, 4> Indices;
2467 ParseIndexList(Indices) ||
2472 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices))
2473 return Error(ID.Loc, "invalid indices for insertvalue");
2474 ID.ConstantVal = ConstantExpr::getInsertValue(Val0, Val1, Indices);
2641 ArrayRef<Constant *> Indices(Elts.begin() + 1, Elts.end());
2642 if (!GetElementPtrInst::getIndexedType(Elts[0]->getType(), Indices))
2643 return Error(ID.Loc, "invalid indices for getelementptr");
2644 ID.ConstantVal = ConstantExpr::getGetElementPtr(Elts[0], Indices,
4282 SmallVector<Value*, 16> Indices;
4301 Indices.push_back(Val);
4304 if (!Indices.empty() && !BasePointerType->getElementType()->isSized())
4307 if (!GetElementPtrInst::getIndexedType(BaseType, Indices))
4308 return Error(Loc, "invalid getelementptr indices");
4309 Inst = GetElementPtrInst::Create(Ptr, Indices);
4319 SmallVector<unsigned, 4> Indices;
4322 ParseIndexList(Indices, AteExtraComma))
4328 if (!ExtractValueInst::getIndexedType(Val->getType(), Indices))
4329 return Error(Loc, "invalid indices for extractvalue");
4330 Inst = ExtractValueInst::Create(Val, Indices);
4338 SmallVector<unsigned, 4> Indices;
4343 ParseIndexList(Indices, AteExtraComma))
4349 if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices))
4350 return Error(Loc0, "invalid indices for insertvalue");
4351 Inst = InsertValueInst::Create(Val0, Val1, Indices);