Home
last modified time | relevance | path

Searched refs:IntToPtr (Results 1 – 25 of 65) sorted by relevance

123

/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp112 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 DInstructionCombining.cpp372 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 DInferAddressSpaces.cpp264 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 DSpeculativeExecution.cpp232 case Instruction::IntToPtr: in ComputeSpeculationCost()
H A DGVNSink.cpp485 case Instruction::IntToPtr: in lookupOrAdd()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DNoFolder.h142 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DConstantFolder.h205 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DInstruction.def194 HANDLE_CAST_INST(48, IntToPtr, IntToPtrInst) // Integer -> Pointer
H A DVPIntrinsics.def418 HELPER_REGISTER_INT_CAST_VP(inttoptr, VP_INTTOPTR, IntToPtr)
/openbsd/gnu/llvm/lldb/source/Expression/
H A DIRInterpreter.cpp290 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 DTargetFolder.h214 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DTargetTransformInfoImpl.h538 case Instruction::IntToPtr: { in getCastInstrCost()
1100 case Instruction::IntToPtr: in getInstructionCost()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp375 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 DObjCARCInstKind.cpp273 case Instruction::IntToPtr: in GetARCInstKind()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp160 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 DEvaluator.cpp87 case Instruction::IntToPtr: in isSimpleEnoughValueToCommitHelper()
/openbsd/gnu/llvm/llvm/lib/IR/
H A DGlobals.cpp347 case Instruction::IntToPtr: in findBaseObject()
H A DInstructions.cpp3111 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 DInstruction.cpp454 case IntToPtr: return "inttoptr"; in getOpcodeName()
H A DConstants.cpp1484 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 DIndirectionUtils.cpp251 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/openbsd/gnu/llvm/llvm/lib/AsmParser/
H A DLLLexer.cpp853 INSTKEYWORD(inttoptr, IntToPtr); in LexIdentifier()
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp208 case Instruction::IntToPtr: in getIntImmCostInst()
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp819 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 DPartialInlining.cpp861 case Instruction::IntToPtr: in computeBBInlineCost()

123