Lines Matching defs:GepI
123 bool isHandledGepForm(GetElementPtrInst *GepI);
124 void processGepInst(GetElementPtrInst *GepI, ValueToNodeMap &NM);
334 bool HexagonCommonGEP::isHandledGepForm(GetElementPtrInst *GepI) {
336 if (!GepI->getType()->isPointerTy())
339 if (GepI->idx_begin() == GepI->idx_end())
344 void HexagonCommonGEP::processGepInst(GetElementPtrInst *GepI,
346 LLVM_DEBUG(dbgs() << "Visiting GEP: " << *GepI << '\n');
348 Value *PtrOp = GepI->getPointerOperand();
349 uint32_t InBounds = GepI->isInBounds() ? GepNode::InBounds : 0;
360 N->PTy = GepI->getSourceElementType();
362 N->Idx = *GepI->idx_begin();
367 for (Value::user_iterator UI = GepI->user_begin(), UE = GepI->user_end();
384 Type *PtrTy = GepI->getSourceElementType();
385 for (Use &U : llvm::drop_begin(GepI->indices())) {
407 NM.insert(std::make_pair(GepI, PN));
422 if (auto *GepI = dyn_cast<GetElementPtrInst>(&J))
423 if (isHandledGepForm(GepI))
424 processGepInst(GepI, NM);