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

References

include/llvm/IR/IRBuilder.h
 2062       return CreatePtrToInt(V, DestTy, Name);
 2421     Value *LHS_int = CreatePtrToInt(LHS, Type::getInt64Ty(Context));
 2422     Value *RHS_int = CreatePtrToInt(RHS, Type::getInt64Ty(Context));
 2605     Value *PtrIntValue = CreatePtrToInt(PtrValue, IntPtrTy, "ptrint");
lib/CodeGen/AtomicExpandPass.cpp
  660   Value *AddrInt = Builder.CreatePtrToInt(Addr, DL.getIntPtrType(Ctx));
 1065   Value *NewCmp = Builder.CreatePtrToInt(CI->getCompareOperand(), NewTy);
 1066   Value *NewNewVal = Builder.CreatePtrToInt(CI->getNewValOperand(), NewTy);
lib/CodeGen/CodeGenPrepare.cpp
 4942         V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr");
 4954         V = Builder.CreatePtrToInt(V, IntPtrTy, "sunkaddr");
 4980       Value *V = Builder.CreatePtrToInt(AddrMode.BaseGV, IntPtrTy, "sunkaddr");
lib/CodeGen/SafeStack.cpp
  544         IRB.CreateAnd(IRB.CreatePtrToInt(BasePointer, IntPtrTy),
  655     Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(StackPtrTy, UnsafeStackPtr),
lib/ExecutionEngine/Orc/Speculation.cpp
  123               Mutator.CreatePtrToInt(&Fn, Type::getInt64Ty(MContext));
lib/IR/Core.cpp
 3751   return wrap(unwrap(B)->CreatePtrToInt(unwrap(Val), unwrap(DestTy), Name));
lib/Target/AArch64/AArch64ISelLowering.cpp
 8947     Op0 = Builder.CreatePtrToInt(Op0, IntVecTy);
 8948     Op1 = Builder.CreatePtrToInt(Op1, IntVecTy);
lib/Target/ARM/ARMISelLowering.cpp
16908     Op0 = Builder.CreatePtrToInt(Op0, IntVecTy);
16909     Op1 = Builder.CreatePtrToInt(Op1, IntVecTy);
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 2198     Value *LA = Builder.CreatePtrToInt(LoadBasePtr, IntPtrTy);
 2199     Value *SA = Builder.CreatePtrToInt(StoreBasePtr, IntPtrTy);
lib/Target/X86/X86WinEHState.cpp
  328     LSDA = Builder.CreatePtrToInt(LSDA, Int32Ty);
  347       Value *FrameAddrI32 = Builder.CreatePtrToInt(FrameAddr, Int32Ty);
lib/Transforms/IPO/LowerTypeTests.cpp
  742   Value *PtrAsInt = B.CreatePtrToInt(Ptr, IntPtrTy);
lib/Transforms/IPO/MergeFunctions.cpp
  503     return Builder.CreatePtrToInt(V, DestTy);
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1818   Value *P = Builder.CreatePtrToInt(CI.getOperand(0), PtrTy);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1942           Value *PtrToInt = Builder.CreatePtrToInt(PtrOp, Index->getType());
lib/Transforms/Instrumentation/AddressSanitizer.cpp
  976     Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy);
  988       DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy),
 3303   Value *NewAddress = IRB.CreateAdd(IRB.CreatePtrToInt(NewAlloca, IntptrTy),
 3311   IRB.CreateStore(IRB.CreatePtrToInt(NewAlloca, IntptrTy), DynamicAllocaLayout);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1076           IRB.CreateAnd(IRB.CreatePtrToInt(Addr, IntptrTy),
 1077                         IRB.CreatePtrToInt(ShadowPtrMaskValue, IntptrTy)),
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  972       PC = IRB.CreatePtrToInt(F, IntptrTy);
  977     Value *SP = IRB.CreatePtrToInt(
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2110       return IRB.CreatePtrToInt(V, ShadowTy);
 3964           IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
 3981           IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
 4106           IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
 4256         IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
 4266         IRB.CreateAdd(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
 4543           IRB.CreateIntToPtr(IRB.CreatePtrToInt(VAListTag, MS.IntptrTy),
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  859         ToProfile = Builder.CreatePtrToInt(Cand.V, Builder.getInt64Ty());
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  896     auto FrameAddrInt = IRB.CreatePtrToInt(FrameAddrPtr, IntptrTy);
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 2632       Len = Builder.CreatePtrToInt(Len, CmpFuncSizeTy);
lib/Transforms/Scalar/SROA.cpp
 1792       return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),
 1797       return IRB.CreateBitCast(IRB.CreatePtrToInt(V, DL.getIntPtrType(OldTy)),
 1800     return IRB.CreatePtrToInt(V, NewTy);
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  890   Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy);
lib/Transforms/Utils/SimplifyCFG.cpp
 1171         CV = Builder.CreatePtrToInt(CV, DL.getIntPtrType(CV->getType()),
 3779     CompVal = Builder.CreatePtrToInt(
lib/Transforms/Utils/VNCoercion.cpp
   76         StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy);
  106     StoredVal = Helper.CreatePtrToInt(StoredVal, StoredValTy);
  363     SrcVal = Helper.CreatePtrToInt(SrcVal, DL.getIntPtrType(SrcVal->getType()));
tools/clang/lib/CodeGen/CGAtomic.cpp
 1588         return CGF.Builder.CreatePtrToInt(Value, InputIntTy);
tools/clang/lib/CodeGen/CGBuiltin.cpp
   98     return CGF.Builder.CreatePtrToInt(V, IntType);
 2642     Value *Result = Builder.CreatePtrToInt(Ptr, IntPtrTy, "extend.cast");
 3407     Exchange = Builder.CreatePtrToInt(Exchange, IntType);
 3410       Builder.CreatePtrToInt(EmitScalarExpr(E->getArg(2)), IntType);
 5964     ArgValue = Builder.CreatePtrToInt(ArgValue, RegisterType);
 6241       StoreVal = Builder.CreatePtrToInt(StoreVal, Int32Ty);
 7230       StoreVal = Builder.CreatePtrToInt(StoreVal, Int64Ty);
tools/clang/lib/CodeGen/CGCall.cpp
 1175     Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi");
tools/clang/lib/CodeGen/CGClass.cpp
  802   ThisPtr = Builder.CreatePtrToInt(ThisPtr, IntPtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp
  750       PtrAsInt = Builder.CreatePtrToInt(Ptr, IntPtrTy);
 2004       RHS = Builder.CreatePtrToInt(RHS, ResultType, "sub.ptr.rhs.cast");
 2006         Builder.CreatePtrToInt(LvalueDst.getPointer(), ResultType,
 2179     Value = Builder.CreatePtrToInt(Value, Ty);
 2860   return Builder.CreatePtrToInt(V, TargetTy);
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1278     return Builder.CreatePtrToInt(Src, DstTy, "conv");
 2193     return Builder.CreatePtrToInt(PtrExpr, ConvertType(DestTy));
 3533     = Builder.CreatePtrToInt(op.LHS, CGF.PtrDiffTy, "sub.ptr.lhs.cast");
 3535     = Builder.CreatePtrToInt(op.RHS, CGF.PtrDiffTy, "sub.ptr.rhs.cast");
 4375       Src = Builder.CreatePtrToInt(Src, DL.getIntPtrType(SrcTy));
 4570         Builder.CreatePtrToInt(BasePtr, DL.getIntPtrType(BasePtr->getType()));
 4572         Builder.CreatePtrToInt(GEPVal, DL.getIntPtrType(GEPVal->getType()));
 4696   auto *IntPtr = Builder.CreatePtrToInt(Ptr, IntPtrTy);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 5239             CGF.Builder.CreatePtrToInt(Addr.getPointer(), CGM.SizeTy);
 5240         llvm::Value *UpIntPtr = CGF.Builder.CreatePtrToInt(UpAddr, CGM.SizeTy);
 5252           CGF.Builder.CreatePtrToInt(Addr.getPointer(), CGF.IntPtrTy),
 5619           CGF, OVE, RValue::get(CGF.Builder.CreatePtrToInt(Ptr, CGF.SizeTy)));
tools/clang/lib/CodeGen/CGStmt.cpp
 2175           Arg = Builder.CreatePtrToInt(Arg, IntPtrTy);
 2318         Tmp = Builder.CreatePtrToInt(Tmp,
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  944                   Builder.CreatePtrToInt(MasterAddr.getPointer(), CGM.IntPtrTy),
  945                   Builder.CreatePtrToInt(PrivateAddr.getPointer(),
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  527   auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int");
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  936         Builder.CreatePtrToInt(ValuePtr, Builder.getInt64Ty()),
tools/clang/lib/CodeGen/TargetInfo.cpp
  262   PtrAsInt = CGF.Builder.CreatePtrToInt(PtrAsInt, CGF.IntPtrTy);
 5491     OnStackPtr = CGF.Builder.CreatePtrToInt(OnStackPtr, CGF.Int64Ty);
tools/polly/lib/CodeGen/IslExprBuilder.cpp
  506     LHS = Builder.CreatePtrToInt(LHS, PtrAsIntTy);
  508     RHS = Builder.CreatePtrToInt(RHS, PtrAsIntTy);
  728     V = Builder.CreatePtrToInt(V, Builder.getIntNTy(DL.getPointerSizeInBits()));
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  139         Val = Builder.CreatePtrToInt(Val, Builder.getInt64Ty());
  216         Val = Builder.CreatePtrToInt(Val, Builder.getInt64Ty());