Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp187 case Instruction::PtrToInt: in getPointerAtOffset()
240 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUserWithZero()
H A DConstantFolding.cpp318 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
373 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
1204 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1231 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1392 case Instruction::PtrToInt: in ConstantFoldCastOperand()
1440 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h542 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
543 friend class PtrToInt;
H A DInstruction.def193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
H A DPatternMatch.h1923 return O->getOpcode() == Instruction::PtrToInt && in match()
1993 inline CastOperator_match<OpTy, Instruction::PtrToInt>
1995 return CastOperator_match<OpTy, Instruction::PtrToInt>(Op); in m_PtrToInt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp514 case Instruction::PtrToInt: in lookupOrAdd()
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp198 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
224 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
227 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
233 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
1338 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr()
1859 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
H A DEvaluator.cpp88 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp763 auto PtrToInt = MIB.buildPtrToInt(sXLen, PtrReg); in replacePtrWithInt() local
764 MRI.setRegBank(PtrToInt.getReg(0), RBI.getRegBank(RISCV::GPRBRegBankID)); in replacePtrWithInt()
765 Op.setReg(PtrToInt.getReg(0)); in replacePtrWithInt()
766 return select(*PtrToInt); in replacePtrWithInt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanAnalysis.cpp208 case Instruction::PtrToInt: in inferScalarTypeForRecipe()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp653 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
654 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo()
1544 case Instruction::PtrToInt: in getWithOperands()
2198 case Instruction::PtrToInt: in getCast()
2266 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
2410 case Instruction::PtrToInt: in isDesirableCastOp()
2432 case Instruction::PtrToInt: in isSupportedCastOp()
3373 case Instruction::PtrToInt: in getAsInstruction()
H A DInstructions.cpp2738 case Instruction::PtrToInt: in isNoopCast()
2986 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3031 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3051 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3196 return PtrToInt; // ptr -> int in getCastOpcode()
3296 case Instruction::PtrToInt: in castIsValid()
3405 : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
H A DGlobals.cpp383 case Instruction::PtrToInt: in findBaseObject()
H A DConstantFold.cpp262 case Instruction::PtrToInt: in ConstantFoldCastInstruction()
757 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
H A DInstruction.cpp758 case PtrToInt: return "ptrtoint"; in getOpcodeName()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp278 case Instruction::PtrToInt:
336 // we'll catch it in the PtrToInt case above. in requiresStackProtector()
H A DMachineFunction.cpp1455 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1461 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h619 case Instruction::PtrToInt: { in getCastInstrCost()
1265 case Instruction::PtrToInt: in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp388 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local
390 if (PtrToInt && in simplifyIntToPtrRoundTripCast()
392 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast()
393 DL.getTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast()
394 DL.getTypeSizeInBits(PtrToInt->getDestTy())) in simplifyIntToPtrRoundTripCast()
395 return PtrToInt->getOperand(0); in simplifyIntToPtrRoundTripCast()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1876 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
2057 case Instruction::PtrToInt: { in lowerConstantForGV()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp880 INSTKEYWORD(ptrtoint, PtrToInt); in LexIdentifier()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp214 case Instruction::PtrToInt: in getIntImmCostInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp813 case Instruction::PtrToInt: in computeBBInlineCost()

123