Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp192 case Instruction::PtrToInt: in getPointerAtOffset()
245 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUserWithZero()
H A DConstantFolding.cpp331 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
386 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
1228 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1255 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1486 case Instruction::PtrToInt: in ConstantFoldCastOperand()
1534 if (CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCastOperand()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h562 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
563 friend class PtrToInt;
H A DInstruction.def193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculativeExecution.cpp231 case Instruction::PtrToInt: in ComputeSpeculationCost()
H A DGVNSink.cpp433 case Instruction::PtrToInt: in lookupOrAdd()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def121 OP(PtrToInt) \
H A DInstruction.h2281 case llvm::Instruction::PtrToInt: in getCastOpcode()
2282 return Opcode::PtrToInt; in getCastOpcode()
2367 class PtrToIntInst final : public CastInstImpl<Instruction::Opcode::PtrToInt> {
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp290 case Instruction::PtrToInt: in ResolveConstantValue()
493 case Instruction::PtrToInt: in CanResolveConstant()
613 case Instruction::PtrToInt: in CanInterpret()
1215 case Instruction::PtrToInt: { in Interpret()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp210 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
236 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
239 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
245 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
1363 return ReuseOrCreateCast(V, S->getType(), CastInst::PtrToInt, in visitPtrToIntExpr()
1886 Cost = CastCost(Instruction::PtrToInt); in costAndCollectOperands()
H A DEvaluator.cpp89 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp857 auto PtrToInt = MIB.buildPtrToInt(sXLen, PtrReg); in replacePtrWithInt() local
858 MRI->setRegBank(PtrToInt.getReg(0), RBI.getRegBank(RISCV::GPRBRegBankID)); in replacePtrWithInt()
859 Op.setReg(PtrToInt.getReg(0)); in replacePtrWithInt()
860 return select(*PtrToInt); in replacePtrWithInt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.cpp84 case Instruction::Opcode::PtrToInt: in notVectorizableBasedOnOpcodesAndTypes()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp670 if (LHS && RHS && LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
671 RHS->getOpcode() == Instruction::PtrToInt) { in getRelocationInfo()
1570 case Instruction::PtrToInt: in getWithOperands()
2226 case Instruction::PtrToInt: in getCast()
2294 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
2438 case Instruction::PtrToInt: in isDesirableCastOp()
2460 case Instruction::PtrToInt: in isSupportedCastOp()
3404 case Instruction::PtrToInt: in getAsInstruction()
H A DInstructions.cpp2801 case Instruction::PtrToInt: in isNoopCast()
3049 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
3094 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
3114 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
3256 return PtrToInt; // ptr -> int in getCastOpcode()
3350 case Instruction::PtrToInt: in castIsValid()
3459 : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
H A DGlobals.cpp407 case Instruction::PtrToInt: in findBaseObject()
H A DConstantFold.cpp257 case Instruction::PtrToInt: in ConstantFoldCastInstruction()
750 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/
H A DBottomUpVec.cpp88 case Instruction::Opcode::PtrToInt: in createVectorInstr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp294 case Instruction::PtrToInt: in HasAddressTaken()
H A DMachineFunction.cpp1525 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
1531 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h734 case Instruction::PtrToInt: { in getCastInstrCost()
1438 case Instruction::PtrToInt: in getInstructionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1622 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
1802 case Instruction::PtrToInt: { in lowerConstantForGV()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp417 auto *PtrToInt = dyn_cast<PtrToIntInst>(IntToPtr->getOperand(0)); in simplifyIntToPtrRoundTripCast() local
419 if (PtrToInt && in simplifyIntToPtrRoundTripCast()
421 PtrToInt->getSrcTy()->getPointerAddressSpace() && in simplifyIntToPtrRoundTripCast()
422 DL.getTypeSizeInBits(PtrToInt->getSrcTy()) == in simplifyIntToPtrRoundTripCast()
423 DL.getTypeSizeInBits(PtrToInt->getDestTy())) in simplifyIntToPtrRoundTripCast()
424 return PtrToInt->getOperand(0); in simplifyIntToPtrRoundTripCast()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1010 case Instruction::Opcode::PtrToInt: in getLLVMCastOp()
1011 return static_cast<llvm::Instruction::CastOps>(llvm::Instruction::PtrToInt); in getLLVMCastOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp2531 if (!PtrAsInt || PtrAsInt->getOpcode() != Instruction::PtrToInt) in run()
2549 if (!CE || CE->getOpcode() != Instruction::PtrToInt) in run()

123