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

Declarations

include/llvm/IR/Constants.h
  964   static Constant *getPtrToInt(Constant *C, Type *Ty,

References

lib/Analysis/ConstantFolding.cpp
  855             Constant *Res = ConstantExpr::getPtrToInt(Ptr, CE->getType());
lib/Analysis/InlineCost.cpp
  658         return ConstantExpr::getPtrToInt(COps[0], I.getType());
lib/IR/AutoUpgrade.cpp
 3800     return ConstantExpr::getIntToPtr(ConstantExpr::getPtrToInt(C, MidTy),
lib/IR/Constants.cpp
 1590     return getPtrToInt(C, Ty, OnlyIfReduced);
 1624     return getPtrToInt(S, Ty);
 1933   return getPtrToInt(GEP,
 1946   return getPtrToInt(GEP,
 1964   return getPtrToInt(GEP,
lib/IR/Core.cpp
 1707   return wrap(ConstantExpr::getPtrToInt(unwrap<Constant>(ConstantVal),
lib/Transforms/IPO/LowerTypeTests.cpp
  682         B.CreateAnd(Byte, ConstantExpr::getPtrToInt(TIL.BitMask, Int8Ty));
  745       ConstantExpr::getPtrToInt(TIL.OffsetedGlobal, IntPtrTy);
  985       C = ConstantExpr::getPtrToInt(C, Ty);
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1277   C = ConstantExpr::getPtrToInt(C, IntTy);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1296                 ConstantExpr::getPtrToInt(NewGV, Int64Ty),
 1297                 ConstantExpr::getPtrToInt(Descriptor, Int64Ty)),
 1312           ConstantExpr::getPtrToInt(NewGV, Int64Ty),
 1380         ConstantExpr::getSub(ConstantExpr::getPtrToInt(Ptr, Int64Ty),
 1381                              ConstantExpr::getPtrToInt(Note, Int64Ty)),
lib/Transforms/Utils/Local.cpp
 2559   auto *NullInt = ConstantExpr::getPtrToInt(
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1838   return llvm::ConstantExpr::getPtrToInt(value, destTy);
 2085     LHS = llvm::ConstantExpr::getPtrToInt(LHS, CGM.IntPtrTy);
 2086     RHS = llvm::ConstantExpr::getPtrToInt(RHS, CGM.IntPtrTy);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 3215   llvm::Constant *ptr = llvm::ConstantExpr::getPtrToInt(GS, IntPtrTy);
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  514   auto *GOTAsInt = llvm::ConstantExpr::getPtrToInt(GV, IntPtrTy);
  515   auto *FuncAsInt = llvm::ConstantExpr::getPtrToInt(F, IntPtrTy);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 4700         IsSwiftABI ? llvm::ConstantExpr::getPtrToInt(C, Ty)
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  135   base = llvm::ConstantExpr::getPtrToInt(base, Builder.CGM.IntPtrTy);
  136   target = llvm::ConstantExpr::getPtrToInt(target, Builder.CGM.IntPtrTy);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1009     MemPtr[0] = llvm::ConstantExpr::getPtrToInt(addr, CGM.PtrDiffTy);
 3395     TypeNameField = llvm::ConstantExpr::getPtrToInt(TypeName, CGM.Int64Ty);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  542         llvm::ConstantExpr::getPtrToInt(getImageBase(), CGM.IntPtrTy);
  544         llvm::ConstantExpr::getPtrToInt(PtrVal, CGM.IntPtrTy);
unittests/IR/ConstantsTest.cpp
  207   Constant *P0 = ConstantExpr::getPtrToInt(Global, Int32Ty);
  211   Constant *P4 = ConstantExpr::getPtrToInt(Global2, Int32Ty);
  336   Constant *GlobalInt = ConstantExpr::getPtrToInt(Global, IntTy);
  360   Constant *Int1 = ConstantExpr::getPtrToInt(G1, IntTy);
  361   Constant *Int2 = ConstantExpr::getPtrToInt(G2, IntTy);
  493       ConstantExpr::getPtrToInt(Func, ConstantIntType));
  582       ConstantExpr::getPtrToInt(Global.get(), IntType));