/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 112 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in foldIntegerTypedPHI() local 113 if (!IntToPtr) in foldIntegerTypedPHI() 134 if (!HasPointerUse(IntToPtr)) in foldIntegerTypedPHI() 137 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in foldIntegerTypedPHI() 213 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI() 217 replaceInstUsesWith(*IntToPtr, MatchingPtrPHI); in foldIntegerTypedPHI() 218 eraseInstFromFunction(*IntToPtr); in foldIntegerTypedPHI() 234 if (V->getType() == IntToPtr->getType()) in foldIntegerTypedPHI() 257 if (IncomingVal->getType() == IntToPtr->getType()) { in foldIntegerTypedPHI() 299 replaceInstUsesWith(*IntToPtr, NewPtrPHI); in foldIntegerTypedPHI() [all …]
|
H A D | InstructionCombining.cpp | 372 auto *IntToPtr = dyn_cast<IntToPtrInst>(Val); in simplifyIntToPtrRoundTripCast() local 373 if (IntToPtr && DL.getTypeSizeInBits(IntToPtr->getDestTy()) == in simplifyIntToPtrRoundTripCast() 374 DL.getTypeSizeInBits(IntToPtr->getSrcTy())) { in simplifyIntToPtrRoundTripCast() 375 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() 376 Type *CastTy = IntToPtr->getDestTy(); in simplifyIntToPtrRoundTripCast()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/ |
H A D | InferAddressSpaces.cpp | 264 assert(I2P->getOpcode() == Instruction::IntToPtr); in INITIALIZE_PASS_DEPENDENCY() 316 case Instruction::IntToPtr: in isAddressExpression() 348 case Instruction::IntToPtr: { in getPointerOperands() 654 case Instruction::IntToPtr: { in cloneInstructionWithNewAddressSpace() 709 if (CE->getOpcode() == Instruction::IntToPtr) { in cloneConstantExprWithNewAddressSpace() 1089 if (Op->getOpcode() == Instruction::IntToPtr && in isSafeToCastConstAddrSpace()
|
H A D | SpeculativeExecution.cpp | 232 case Instruction::IntToPtr: in ComputeSpeculationCost()
|
H A D | GVNSink.cpp | 485 case Instruction::IntToPtr: in lookupOrAdd()
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | NoFolder.h | 142 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
|
H A D | ConstantFolder.h | 205 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
|
H A D | Instruction.def | 194 HANDLE_CAST_INST(48, IntToPtr, IntToPtrInst) // Integer -> Pointer
|
H A D | VPIntrinsics.def | 418 HELPER_REGISTER_INT_CAST_VP(inttoptr, VP_INTTOPTR, IntToPtr)
|
/openbsd/gnu/llvm/lldb/source/Expression/ |
H A D | IRInterpreter.cpp | 290 case Instruction::IntToPtr: in ResolveConstantValue() 490 case Instruction::IntToPtr: in CanResolveConstant() 612 case Instruction::IntToPtr: in CanInterpret() 1181 case Instruction::IntToPtr: { in Interpret()
|
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 214 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
|
H A D | TargetTransformInfoImpl.h | 538 case Instruction::IntToPtr: { in getCastInstrCost() 1100 case Instruction::IntToPtr: in getInstructionCost()
|
/openbsd/gnu/llvm/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 375 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast() 535 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal() 581 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConst() 939 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP() 1235 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands() 1259 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands() 1421 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand() 1458 case Instruction::IntToPtr: in ConstantFoldCastOperand()
|
H A D | ObjCARCInstKind.cpp | 273 case Instruction::IntToPtr: in GetARCInstKind()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 160 Op == Instruction::IntToPtr) && in InsertNoopCastOfTo() 170 if (Op == Instruction::IntToPtr) { in InsertNoopCastOfTo() 191 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo() 195 CI->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo() 201 CE->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
|
H A D | Evaluator.cpp | 87 case Instruction::IntToPtr: in isSimpleEnoughValueToCommitHelper()
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | Globals.cpp | 347 case Instruction::IntToPtr: in findBaseObject()
|
H A D | Instructions.cpp | 3111 case Instruction::IntToPtr: in isNoopCast() 3369 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create() 3391 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertAtEnd); in Create() 3515 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast() 3717 return IntToPtr; // int -> ptr in getCastOpcode() 3789 case Instruction::IntToPtr: in castIsValid() 3959 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst() 3965 ) : CastInst(Ty, IntToPtr, S, Name, InsertAtEnd) { in IntToPtrInst()
|
H A D | Instruction.cpp | 454 case IntToPtr: return "inttoptr"; in getOpcodeName()
|
H A D | Constants.cpp | 1484 case Instruction::IntToPtr: in getWithOperands() 2003 case Instruction::IntToPtr: in getCast() 2226 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduced); in getIntToPtr() 3438 case Instruction::IntToPtr: in getAsInstruction()
|
/openbsd/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
H A D | IndirectionUtils.cpp | 251 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
|
/openbsd/gnu/llvm/llvm/lib/AsmParser/ |
H A D | LLLexer.cpp | 853 INSTKEYWORD(inttoptr, IntToPtr); in LexIdentifier()
|
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 208 case Instruction::IntToPtr: in getIntImmCostInst()
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FastISel.cpp | 819 if (C->getOpcode() == Instruction::IntToPtr) { in selectPatchpoint() 1782 case Instruction::IntToPtr: // Deliberate fall-through. in selectOperator()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | PartialInlining.cpp | 861 case Instruction::IntToPtr: in computeBBInlineCost()
|