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

References

include/llvm/Analysis/TargetFolder.h
  199     return CreateCast(Instruction::PtrToInt, C, DestTy);
include/llvm/Analysis/TargetTransformInfoImpl.h
   84     case Instruction::PtrToInt: {
include/llvm/IR/ConstantFolder.h
  216     return CreateCast(Instruction::PtrToInt, C, DestTy);
include/llvm/IR/IRBuilder.h
 1971     return CreateCast(Instruction::PtrToInt, V, DestTy, Name);
include/llvm/IR/Instructions.h
 5145     return I->getOpcode() == PtrToInt;
include/llvm/IR/NoFolder.h
  280     return CreateCast(Instruction::PtrToInt, C, DestTy);
include/llvm/IR/Operator.h
  555     : public ConcreteOperator<Operator, Instruction::PtrToInt> {
include/llvm/IR/PatternMatch.h
 1294 inline CastClass_match<OpTy, Instruction::PtrToInt> m_PtrToInt(const OpTy &Op) {
 1295   return CastClass_match<OpTy, Instruction::PtrToInt>(Op);
lib/Analysis/CFLGraph.h
  517       case Instruction::PtrToInt: {
lib/Analysis/ConstantFolding.cpp
  302   if (CE->getOpcode() == Instruction::PtrToInt ||
  340         Cast = Instruction::PtrToInt;
 1230       if (CE0->getOpcode() == Instruction::PtrToInt) {
 1256         if (CE0->getOpcode() == Instruction::PtrToInt) {
 1313   case Instruction::PtrToInt:
 1338       if (CE->getOpcode() == Instruction::PtrToInt) {
lib/Analysis/InstructionSimplify.cpp
 4914   if (!LoadedLHS || LoadedLHS->getOpcode() != Instruction::PtrToInt)
lib/Analysis/ScalarEvolution.cpp
  489     if (VCE->getOpcode() == Instruction::PtrToInt)
  506     if (VCE->getOpcode() == Instruction::PtrToInt)
  531     if (VCE->getOpcode() == Instruction::PtrToInt)
lib/Analysis/ScalarEvolutionExpander.cpp
  112           Op == Instruction::PtrToInt ||
  128   if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) &&
  131       if ((CI->getOpcode() == Instruction::PtrToInt ||
  137       if ((CE->getOpcode() == Instruction::PtrToInt ||
lib/Analysis/TargetTransformInfo.cpp
 1218   case Instruction::PtrToInt:
lib/Analysis/ValueTracking.cpp
 1125   case Instruction::PtrToInt:
 2011           CE->getOpcode() == Instruction::PtrToInt)
 3812       if (U->getOpcode() == Instruction::PtrToInt)
lib/AsmParser/LLLexer.cpp
  862   INSTKEYWORD(ptrtoint,    PtrToInt);
lib/Bitcode/Reader/BitcodeReader.cpp
 1050   case bitc::CAST_PTRTOINT: return Instruction::PtrToInt;
lib/Bitcode/Writer/BitcodeWriter.cpp
  513   case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2237   case Instruction::PtrToInt: {
lib/CodeGen/CodeGenPrepare.cpp
 3545   case Instruction::PtrToInt:
 4049   case Instruction::PtrToInt:
lib/CodeGen/MachineFunction.cpp
 1043     A = ConstantFoldCastOperand(Instruction::PtrToInt,
 1049     B = ConstantFoldCastOperand(Instruction::PtrToInt,
lib/CodeGen/SelectionDAG/FastISel.cpp
  357            I->getOpcode() == Instruction::PtrToInt ||
 1895   case Instruction::PtrToInt: {
lib/CodeGen/StackProtector.cpp
  173     case Instruction::PtrToInt:
lib/CodeGen/TargetLoweringBase.cpp
 1626   case PtrToInt:       return ISD::BITCAST;
lib/ExecutionEngine/ExecutionEngine.cpp
  735     case Instruction::PtrToInt: {
lib/ExecutionEngine/Interpreter/Execution.cpp
 2042   case Instruction::PtrToInt:
lib/IR/AutoUpgrade.cpp
 3779     Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy);
lib/IR/ConstantFold.cpp
  628   case Instruction::PtrToInt:   // always treated as unsigned
 1144         if (CE1->getOpcode() == Instruction::PtrToInt &&
lib/IR/ConstantRange.cpp
  662   case Instruction::PtrToInt:
lib/IR/Constants.cpp
  524       if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt &&
  525           RHS->getOpcode() == Instruction::PtrToInt) {
 1256   case Instruction::PtrToInt:
 1589   case Instruction::PtrToInt:
 1788   return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced);
 2999   case Instruction::PtrToInt:
lib/IR/Globals.cpp
  456     case Instruction::PtrToInt:
lib/IR/Instruction.cpp
  350   case PtrToInt:      return "ptrtoint";
lib/IR/Instructions.cpp
 2509     case Instruction::PtrToInt:
 2761   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertBefore);
 2783   case PtrToInt:      return new PtrToIntInst      (S, Ty, Name, InsertAtEnd);
 2851     return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd);
 2869     return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore);
 2904     return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore);
 3134       return PtrToInt;                              // ptr -> int
 3234   case Instruction::PtrToInt:
 3411 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) {
 3417 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) {
lib/IR/Verifier.cpp
 1918       CE->getOpcode() == Instruction::PtrToInt) {
lib/Target/AArch64/AArch64FastISel.cpp
  616   case Instruction::PtrToInt:
  956   case Instruction::PtrToInt:
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  129   case Instruction::PtrToInt:
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  539     if (UseInst->getOpcode() == Instruction::PtrToInt)
lib/Target/ARM/ARMFastISel.cpp
  748     case Instruction::PtrToInt:
lib/Target/Mips/MipsFastISel.cpp
  575   case Instruction::PtrToInt:
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1825         if (Cexpr->getOpcode() == Instruction::PtrToInt) {
 1847         if (Cexpr->getOpcode() == Instruction::PtrToInt) {
 2065   case Instruction::PtrToInt: {
lib/Target/PowerPC/PPCFastISel.cpp
  338     case Instruction::PtrToInt:
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  170   case Instruction::PtrToInt:
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  256   case Instruction::PtrToInt: {
lib/Target/X86/X86FastISel.cpp
  866   case Instruction::PtrToInt:
 1042   case Instruction::PtrToInt:
 3642   case Instruction::PtrToInt: {
lib/Target/X86/X86TargetTransformInfo.cpp
 3036   case Instruction::PtrToInt:
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  116     case Instruction::PtrToInt:
lib/Transforms/IPO/PartialInlining.cpp
  855     case Instruction::PtrToInt:
lib/Transforms/InstCombine/InstCombineCasts.cpp
  253       (Res == Instruction::PtrToInt && DstTy != SrcIntPtrTy))
lib/Transforms/InstCombine/InstCombineCompares.cpp
 4411   if (CastOp0->getOpcode() == Instruction::PtrToInt &&
lib/Transforms/Scalar/GVN.cpp
  526     case Instruction::PtrToInt:
lib/Transforms/Scalar/GVNSink.cpp
  474     case Instruction::PtrToInt:
lib/Transforms/Scalar/NewGVN.cpp
 2027     case Instruction::PtrToInt:
lib/Transforms/Scalar/SCCP.cpp
 1537       case Instruction::PtrToInt:
lib/Transforms/Scalar/SpeculativeExecution.cpp
  229     case Instruction::PtrToInt:
lib/Transforms/Utils/Evaluator.cpp
   91   case Instruction::PtrToInt:
lib/Transforms/Vectorize/LoopVectorize.cpp
 4234   case Instruction::PtrToInt:
 6263   case Instruction::PtrToInt:
 6868     case Instruction::PtrToInt:
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2484     case Instruction::PtrToInt:
 3040     case Instruction::PtrToInt:
 3865     case Instruction::PtrToInt:
tools/lldb/source/Expression/IRInterpreter.cpp
  263         case Instruction::PtrToInt:
  466       case Instruction::PtrToInt:
  577       case Instruction::PtrToInt:
 1205     case Instruction::PtrToInt: {
tools/polly/lib/Support/SCEVAffinator.cpp
  535     case Instruction::PtrToInt:
tools/polly/lib/Support/SCEVValidator.cpp
  447       case Instruction::PtrToInt:
unittests/IR/InstructionsTest.cpp
  432   EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt,
  440   EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt,
  448   EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt,
  456                                            CastInst::PtrToInt,
  463                                            CastInst::PtrToInt,
  489                                            CastInst::PtrToInt,