Lines Matching defs:GEP
201 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
204 for (Value *Op : GEP->operands()) {
213 return GEP;
215 // Simplify the GEP to handle 'gep x, 0' -> x etc.
216 if (Value *V = simplifyGEPInst(GEP->getSourceElementType(), GEPOps[0],
218 GEP->getNoWrapFlags(), {DL, TLI, DT, AC})) {
225 // Scan to see if we have this GEP available.
229 if (GEPI->getType() == GEP->getType() &&
230 GEPI->getSourceElementType() == GEP->getSourceElementType() &&
380 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
382 BasicBlock *CurBB = GEP->getParent();
383 for (Value *Op : GEP->operands()) {
390 GEP->getSourceElementType(), GEPOps[0], ArrayRef(GEPOps).slice(1),
394 Result->setNoWrapFlags(GEP->getNoWrapFlags());