Lines Matching defs:GEP
635 if (auto *GEP = dyn_cast<GEPOperator>(V)) {
641 if (!GEP->hasAllZeroIndices())
645 if (!GEP->hasAllConstantIndices())
649 if (!GEP->isInBounds())
653 V = GEP->getPointerOperand();
731 if (auto *GEP = dyn_cast<GEPOperator>(V)) {
733 if (!AllowNonInbounds && !GEP->isInBounds())
737 // the pointer type of this GEP may be different from the type
740 // of GEP's pointer type rather than the size of the original
743 if (!GEP->accumulateConstantOffset(DL, GEPOffset, ExternalAnalysis))
766 V = GEP->getPointerOperand();
996 getOffsetFromIndex(const GEPOperator *GEP, unsigned Idx, const DataLayout &DL) {
998 gep_type_iterator GTI = gep_type_begin(GEP);
1004 for (unsigned i = Idx, e = GEP->getNumOperands(); i != e; ++i, ++GTI) {
1005 ConstantInt *OpC = dyn_cast<ConstantInt>(GEP->getOperand(i));
1053 // Skip any common indices and track the GEP types.