Lines Matching refs:GEP
36 GetElementPtrInst *GEP = in shouldConvertToRelLookupTable() local
38 if (!GEP || !GEP->hasOneUse() || in shouldConvertToRelLookupTable()
39 GV.getValueType() != GEP->getSourceElementType()) in shouldConvertToRelLookupTable()
42 LoadInst *Load = dyn_cast<LoadInst>(GEP->use_begin()->getUser()); in shouldConvertToRelLookupTable()
44 Load->getType() != GEP->getResultElementType()) in shouldConvertToRelLookupTable()
131 GetElementPtrInst *GEP = in convertToRelLookupTable() local
133 LoadInst *Load = cast<LoadInst>(GEP->use_begin()->getUser()); in convertToRelLookupTable()
136 BasicBlock *BB = GEP->getParent(); in convertToRelLookupTable()
144 Builder.SetInsertPoint(GEP); in convertToRelLookupTable()
145 Value *Index = GEP->getOperand(2); in convertToRelLookupTable()
166 GEP->eraseFromParent(); in convertToRelLookupTable()