reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Analysis/ConstantFolding.cpp
  837   if (!Ptr->getType()->isPointerTy())
  840   Type *IntPtrTy = DL.getIntPtrType(Ptr->getType());
  855             Constant *Res = ConstantExpr::getPtrToInt(Ptr, CE->getType());
  872   Ptr = StripPtrCastKeepAS(Ptr, SrcElemTy);
  872   Ptr = StripPtrCastKeepAS(Ptr, SrcElemTy);
  875   while (auto *GEP = dyn_cast<GEPOperator>(Ptr)) {
  891     Ptr = cast<Constant>(GEP->getOperand(0));
  894     Ptr = StripPtrCastKeepAS(Ptr, SrcElemTy);
  894     Ptr = StripPtrCastKeepAS(Ptr, SrcElemTy);
  900   if (auto *CE = dyn_cast<ConstantExpr>(Ptr)) {
  907   auto *PTy = cast<PointerType>(Ptr->getType());
  908   if ((Ptr->isNullValue() || BasePtr != 0) &&
  910     Constant *C = ConstantInt::get(Ptr->getContext(), Offset + BasePtr);
  997   Constant *C = ConstantExpr::getGetElementPtr(SrcElemTy, Ptr, NewIdxs,