Home
last modified time | relevance | path

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

123

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h597 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
598 friend class PtrToInt; variable
H A DConstantFolder.h220 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DNoFolder.h254 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DInstruction.def193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp477 case Instruction::PtrToInt: in lookupOrAdd()
H A DInferAddressSpaces.cpp245 if (!P2I || P2I->getOpcode() != Instruction::PtrToInt) in isNoopPtrIntCastPair()
/freebsd-13.1/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp265 case Instruction::PtrToInt: in ResolveConstantValue()
464 case Instruction::PtrToInt: in CanResolveConstant()
571 case Instruction::PtrToInt: in CanInterpret()
1132 case Instruction::PtrToInt: { in Interpret()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp160 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
192 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
195 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
201 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
1710 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr()
2291 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
H A DEvaluator.cpp90 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h205 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DTargetTransformInfoImpl.h491 case Instruction::PtrToInt: { in getCastInstrCost()
1003 case Instruction::PtrToInt: in getUserCost()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp2722 case Instruction::PtrToInt: in isNoopCast()
2980 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3002 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create()
3071 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast()
3090 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3125 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3297 return PtrToInt; // ptr -> int in getCastOpcode()
3397 case Instruction::PtrToInt: in castIsValid()
3559 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3565 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) { in PtrToIntInst()
H A DGlobals.cpp456 case Instruction::PtrToInt: in findBaseObject()
H A DConstants.cpp681 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
682 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo()
1546 case Instruction::PtrToInt: in getWithOperands()
2006 case Instruction::PtrToInt: in getCast()
2206 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
3499 case Instruction::PtrToInt: in getAsInstruction()
H A DInstruction.cpp396 case PtrToInt: return "ptrtoint"; in getOpcodeName()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp188 case Instruction::PtrToInt: in HasAddressTaken()
H A DMachineFunction.cpp1422 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1428 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp330 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
390 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
1294 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1320 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1377 case Instruction::PtrToInt: in ConstantFoldCastOperand()
1402 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
H A DCFLGraph.h524 case Instruction::PtrToInt: { in visitConstantExpr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp355 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local
357 if (PtrToInt && in simplifyIntToPtrRoundTripCast()
359 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast()
360 DL.getPointerTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast()
361 DL.getTypeSizeInBits(PtrToInt->getDestTy())) { in simplifyIntToPtrRoundTripCast()
362 return Builder.CreateBitCast(PtrToInt->getOperand(0), CastTy); in simplifyIntToPtrRoundTripCast()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1814 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
1836 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
2053 case Instruction::PtrToInt: { in lowerConstantForGV()
/freebsd-13.1/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp887 INSTKEYWORD(ptrtoint, PtrToInt); in LexIdentifier()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp620 if (UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp173 case Instruction::PtrToInt: in getIntImmCostInst()

123