Home
last modified time | relevance | path

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

123

/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DInstructionsTest.cpp415 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST()
423 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST()
431 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::PtrToInt, in TEST()
439 CastInst::PtrToInt, in TEST()
446 CastInst::PtrToInt, in TEST()
472 CastInst::PtrToInt, in TEST()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DOperator.h481 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
482 friend class PtrToInt; variable
H A DConstantFolder.h183 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DInstruction.def154 HANDLE_CAST_INST(42, PtrToInt, PtrToIntInst) // Pointer -> Integer
H A DNoFolder.h236 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
H A DPatternMatch.h792 inline CastClass_match<OpTy, Instruction::PtrToInt> m_PtrToInt(const OpTy &Op) { in m_PtrToInt()
793 return CastClass_match<OpTy, Instruction::PtrToInt>(Op); in m_PtrToInt()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp251 if (CE->getOpcode() == Instruction::PtrToInt || in IsConstantOffsetFromGlobal()
509 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
1039 case Instruction::PtrToInt: in ConstantFoldInstOperands()
1064 if (TD && CE->getOpcode() == Instruction::PtrToInt) { in ConstantFoldInstOperands()
1139 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
1165 if (CE0->getOpcode() == Instruction::PtrToInt) { in ConstantFoldCompareInstOperands()
H A DScalarEvolutionExpander.cpp91 Op == Instruction::PtrToInt || in InsertNoopCastOfTo()
107 if ((Op == Instruction::PtrToInt || Op == Instruction::IntToPtr) && in InsertNoopCastOfTo()
110 if ((CI->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
116 if ((CE->getOpcode() == Instruction::PtrToInt || in InsertNoopCastOfTo()
H A DCostModel.cpp448 case Instruction::PtrToInt: in getInstructionCost()
H A DTargetTransformInfo.cpp316 case Instruction::PtrToInt: { in getOperationCost()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp116 case Instruction::PtrToInt: in createReplacementInstr()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp2146 case Instruction::PtrToInt: in isNoopCast()
2167 if (getOpcode() == Instruction::PtrToInt) in isNoopCast()
2420 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertBefore); in Create()
2442 case PtrToInt: return new PtrToIntInst (S, Ty, Name, InsertAtEnd); in Create()
2510 return Create(Instruction::PtrToInt, S, Ty, Name, InsertAtEnd); in CreatePointerCast()
2528 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreatePointerCast()
2563 return Create(Instruction::PtrToInt, S, Ty, Name, InsertBefore); in CreateBitOrPointerCast()
2796 return PtrToInt; // ptr -> int in getCastOpcode()
2901 case Instruction::PtrToInt: in castIsValid()
3078 ) : CastInst(Ty, PtrToInt, S, Name, InsertBefore) { in PtrToIntInst()
[all …]
H A DInstruction.cpp234 case PtrToInt: return "ptrtoint"; in getOpcodeName()
H A DConstants.cpp437 LHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
438 RHS->getOpcode() == Instruction::PtrToInt && in getRelocationInfo()
1232 case Instruction::PtrToInt: in getWithOperands()
1592 case Instruction::PtrToInt: in getCast()
1792 return getFoldedCast(Instruction::PtrToInt, C, DstTy, OnlyIfReduced); in getPtrToInt()
2937 case Instruction::PtrToInt: in getAsInstruction()
H A DAutoUpgrade.cpp613 Temp = CastInst::Create(Instruction::PtrToInt, V, MidTy); in UpgradeBitCastInst()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h196 return CreateCast(Instruction::PtrToInt, C, DestTy); in CreatePtrToInt()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DMachineFunction.cpp909 A = ConstantFoldInstOperands(Instruction::PtrToInt, IntTy, in CanShareConstantPoolEntry()
915 B = ConstantFoldInstOperands(Instruction::PtrToInt, IntTy, in CanShareConstantPoolEntry()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DAMDGPUPromoteAlloca.cpp249 if (UseInst && UseInst->getOpcode() == Instruction::PtrToInt) in collectUsesWithPtrTypes()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp236 case Instruction::PtrToInt: in getIntImmCost()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp853 case Instruction::PtrToInt: Out << "Instruction::PtrToInt"; break; in printConstant()
1404 case Instruction::PtrToInt: in printInstruction()
1419 case Instruction::PtrToInt: Out << "PtrToIntInst"; break; in printInstruction()
/minix3/external/bsd/llvm/dist/llvm/lib/AsmParser/
H A DLLLexer.cpp713 INSTKEYWORD(ptrtoint, PtrToInt); in LexIdentifier()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1779 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
1801 if (Cexpr->getOpcode() == Instruction::PtrToInt) { in bufferLEByte()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp161 I->getOpcode() == Instruction::PtrToInt || in hasTrivialKill()
1552 case Instruction::PtrToInt: { in selectOperator()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp1221 case Instruction::PtrToInt: in buildTree_rec()
1514 case Instruction::PtrToInt: in getEntryCost()
2029 case Instruction::PtrToInt: in vectorizeTree()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/
H A DX86FastISel.cpp649 case Instruction::PtrToInt: in X86SelectAddress()
825 case Instruction::PtrToInt: in X86SelectCallAddress()
3048 case Instruction::PtrToInt: { in fastSelectInstruction()

123