Lines Matching refs:GepI
124 bool isHandledGepForm(GetElementPtrInst *GepI);
125 void processGepInst(GetElementPtrInst *GepI, ValueToNodeMap &NM);
335 bool HexagonCommonGEP::isHandledGepForm(GetElementPtrInst *GepI) { in isHandledGepForm() argument
337 if (!GepI->getType()->isPointerTy()) in isHandledGepForm()
340 if (GepI->idx_begin() == GepI->idx_end()) in isHandledGepForm()
345 void HexagonCommonGEP::processGepInst(GetElementPtrInst *GepI, in processGepInst() argument
347 LLVM_DEBUG(dbgs() << "Visiting GEP: " << *GepI << '\n'); in processGepInst()
349 Value *PtrOp = GepI->getPointerOperand(); in processGepInst()
350 uint32_t InBounds = GepI->isInBounds() ? GepNode::InBounds : 0; in processGepInst()
361 N->PTy = GepI->getSourceElementType(); in processGepInst()
363 N->Idx = *GepI->idx_begin(); in processGepInst()
368 for (Value::user_iterator UI = GepI->user_begin(), UE = GepI->user_end(); in processGepInst()
385 Type *PtrTy = GepI->getSourceElementType(); in processGepInst()
386 for (Use &U : llvm::drop_begin(GepI->indices())) { in processGepInst()
408 NM.insert(std::make_pair(GepI, PN)); in processGepInst()
423 if (auto *GepI = dyn_cast<GetElementPtrInst>(&J)) in collect() local
424 if (isHandledGepForm(GepI)) in collect()
425 processGepInst(GepI, NM); in collect()