Lines Matching full:fieldno
1344 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo,
1349 if (FieldNo >= FieldVals.size())
1350 FieldVals.resize(FieldNo+1);
1354 if (Value *FieldVal = FieldVals[FieldNo])
1362 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo,
1365 LI->getName()+".f"+Twine(FieldNo), LI);
1373 PHINode::Create(PointerType::getUnqual(ST->getElementType(FieldNo)),
1375 PN->getName()+".f"+Twine(FieldNo), PN);
1377 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo));
1382 return FieldVals[FieldNo] = Result;
1406 // Handle 'getelementptr Ptr, Idx, i32 FieldNo ...'
1412 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1413 Value *NewPtr = GetHeapSROAValue(GEPI->getOperand(0), FieldNo,
1486 for (unsigned FieldNo = 0, e = STy->getNumElements(); FieldNo != e;++FieldNo){
1487 Type *FieldTy = STy->getElementType(FieldNo);
1494 GV->getName() + ".f" + Twine(FieldNo), GV,
1505 CI->getName() + ".f" + Twine(FieldNo));
1612 unsigned FieldNo = PHIsToRewrite.back().second;
1614 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1620 FieldNo, InsertedScalarizedValues,