Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp102 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in FoldIntegerTypedPHI() local
103 if (!IntToPtr) in FoldIntegerTypedPHI()
124 if (!HasPointerUse(IntToPtr)) in FoldIntegerTypedPHI()
127 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in FoldIntegerTypedPHI()
128 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in FoldIntegerTypedPHI()
144 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
190 if (!PtrPHI || PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in FoldIntegerTypedPHI()
206 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
215 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in FoldIntegerTypedPHI()
222 if (V->getType() == IntToPtr->getType()) in FoldIntegerTypedPHI()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::IntToPtr: in ComputeSpeculationCost()
H A DGVNSink.cpp475 case Instruction::IntToPtr: in lookupOrAdd()
H A DInferAddressSpaces.cpp846 if (Op->getOpcode() == Instruction::IntToPtr && in isSafeToCastConstAddrSpace()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp335 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
486 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal()
883 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP()
1195 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1219 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1287 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand()
1302 case Instruction::IntToPtr: in ConstantFoldCastOperand()
H A DMemoryBuiltins.cpp525 if (CE->getOpcode() == Instruction::IntToPtr) in compute()
813 cast<ConstantExpr>(V)->getOpcode() == Instruction::IntToPtr) || in compute_()
H A DScalarEvolutionExpander.cpp116 Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
131 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
135 CI->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
141 CE->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
H A DCFLGraph.h522 case Instruction::IntToPtr: { in visitConstantExpr()
H A DObjCARCInstKind.cpp274 case Instruction::IntToPtr: in GetARCInstKind()
/freebsd-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp118 case Instruction::IntToPtr: in createReplacementInstr()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Expression/
H A DIRInterpreter.cpp262 case Instruction::IntToPtr: in ResolveConstantValue()
464 case Instruction::IntToPtr: in CanResolveConstant()
579 case Instruction::IntToPtr: in CanInterpret()
1201 case Instruction::IntToPtr: { in Interpret()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstantFolder.h209 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DNoFolder.h273 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DInstruction.def194 HANDLE_CAST_INST(47, IntToPtr, IntToPtrInst) // Integer -> Pointer
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetFolder.h193 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DTargetTransformInfoImpl.h74 case Instruction::IntToPtr: { in getOperationCost()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DInstructions.cpp2338 case Instruction::IntToPtr: in isNoopCast()
2588 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
2610 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertAtEnd); in Create()
2732 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2992 return IntToPtr; // int -> ptr in getCastOpcode()
3067 case Instruction::IntToPtr: in castIsValid()
3249 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3255 ) : CastInst(Ty, IntToPtr, S, Name, InsertAtEnd) { in IntToPtrInst()
H A DConstants.cpp1226 case Instruction::IntToPtr: in getWithOperands()
1560 case Instruction::IntToPtr: in getCast()
1770 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduced); in getIntToPtr()
2988 case Instruction::IntToPtr: in getAsInstruction()
H A DInstruction.cpp347 case IntToPtr: return "inttoptr"; in getOpcodeName()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp221 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp91 case Instruction::IntToPtr: in isSimpleEnoughValueToCommitHelper()
/freebsd-12.1/contrib/llvm/include/llvm/ExecutionEngine/Orc/
H A DCompileOnDemandLayer.h472 Constant *Init = ConstantExpr::getCast(Instruction::IntToPtr, in addLogicalModule()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp359 I->getOpcode() == Instruction::IntToPtr) && in hasTrivialKill()
966 if (C->getOpcode() == Instruction::IntToPtr) { in selectPatchpoint()
1888 case Instruction::IntToPtr: // Deliberate fall-through. in selectOperator()
/freebsd-12.1/sys/net/
H A Dnetmap_user.h416 curr->win_netmap_handle = IntToPtr(_get_osfhandle(fd)); in win_insert_fd_record()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp170 case Instruction::IntToPtr: in getIntImmCost()

123