Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/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()
1247 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1273 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1416 case Instruction::PtrToInt: in ConstantFoldCastOperand()
1464 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DOperator.h518 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
519 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
H A DVPIntrinsics.def415 HELPER_REGISTER_INT_CAST_VP(ptrtoint, VP_PTRTOINT, PtrToInt)
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp484 case Instruction::PtrToInt: in lookupOrAdd()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DReturnProtectorLowering.cpp83 case Instruction::PtrToInt: in hasAddressTaken()
H A DStackProtector.cpp192 case Instruction::PtrToInt: in HasAddressTaken()
H A DMachineFunction.cpp1425 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1431 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/openbsd-src/gnu/llvm/lldb/source/Expression/
H A DIRInterpreter.cpp291 case Instruction::PtrToInt: in ResolveConstantValue()
491 case Instruction::PtrToInt: in CanResolveConstant()
613 case Instruction::PtrToInt: in CanInterpret()
1203 case Instruction::PtrToInt: { in Interpret()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetFolder.h217 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DTargetTransformInfoImpl.h545 case Instruction::PtrToInt: { in getCastInstrCost()
1101 case Instruction::PtrToInt: in getInstructionCost()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp159 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
191 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
194 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
200 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
1674 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr()
2129 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
H A DEvaluator.cpp88 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DInstructions.cpp3108 case Instruction::PtrToInt: in isNoopCast()
3368 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3390 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create()
3459 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast()
3478 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3513 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3685 return PtrToInt; // ptr -> int in getCastOpcode()
3785 case Instruction::PtrToInt: in castIsValid()
3947 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3953 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) { in PtrToIntInst()
H A DGlobals.cpp348 case Instruction::PtrToInt: in findBaseObject()
H A DConstants.cpp640 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
641 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo()
1483 case Instruction::PtrToInt: in getWithOperands()
2001 case Instruction::PtrToInt: in getCast()
2212 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
3437 case Instruction::PtrToInt: in getAsInstruction()
H A DInstruction.cpp455 case PtrToInt: return "ptrtoint"; in getOpcodeName()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp375 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local
377 if (PtrToInt && in simplifyIntToPtrRoundTripCast()
379 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast()
380 DL.getTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast()
381 DL.getTypeSizeInBits(PtrToInt->getDestTy())) { in simplifyIntToPtrRoundTripCast()
382 return CastInst::CreateBitOrPointerCast(PtrToInt->getOperand(0), CastTy, in simplifyIntToPtrRoundTripCast()
383 "", PtrToInt); in simplifyIntToPtrRoundTripCast()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1833 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
2030 case Instruction::PtrToInt: { in lowerConstantForGV()
/openbsd-src/gnu/llvm/llvm/lib/AsmParser/
H A DLLLexer.cpp854 INSTKEYWORD(ptrtoint, PtrToInt); in LexIdentifier()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp209 case Instruction::PtrToInt: in getIntImmCostInst()

123