Lines Matching refs:GEP
538 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(LI->getPointerOperand()); in tryToRecognizeTableBasedCttz() local
539 if (!GEP || !GEP->isInBounds() || GEP->getNumIndices() != 2) in tryToRecognizeTableBasedCttz()
542 if (!GEP->getSourceElementType()->isArrayTy()) in tryToRecognizeTableBasedCttz()
545 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); in tryToRecognizeTableBasedCttz()
549 GlobalVariable *GVTable = dyn_cast<GlobalVariable>(GEP->getPointerOperand()); in tryToRecognizeTableBasedCttz()
558 if (!match(GEP->idx_begin()->get(), m_ZeroInt())) in tryToRecognizeTableBasedCttz()
561 Value *Idx2 = std::next(GEP->idx_begin())->get(); in tryToRecognizeTableBasedCttz()
845 while (auto *GEP = dyn_cast<GEPOperator>(PtrOp)) { in getStrideAndModOffsetOfGEP() local
847 if (!GEP->collectOffset(DL, BW, VarOffsets, ModOffset)) in getStrideAndModOffsetOfGEP()
852 if (!GEP->isInBounds()) in getStrideAndModOffsetOfGEP()
861 PtrOp = GEP->getPointerOperand(); in getStrideAndModOffsetOfGEP()