Lines Matching refs:FieldNo
1170 static Value *GetHeapSROAValue(Value *V, unsigned FieldNo,
1175 if (FieldNo >= FieldVals.size())
1176 FieldVals.resize(FieldNo+1);
1180 if (Value *FieldVal = FieldVals[FieldNo])
1188 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo,
1191 LI->getName()+".f"+Twine(FieldNo), LI);
1199 PHINode::Create(PointerType::getUnqual(ST->getElementType(FieldNo)),
1201 PN->getName()+".f"+Twine(FieldNo), PN);
1203 PHIsToRewrite.push_back(std::make_pair(PN, FieldNo));
1209 return FieldVals[FieldNo] = Result;
1233 FieldNo ...'
1239 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1240 Value *NewPtr = GetHeapSROAValue(GEPI->getOperand(0), FieldNo,
1312 for (unsigned FieldNo = 0, e = STy->getNumElements(); FieldNo != e;++FieldNo){
1313 Type *FieldTy = STy->getElementType(FieldNo);
1320 GV->getName() + ".f" + Twine(FieldNo), GV,
1331 CI->getName() + ".f" + Twine(FieldNo));
1438 unsigned FieldNo = PHIsToRewrite.back().second;
1440 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1446 InVal = GetHeapSROAValue(InVal, FieldNo, InsertedScalarizedValues,