| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | TypeMetadataUtils.cpp | 192 case Instruction::PtrToInt: in getPointerAtOffset() 245 if (!PtrExpr || PtrExpr->getOpcode() != Instruction::PtrToInt) in replaceRelativePointerUserWithZero()
|
| H A D | ConstantFolding.cpp | 331 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 D | Operator.h | 562 : public ConcreteOperator<Operator, Instruction::PtrToInt> { 563 friend class PtrToInt;
|
| H A D | Instruction.def | 193 HANDLE_CAST_INST(47, PtrToInt, PtrToIntInst) // Pointer -> Integer
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SpeculativeExecution.cpp | 231 case Instruction::PtrToInt: in ComputeSpeculationCost()
|
| H A D | GVNSink.cpp | 433 case Instruction::PtrToInt: in lookupOrAdd()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Values.def | 121 OP(PtrToInt) \
|
| H A D | Instruction.h | 2281 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 D | IRInterpreter.cpp | 290 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 D | ScalarEvolutionExpander.cpp | 210 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 D | Evaluator.cpp | 89 case Instruction::PtrToInt: in isSimpleEnoughValueToCommitHelper()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVInstructionSelector.cpp | 857 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 D | Legality.cpp | 84 case Instruction::Opcode::PtrToInt: in notVectorizableBasedOnOpcodesAndTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 670 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 D | Instructions.cpp | 2801 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 D | Globals.cpp | 407 case Instruction::PtrToInt: in findBaseObject()
|
| H A D | ConstantFold.cpp | 257 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 D | BottomUpVec.cpp | 88 case Instruction::Opcode::PtrToInt: in createVectorInstr()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 294 case Instruction::PtrToInt: in HasAddressTaken()
|
| H A D | MachineFunction.cpp | 1525 A = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry() 1531 B = ConstantFoldCastOperand(Instruction::PtrToInt, in CanShareConstantPoolEntry()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 734 case Instruction::PtrToInt: { in getCastInstrCost() 1438 case Instruction::PtrToInt: in getInstructionCost()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 1622 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte() 1802 case Instruction::PtrToInt: { in lowerConstantForGV()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 417 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 D | Instruction.cpp | 1010 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 D | LowerTypeTests.cpp | 2531 if (!PtrAsInt || PtrAsInt->getOpcode() != Instruction::PtrToInt) in run() 2549 if (!CE || CE->getOpcode() != Instruction::PtrToInt) in run()
|