| /llvm-project-15.0.7/clang/test/CXX/class.access/class.friend/ |
| H A D | p3-cxx0x.cpp | 65 typedef int *PtrToInt; typedef 66 friend __restrict PtrToInt; // expected-error {{'restrict' is invalid in friend declarations}} \
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 171 case Instruction::PtrToInt: in getPointerAtOffset() 205 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUsersWithZero()
|
| H A D | ConstantFolding.cpp | 322 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal() 377 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast() 1248 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands() 1274 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands() 1417 case Instruction::PtrToInt: in ConstantFoldCastOperand() 1465 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
|
| H A D | CFLGraph.h | 525 case Instruction::PtrToInt: { in visitConstantExpr()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/ |
| H A D | cast.ll | 6 ; PtrToInt/IntToPtr Cast
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Operator.h | 514 : public ConcreteOperator<Operator, Instruction::PtrToInt> { 515 friend class PtrToInt; variable
|
| H A D | NoFolder.h | 146 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
|
| H A D | ConstantFolder.h | 209 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
|
| H A D | Instruction.def | 193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | SpeculativeExecution.cpp | 231 case Instruction::PtrToInt: in ComputeSpeculationCost()
|
| H A D | GVNSink.cpp | 486 case Instruction::PtrToInt: in lookupOrAdd()
|
| /llvm-project-15.0.7/lldb/source/Expression/ |
| H A D | IRInterpreter.cpp | 266 case Instruction::PtrToInt: in ResolveConstantValue() 466 case Instruction::PtrToInt: in CanResolveConstant() 580 case Instruction::PtrToInt: in CanInterpret() 1140 case Instruction::PtrToInt: { in Interpret()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | InstructionsTest.cpp | 636 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST() 644 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST() 652 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST() 660 CastInst::PtrToInt, in TEST() 667 CastInst::PtrToInt, in TEST() 693 CastInst::PtrToInt, in TEST()
|
| H A D | ConstantRangeTest.cpp | 2420 ConstantRange PtrToInt = A.castOp(Instruction::PtrToInt, 64); in TEST_F() local 2421 EXPECT_EQ(64u, PtrToInt.getBitWidth()); in TEST_F() 2422 EXPECT_TRUE(PtrToInt.isFullSet()); in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetFolder.h | 217 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
|
| H A D | TargetTransformInfoImpl.h | 525 case Instruction::PtrToInt: { in getCastInstrCost() 1062 case Instruction::PtrToInt: in getUserCost()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | ScalarEvolutionExpander.cpp | 158 Op == Instruction::PtrToInt || in InsertNoopCastOfTo() 190 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo() 193 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo() 199 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo() 1647 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr() 2138 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
|
| H A D | Evaluator.cpp | 88 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 2939 case Instruction::PtrToInt: in isNoopCast() 3199 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create() 3221 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create() 3290 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast() 3309 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast() 3344 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast() 3516 return PtrToInt; // ptr -> int in getCastOpcode() 3616 case Instruction::PtrToInt: in castIsValid() 3778 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst() 3784 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) { in PtrToIntInst()
|
| H A D | Globals.cpp | 347 case Instruction::PtrToInt: in findBaseObject()
|
| H A D | Constants.cpp | 632 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo() 633 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo() 1475 case Instruction::PtrToInt: in getWithOperands() 1971 case Instruction::PtrToInt: in getCast() 2182 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt() 3444 case Instruction::PtrToInt: in getAsInstruction()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 650 INST(PtrToInt, PtrToInt), in lookupOperationNameFromOpcode() 823 case llvm::Instruction::PtrToInt: in processInstruction()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 185 case Instruction::PtrToInt: in HasAddressTaken()
|
| H A D | MachineFunction.cpp | 1460 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry() 1466 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 372 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local 374 if (PtrToInt && in simplifyIntToPtrRoundTripCast() 376 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast() 377 DL.getPointerTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast() 378 DL.getTypeSizeInBits(PtrToInt->getDestTy())) { in simplifyIntToPtrRoundTripCast() 379 return CastInst::CreateBitOrPointerCast(PtrToInt->getOperand(0), CastTy, in simplifyIntToPtrRoundTripCast() 380 "", PtrToInt); in simplifyIntToPtrRoundTripCast()
|