reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
554 assert(((isa<ConstantExpr>(GEP) && 555 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)|| 556 isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!"); 561 unsigned Val = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); 568 if (GEP->getNumOperands() > 3) { 569 if (ConstantExpr *CE = dyn_cast<ConstantExpr>(GEP)) { 577 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); 586 GEP->replaceAllUsesWith(NewPtr); 588 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(GEP)) 591 cast<ConstantExpr>(GEP)->destroyConstant();