Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp111 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in foldIntegerTypedPHI() local
112 if (!IntToPtr) in foldIntegerTypedPHI()
133 if (!HasPointerUse(IntToPtr)) in foldIntegerTypedPHI()
136 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in foldIntegerTypedPHI()
137 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in foldIntegerTypedPHI()
153 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
200 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in foldIntegerTypedPHI()
216 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
220 IntToPtr->getOperand(0)->getType()); in foldIntegerTypedPHI()
225 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in foldIntegerTypedPHI()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/windows/
H A Dbasetsd.d90 void* IntToPtr(int i) { return(cast(void*) cast(INT_PTR) i); } in version()
116 void* IntToPtr(int i) { return cast(void*) i; } in IntToPtr() function
118 alias IntToPtr LongToPtr;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp243 assert(I2P->getOpcode() == Instruction::IntToPtr); in isNoopPtrIntCastPair()
295 case Instruction::IntToPtr: in isAddressExpression()
328 case Instruction::IntToPtr: { in getPointerOperands()
617 case Instruction::IntToPtr: { in cloneInstructionWithNewAddressSpace()
667 if (CE->getOpcode() == Instruction::IntToPtr) { in cloneConstantExprWithNewAddressSpace()
999 if (Op->getOpcode() == Instruction::IntToPtr && in isSafeToCastConstAddrSpace()
H A DSpeculativeExecution.cpp232 case Instruction::IntToPtr: in ComputeSpeculationCost()
H A DGVNSink.cpp478 case Instruction::IntToPtr: in lookupOrAdd()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DReplaceConstant.cpp61 case Instruction::IntToPtr: in createReplacementInstr()
H A DGlobals.cpp455 case Instruction::IntToPtr: in findBaseObject()
H A DInstructions.cpp2711 case Instruction::IntToPtr: in isNoopCast()
2961 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create()
2983 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertAtEnd); in Create()
3107 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3309 return IntToPtr; // int -> ptr in getCastOpcode()
3381 case Instruction::IntToPtr: in castIsValid()
3551 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst()
3557 ) : CastInst(Ty, IntToPtr, S, Name, InsertAtEnd) { in IntToPtrInst()
H A DInstruction.cpp374 case IntToPtr: return "inttoptr"; in getOpcodeName()
H A DConstants.cpp1545 case Instruction::IntToPtr: in getWithOperands()
2006 case Instruction::IntToPtr: in getCast()
2218 return getFoldedCast(Instruction::IntToPtr, C, DstTy, OnlyIfReduced); in getIntToPtr()
3498 case Instruction::IntToPtr: in getAsInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp383 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
537 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal()
594 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConstPtr()
935 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP()
1244 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1268 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1343 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand()
1358 case Instruction::IntToPtr: in ConstantFoldCastOperand()
H A DMemoryBuiltins.cpp637 if (CE->getOpcode() == Instruction::IntToPtr) in compute()
936 cast<ConstantExpr>(V)->getOpcode() == Instruction::IntToPtr) || in compute_()
H A DCFLGraph.h529 case Instruction::IntToPtr: { in visitConstantExpr()
H A DObjCARCInstKind.cpp273 case Instruction::IntToPtr: in GetARCInstKind()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h216 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DNoFolder.h250 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DInstruction.def194 HANDLE_CAST_INST(48, IntToPtr, IntToPtrInst) // Integer -> Pointer
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h202 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
H A DTargetTransformInfoImpl.h484 case Instruction::IntToPtr: { in getCastInstrCost()
999 case Instruction::IntToPtr: in getUserCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DIndirectionUtils.cpp224 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp155 Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
165 if (Op == Instruction::IntToPtr) { in InsertNoopCastOfTo()
186 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
190 CI->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
196 CE->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
H A DEvaluator.cpp89 case Instruction::IntToPtr: in isSimpleEnoughValueToCommitHelper()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp885 INSTKEYWORD(inttoptr, IntToPtr); in LexIdentifier()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp172 case Instruction::IntToPtr: in getIntImmCostInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp827 if (C->getOpcode() == Instruction::IntToPtr) { in selectPatchpoint()
1779 case Instruction::IntToPtr: // Deliberate fall-through. in selectOperator()

123