Lines Matching defs:GEP
308 GetElementPtrInst *GEP = cast<GetElementPtrInst>(Ptr);
310 auto I = GEPIdx.find(GEP);
314 static Value* GEPToVectorIndex(GetElementPtrInst *GEP) {
316 if (GEP->getNumOperands() != 3)
319 ConstantInt *I0 = dyn_cast<ConstantInt>(GEP->getOperand(1));
323 return GEP->getOperand(2);
333 // Currently only handle the case where the Pointer Operand is a GEP.
346 // since it should be canonical form, the User should be a GEP.
387 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(AllocaUser);
388 if (!GEP) {
396 Value *Index = GEPToVectorIndex(GEP);
398 // If we can't compute a vector index from this GEP, then we can't
401 LLVM_DEBUG(dbgs() << " Cannot compute vector index for GEP " << *GEP
406 GEPVectorIdx[GEP] = Index;
588 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) {
591 if (!GEP->isInBounds())