Lines Matching refs:ElementIdx
525 unsigned ElementIdx = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in SRAGlobal() local
526 if (NewGlobals.count(ElementIdx) == 1) in SRAGlobal()
528 assert(NewGlobals.count(ElementIdx) == 0); in SRAGlobal()
532 ElTy = STy->getElementType(ElementIdx); in SRAGlobal()
537 Constant *In = Init->getAggregateElement(ElementIdx); in SRAGlobal()
542 GV->getName() + "." + Twine(ElementIdx), GV->getThreadLocalMode(), in SRAGlobal()
546 NewGlobals.insert(std::make_pair(ElementIdx, NGV)); in SRAGlobal()
554 uint64_t FieldOffset = Layout.getElementOffset(ElementIdx); in SRAGlobal()
556 if (NewAlign > DL.getABITypeAlign(STy->getElementType(ElementIdx))) in SRAGlobal()
561 uint64_t FragmentOffsetInBits = Layout.getElementOffsetInBits(ElementIdx); in SRAGlobal()
571 Align NewAlign = commonAlignment(StartAlignment, EltSize * ElementIdx); in SRAGlobal()
574 transferSRADebugInfo(GV, NGV, FragmentSizeInBits * ElementIdx, in SRAGlobal()
601 unsigned ElementIdx = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in SRAGlobal() local
602 assert(NewGlobals.count(ElementIdx) == 1); in SRAGlobal()
604 Value *NewPtr = NewGlobals[ElementIdx]; in SRAGlobal()
605 Type *NewTy = NewGlobals[ElementIdx]->getValueType(); in SRAGlobal()
623 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(ElementIdx), in SRAGlobal()