Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp173 case Instruction::PtrToInt: in getPointerAtOffset()
207 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUsersWithZero()
H A DConstantFolding.cpp318 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
373 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
1219 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1246 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1389 case Instruction::PtrToInt: in ConstantFoldCastOperand()
1437 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h510 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
511 friend class PtrToInt; variable
H A DInstruction.def193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
H A DPatternMatch.h1687 return O->getOpcode() == Instruction::PtrToInt && in match()
1717 inline CastOperator_match<OpTy, Instruction::PtrToInt>
1719 return CastOperator_match<OpTy, Instruction::PtrToInt>(Op); in m_PtrToInt()
H A DVPIntrinsics.def501 VP_PROPERTY_FUNCTIONAL_OPC(PtrToInt)
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp481 case Instruction::PtrToInt: in lookupOrAdd()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp175 case Instruction::PtrToInt: in inferScalarTypeForRecipe()
/freebsd-14.2/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp292 case Instruction::PtrToInt: in ResolveConstantValue()
495 case Instruction::PtrToInt: in CanResolveConstant()
617 case Instruction::PtrToInt: in CanInterpret()
1233 case Instruction::PtrToInt: { in Interpret()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp159 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
185 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
188 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
194 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
1281 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr()
1761 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
H A DEvaluator.cpp88 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp750 auto PtrToInt = MIB.buildPtrToInt(sXLen, PtrReg); in replacePtrWithInt() local
751 MRI.setRegBank(PtrToInt.getReg(0), RBI.getRegBank(RISCV::GPRBRegBankID)); in replacePtrWithInt()
752 Op.setReg(PtrToInt.getReg(0)); in replacePtrWithInt()
753 return select(*PtrToInt); in replacePtrWithInt()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp638 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
639 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo()
1469 case Instruction::PtrToInt: in getWithOperands()
1971 case Instruction::PtrToInt: in getCast()
2039 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
2189 case Instruction::PtrToInt: in isDesirableCastOp()
2211 case Instruction::PtrToInt: in isSupportedCastOp()
3236 case Instruction::PtrToInt: in getAsInstruction()
H A DInstructions.cpp3093 case Instruction::PtrToInt: in isNoopCast()
3347 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3369 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create()
3438 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast()
3457 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3492 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3664 return PtrToInt; // ptr -> int in getCastOpcode()
3764 case Instruction::PtrToInt: in castIsValid()
3926 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
3932 ) : CastInst(Ty, PtrToInt, S, Name, InsertAtEnd) { in PtrToIntInst()
H A DGlobals.cpp357 case Instruction::PtrToInt: in findBaseObject()
H A DConstantFold.cpp330 case Instruction::PtrToInt: in ConstantFoldCastInstruction()
824 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
H A DInstruction.cpp666 case PtrToInt: return "ptrtoint"; in getOpcodeName()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp278 case Instruction::PtrToInt: in HasAddressTaken()
H A DMachineFunction.cpp1443 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1449 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h596 case Instruction::PtrToInt: { in getCastInstrCost()
1222 case Instruction::PtrToInt: in getInstructionCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp370 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local
372 if (PtrToInt && in simplifyIntToPtrRoundTripCast()
374 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast()
375 DL.getTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast()
376 DL.getTypeSizeInBits(PtrToInt->getDestTy())) in simplifyIntToPtrRoundTripCast()
377 return PtrToInt->getOperand(0); in simplifyIntToPtrRoundTripCast()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1857 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
2038 case Instruction::PtrToInt: { in lowerConstantForGV()
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp869 INSTKEYWORD(ptrtoint, PtrToInt); in LexIdentifier()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp210 case Instruction::PtrToInt: in getIntImmCostInst()

123