| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/ |
| H A D | cast.ll | 6 ; PtrToInt/IntToPtr Cast 8 define void @IntToPtr() nounwind uwtable safestack { 10 ; CHECK-LABEL: @IntToPtr(
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 111 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() 154 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI() 198 if (&PtrPHI == &PN || PtrPHI.getType() != IntToPtr->getType()) in foldIntegerTypedPHI() 212 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI() 221 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in foldIntegerTypedPHI() 230 if (V->getType() == IntToPtr->getType()) in foldIntegerTypedPHI() [all …]
|
| H A D | InstructionCombining.cpp | 369 auto *IntToPtr = dyn_cast<IntToPtrInst>(Val); in simplifyIntToPtrRoundTripCast() local 370 if (IntToPtr && DL.getPointerTypeSizeInBits(IntToPtr->getDestTy()) == in simplifyIntToPtrRoundTripCast() 371 DL.getTypeSizeInBits(IntToPtr->getSrcTy())) { in simplifyIntToPtrRoundTripCast() 372 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() 373 Type *CastTy = IntToPtr->getDestTy(); in simplifyIntToPtrRoundTripCast()
|
| /llvm-project-15.0.7/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() 653 case Instruction::IntToPtr: { in cloneInstructionWithNewAddressSpace() 708 if (CE->getOpcode() == Instruction::IntToPtr) { in cloneConstantExprWithNewAddressSpace() 1087 if (Op->getOpcode() == Instruction::IntToPtr && in isSafeToCastConstAddrSpace()
|
| H A D | SpeculativeExecution.cpp | 232 case Instruction::IntToPtr: in ComputeSpeculationCost()
|
| /llvm-project-15.0.7/polly/lib/Analysis/ |
| H A D | ScopDetectionDiagnostic.cpp | 77 SCOP_STAT(IntToPtr, "Integer to pointer conversions"), 712 : ReportOther(RejectReasonKind::IntToPtr), BaseValue(BaseValue) {} in ReportIntToPtr() 729 return RR->getKind() == RejectReasonKind::IntToPtr; in classof()
|
| /llvm-project-15.0.7/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
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 637 CastInst::IntToPtr, in TEST() 645 CastInst::IntToPtr, in TEST() 653 CastInst::IntToPtr, in TEST() 659 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST() 666 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST() 685 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST() 699 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST() 703 CastInst::IntToPtr); in TEST()
|
| /llvm-project-15.0.7/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 265 case Instruction::IntToPtr: in ResolveConstantValue() 465 case Instruction::IntToPtr: in CanResolveConstant() 579 case Instruction::IntToPtr: in CanInterpret() 1118 case Instruction::IntToPtr: { in Interpret()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetFolder.h | 214 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()
|
| H A D | TargetTransformInfoImpl.h | 518 case Instruction::IntToPtr: { in getCastInstrCost() 1061 case Instruction::IntToPtr: in getUserCost()
|
| /llvm-project-15.0.7/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() 940 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP() 1236 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands() 1260 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands() 1422 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand() 1459 case Instruction::IntToPtr: in ConstantFoldCastOperand()
|
| H A D | CFLGraph.h | 530 case Instruction::IntToPtr: { in visitConstantExpr()
|
| H A D | ObjCARCInstKind.cpp | 273 case Instruction::IntToPtr: in GetARCInstKind()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 159 Op == Instruction::IntToPtr) && in InsertNoopCastOfTo() 169 if (Op == Instruction::IntToPtr) { in InsertNoopCastOfTo() 190 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo() 194 CI->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo() 200 CE->getOpcode() == Instruction::IntToPtr) && in InsertNoopCastOfTo()
|
| H A D | Evaluator.cpp | 87 case Instruction::IntToPtr: in isSimpleEnoughValueToCommitHelper()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 651 INST(IntToPtr, IntToPtr), in lookupOperationNameFromOpcode() 824 case llvm::Instruction::IntToPtr: in processInstruction()
|
| /llvm-project-15.0.7/llvm/unittests/Linker/ |
| H A D | LinkModulesTest.cpp | 54 Constant *OnePtr = ConstantExpr::getCast(Instruction::IntToPtr, One, in SetUp()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Globals.cpp | 346 case Instruction::IntToPtr: in findBaseObject()
|
| H A D | Instructions.cpp | 2942 case Instruction::IntToPtr: in isNoopCast() 3200 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertBefore); in Create() 3222 case IntToPtr: return new IntToPtrInst (S, Ty, Name, InsertAtEnd); in Create() 3346 return Create(Instruction::IntToPtr, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast() 3548 return IntToPtr; // int -> ptr in getCastOpcode() 3620 case Instruction::IntToPtr: in castIsValid() 3790 ) : CastInst(Ty, IntToPtr, S, Name, InsertBefore) { in IntToPtrInst() 3796 ) : CastInst(Ty, IntToPtr, S, Name, InsertAtEnd) { in IntToPtrInst()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | IndirectionUtils.cpp | 240 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | SCEVAffinator.cpp | 548 case Instruction::IntToPtr: in visitUnknown()
|
| /llvm-project-15.0.7/polly/include/polly/ |
| H A D | ScopDetectionDiagnostic.h | 104 IntToPtr, enumerator
|