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

Declarations

include/llvm/IR/Instruction.def
  193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst)  // Pointer -> Integer

References

include/llvm/Analysis/PtrUseVisitor.h
  263   void visitPtrToIntInst(PtrToIntInst &I) {
include/llvm/IR/InstVisitor.h
  187   RetTy visitPtrToIntInst(PtrToIntInst &I)        { DELEGATE(CastInst);}
include/llvm/IR/Instructions.h
 5112   PtrToIntInst *cloneImpl() const;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/CFLGraph.h
  272     void visitPtrToIntInst(PtrToIntInst &Inst) {
lib/Analysis/InlineCost.cpp
  269   bool visitPtrToInt(PtrToIntInst &I);
  655 bool CallAnalyzer::visitPtrToInt(PtrToIntInst &I) {
lib/Analysis/InstructionSimplify.cpp
 3252     if (MaxRecurse && isa<PtrToIntInst>(LI) &&
 3260       } else if (PtrToIntInst *RI = dyn_cast<PtrToIntInst>(RHS)) {
 3260       } else if (PtrToIntInst *RI = dyn_cast<PtrToIntInst>(RHS)) {
lib/Analysis/ValueTracking.cpp
 2109   if (auto *P2I = dyn_cast<PtrToIntInst>(V))
lib/Analysis/VectorUtils.cpp
  441     if (isa<BitCastInst>(I) || isa<PtrToIntInst>(I) || isa<IntToPtrInst>(I) ||
lib/CodeGen/Analysis.cpp
  302     } else if (isa<PtrToIntInst>(I)) {
lib/CodeGen/StackProtector.cpp
  174       if (AI == cast<PtrToIntInst>(I)->getOperand(0))
lib/ExecutionEngine/Interpreter/Execution.cpp
 1752 void Interpreter::visitPtrToIntInst(PtrToIntInst &I) {
lib/ExecutionEngine/Interpreter/Interpreter.h
  147   void visitPtrToIntInst(PtrToIntInst &I);
lib/IR/Instructions.cpp
 2761   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertBefore);
 2783   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertAtEnd);
 4208 PtrToIntInst *PtrToIntInst::cloneImpl() const {
 4209   return new PtrToIntInst(getOperand(0), getType());
lib/IR/Verifier.cpp
  447   void visitPtrToIntInst(PtrToIntInst &I);
 2719 void Verifier::visitPtrToIntInst(PtrToIntInst &I) {
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  477             Arg = new PtrToIntInst(Arg, DstType, "PrintArgPtr", Brnch);
lib/Transforms/IPO/Attributor.cpp
 3071     if (isa<PtrToIntInst>(UInst)) {
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1803 Instruction *InstCombiner::visitPtrToInt(PtrToIntInst &CI) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
  547       if (!isa<IntToPtrInst>(V) && !isa<PtrToIntInst>(V) &&
  553       if (isa<IntToPtrInst>(V) || isa<PtrToIntInst>(V)) {
  790     if (auto *CI = dyn_cast<PtrToIntInst>(V)) {
  790     if (auto *CI = dyn_cast<PtrToIntInst>(V)) {
lib/Transforms/InstCombine/InstCombineInternal.h
  418   Instruction *visitPtrToInt(PtrToIntInst &CI);
lib/Transforms/InstCombine/InstCombinePHI.cpp
  135     if (auto *PI = dyn_cast<PtrToIntInst>(Arg)) {
  135     if (auto *PI = dyn_cast<PtrToIntInst>(Arg)) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1438   return V->getType()->isPointerTy() || isa<PtrToIntInst>(V);
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1913   void visitPtrToIntInst(PtrToIntInst &I) {
lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp
  103       if (isa<PtrToIntInst>(P))
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  260   if (PtrToIntInst *PToI = dyn_cast<PtrToIntInst>(AndLHS)) {
  260   if (PtrToIntInst *PToI = dyn_cast<PtrToIntInst>(AndLHS)) {
  269         if (PtrToIntInst *PToI = dyn_cast<PtrToIntInst>(OpUnk->getValue())) {
  269         if (PtrToIntInst *PToI = dyn_cast<PtrToIntInst>(OpUnk->getValue())) {
lib/Transforms/Utils/SimplifyCFG.cpp
  715     if (PtrToIntInst *PTII = dyn_cast<PtrToIntInst>(CV)) {
  715     if (PtrToIntInst *PTII = dyn_cast<PtrToIntInst>(CV)) {
tools/lldb/source/Expression/IRInterpreter.cpp
 1206       const PtrToIntInst *ptr_to_int_inst = dyn_cast<PtrToIntInst>(inst);
 1206       const PtrToIntInst *ptr_to_int_inst = dyn_cast<PtrToIntInst>(inst);
tools/polly/lib/Analysis/ScopDetection.cpp
  495     if (auto *P2I = dyn_cast<PtrToIntInst>(V))
  495     if (auto *P2I = dyn_cast<PtrToIntInst>(V))