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

Declarations

include/llvm/Analysis/MemoryBuiltins.h
   45 class IntToPtrInst;
include/llvm/IR/Instruction.def
  194 HANDLE_CAST_INST(48, IntToPtr, IntToPtrInst)  // Integer -> Pointer

References

include/llvm/Analysis/MemoryBuiltins.h
  269   SizeOffsetType visitIntToPtrInst(IntToPtrInst&);
  336   SizeOffsetEvalType visitIntToPtrInst(IntToPtrInst&);
include/llvm/IR/InstVisitor.h
  188   RetTy visitIntToPtrInst(IntToPtrInst &I)        { DELEGATE(CastInst);}
include/llvm/IR/Instructions.h
 5085   IntToPtrInst *cloneImpl() const;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(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
  277     void visitIntToPtrInst(IntToPtrInst &Inst) {
  278       auto *Ptr = &Inst;
lib/Analysis/InlineCost.cpp
  270   bool visitIntToPtr(IntToPtrInst &I);
  688 bool CallAnalyzer::visitIntToPtr(IntToPtrInst &I) {
lib/Analysis/MemoryBuiltins.cpp
  770 SizeOffsetType ObjectSizeOffsetVisitor::visitIntToPtrInst(IntToPtrInst&) {
  980 SizeOffsetEvalType ObjectSizeOffsetEvaluator::visitIntToPtrInst(IntToPtrInst&) {
lib/Analysis/ValueTracking.cpp
 2101     if (auto *I2P = dyn_cast<IntToPtrInst>(V))
lib/Analysis/VectorUtils.cpp
  441     if (isa<BitCastInst>(I) || isa<PtrToIntInst>(I) || isa<IntToPtrInst>(I) ||
lib/CodeGen/Analysis.cpp
  294     } else if (isa<IntToPtrInst>(I)) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  960   if (const auto *C = dyn_cast<IntToPtrInst>(Callee)) {
  960   if (const auto *C = dyn_cast<IntToPtrInst>(Callee)) {
lib/ExecutionEngine/Interpreter/Execution.cpp
 1757 void Interpreter::visitIntToPtrInst(IntToPtrInst &I) {
lib/ExecutionEngine/Interpreter/Interpreter.h
  148   void visitIntToPtrInst(IntToPtrInst &I);
lib/IR/Instructions.cpp
 2762   case IntToPtr:      return new IntToPtrInst      (S, Ty, Name, InsertBefore);
 2784   case IntToPtr:      return new IntToPtrInst      (S, Ty, Name, InsertAtEnd);
 4212 IntToPtrInst *IntToPtrInst::cloneImpl() const {
 4213   return new IntToPtrInst(getOperand(0), getType());
lib/IR/Value.cpp
  645   } else if (auto *IP = dyn_cast<IntToPtrInst>(this)) {
lib/IR/Verifier.cpp
  446   void visitIntToPtrInst(IntToPtrInst &I);
 2744 void Verifier::visitIntToPtrInst(IntToPtrInst &I) {
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1757 Instruction *InstCombiner::visitIntToPtr(IntToPtrInst &CI) {
 1769     return new IntToPtrInst(P, CI.getType());
lib/Transforms/InstCombine/InstCombineCompares.cpp
  547       if (!isa<IntToPtrInst>(V) && !isa<PtrToIntInst>(V) &&
  553       if (isa<IntToPtrInst>(V) || isa<PtrToIntInst>(V)) {
  784     if (auto *CI = dyn_cast<IntToPtrInst>(V)) {
  784     if (auto *CI = dyn_cast<IntToPtrInst>(V)) {
lib/Transforms/InstCombine/InstCombineInternal.h
  419   Instruction *visitIntToPtr(IntToPtrInst &CI);
lib/Transforms/InstCombine/InstCombinePHI.cpp
  101   auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back());
  101   auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back());
  143       if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() &&
  214         return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V);
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1920   void visitIntToPtrInst(IntToPtrInst &I) {
tools/lldb/source/Expression/IRInterpreter.cpp
 1175       const IntToPtrInst *int_to_ptr_inst = dyn_cast<IntToPtrInst>(inst);
 1175       const IntToPtrInst *int_to_ptr_inst = dyn_cast<IntToPtrInst>(inst);
tools/polly/lib/Analysis/ScopDetection.cpp
 1066   if (IntToPtrInst *Inst = dyn_cast<IntToPtrInst>(BV))
 1066   if (IntToPtrInst *Inst = dyn_cast<IntToPtrInst>(BV))
unittests/Analysis/ScalarEvolutionTest.cpp
  415     X = new LoadInst(IntPtrTy, new IntToPtrInst(X, IntPtrPtrTy, "", EntryBB),
  418     Y = new LoadInst(IntPtrTy, new IntToPtrInst(Y, IntPtrPtrTy, "", EntryBB),
unittests/IR/InstructionsTest.cpp
  326   CastInst *PtrVecA = new IntToPtrInst(C2xi32a, V2xi32PTy);
  327   CastInst *PtrVecB = new IntToPtrInst(C2xi32b, V2xi32PTy);