Home
last modified time | relevance | path

Searched refs:PtrToInt (Results 1 – 25 of 73) sorted by relevance

123

/llvm-project-15.0.7/clang/test/CXX/class.access/class.friend/
H A Dp3-cxx0x.cpp65 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 DTypeMetadataUtils.cpp171 case Instruction::PtrToInt: in getPointerAtOffset()
205 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUsersWithZero()
H A DConstantFolding.cpp322 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 DCFLGraph.h525 case Instruction::PtrToInt: { in visitConstantExpr()
/llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/
H A Dcast.ll6 ; PtrToInt/IntToPtr Cast
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h514 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
515 friend class PtrToInt; variable
H A DNoFolder.h146 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DConstantFolder.h209 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DInstruction.def193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp486 case Instruction::PtrToInt: in lookupOrAdd()
/llvm-project-15.0.7/lldb/source/Expression/
H A DIRInterpreter.cpp266 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 DInstructionsTest.cpp636 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 DConstantRangeTest.cpp2420 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 DTargetFolder.h217 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DTargetTransformInfoImpl.h525 case Instruction::PtrToInt: { in getCastInstrCost()
1062 case Instruction::PtrToInt: in getUserCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp158 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 DEvaluator.cpp88 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp2939 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 DGlobals.cpp347 case Instruction::PtrToInt: in findBaseObject()
H A DConstants.cpp632 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 DConvertFromLLVMIR.cpp650 INST(PtrToInt, PtrToInt), in lookupOperationNameFromOpcode()
823 case llvm::Instruction::PtrToInt: in processInstruction()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DStackProtector.cpp185 case Instruction::PtrToInt: in HasAddressTaken()
H A DMachineFunction.cpp1460 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1466 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp372 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()

123