Home
last modified time | relevance | path

Searched refs:IntToPtr (Results 1 – 25 of 206) sorted by relevance

123456789

/external/libbrillo/brillo/streams/
Dinput_stream_set_test.cc42 inline static void* IntToPtr(int addr) { in IntToPtr() function in brillo::InputStreamSetTest
107 EXPECT_CALL(*itf1_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _)) in TEST_F()
111 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPtr(1000), 100, &read, &eos, in TEST_F()
116 EXPECT_CALL(*itf1_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _)) in TEST_F()
118 EXPECT_CALL(*itf2_, ReadNonBlocking(IntToPtr(1000), 100 , _, _, _)) in TEST_F()
122 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPtr(1000), 100, &read, &eos, in TEST_F()
127 EXPECT_CALL(*itf2_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _)) in TEST_F()
129 EXPECT_TRUE(stream_->ReadNonBlocking(IntToPtr(1000), 100, &read, &eos, in TEST_F()
139 EXPECT_CALL(*itf1_, ReadNonBlocking(IntToPtr(1000), 100, _, _, _)) in TEST_F()
143 EXPECT_TRUE(stream_->ReadBlocking(IntToPtr(1000), 100, &read, nullptr)); in TEST_F()
[all …]
Dmemory_containers_test.cc51 inline static void* IntToPtr(int addr) { in IntToPtr() function in brillo::MemoryContainerTest
61 void* const test_read_buffer_ = IntToPtr(12345);
67 void* const buffer_ = IntToPtr(456);
Dmemory_stream_test.cc65 inline static void* IntToPtr(int addr) { in IntToPtr() function in brillo::MemoryStreamTest
76 void* const test_read_buffer_ = IntToPtr(12345);
/external/llvm/test/Transforms/SafeStack/
Dcast.ll6 ; PtrToInt/IntToPtr Cast
8 define void @IntToPtr() nounwind uwtable safestack {
10 ; CHECK-LABEL: @IntToPtr(
/external/llvm-project/llvm/test/Transforms/SafeStack/X86/
Dcast.ll6 ; PtrToInt/IntToPtr Cast
8 define void @IntToPtr() nounwind uwtable safestack {
10 ; CHECK-LABEL: @IntToPtr(
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp102 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in FoldIntegerTypedPHI() local
103 if (!IntToPtr) in FoldIntegerTypedPHI()
124 if (!HasPointerUse(IntToPtr)) in FoldIntegerTypedPHI()
127 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in FoldIntegerTypedPHI()
128 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in FoldIntegerTypedPHI()
144 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
191 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in FoldIntegerTypedPHI()
207 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in FoldIntegerTypedPHI()
211 IntToPtr->getOperand(0)->getType()); in FoldIntegerTypedPHI()
216 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in FoldIntegerTypedPHI()
[all …]
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp111 auto *IntToPtr = dyn_cast<IntToPtrInst>(PN.user_back()); in foldIntegerTypedPHI() local
112 if (!IntToPtr) in foldIntegerTypedPHI()
133 if (!HasPointerUse(IntToPtr)) in foldIntegerTypedPHI()
136 if (DL.getPointerSizeInBits(IntToPtr->getAddressSpace()) != in foldIntegerTypedPHI()
137 DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType())) in foldIntegerTypedPHI()
153 if (isa<IntToPtrInst>(U) && U->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
200 if (PtrPHI == &PN || PtrPHI->getType() != IntToPtr->getType()) in foldIntegerTypedPHI()
216 assert(MatchingPtrPHI->getType() == IntToPtr->getType() && in foldIntegerTypedPHI()
220 IntToPtr->getOperand(0)->getType()); in foldIntegerTypedPHI()
225 return (V->getType() != IntToPtr->getType()) || isa<IntToPtrInst>(V); in foldIntegerTypedPHI()
[all …]
/external/llvm/unittests/IR/
DInstructionsTest.cpp422 CastInst::IntToPtr, in TEST()
430 CastInst::IntToPtr, in TEST()
438 CastInst::IntToPtr, in TEST()
444 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
451 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
470 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
484 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
488 CastInst::IntToPtr); in TEST()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DInferAddressSpaces.cpp234 assert(I2P->getOpcode() == Instruction::IntToPtr); in isNoopPtrIntCastPair()
286 case Instruction::IntToPtr: in isAddressExpression()
319 case Instruction::IntToPtr: { in getPointerOperands()
608 case Instruction::IntToPtr: { in cloneInstructionWithNewAddressSpace()
658 if (CE->getOpcode() == Instruction::IntToPtr) { in cloneConstantExprWithNewAddressSpace()
993 if (Op->getOpcode() == Instruction::IntToPtr && in isSafeToCastConstAddrSpace()
DSpeculativeExecution.cpp232 case Instruction::IntToPtr: in ComputeSpeculationCost()
/external/llvm-project/polly/lib/Analysis/
DScopDetectionDiagnostic.cpp76 SCOP_STAT(IntToPtr, "Integer to pointer conversions"),
680 : ReportOther(RejectReasonKind::IntToPtr), BaseValue(BaseValue) {} in ReportIntToPtr()
697 return RR->getKind() == RejectReasonKind::IntToPtr; in classof()
/external/llvm-project/llvm/unittests/IR/
DInstructionsTest.cpp515 CastInst::IntToPtr, in TEST()
523 CastInst::IntToPtr, in TEST()
531 CastInst::IntToPtr, in TEST()
537 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
544 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
563 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
577 EXPECT_EQ(CastInst::isEliminableCastPair(CastInst::IntToPtr, in TEST()
581 CastInst::IntToPtr); in TEST()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp170 case Instruction::IntToPtr: in getIntImmCost()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSpeculativeExecution.cpp231 case Instruction::IntToPtr: in ComputeSpeculationCost()
/external/llvm/lib/Analysis/
DConstantFolding.cpp397 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal()
519 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
818 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP()
1104 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1128 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1191 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand()
1206 case Instruction::IntToPtr: in ConstantFoldCastOperand()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp340 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
491 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal()
542 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConstPtr()
903 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP()
1220 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1244 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1319 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand()
1334 case Instruction::IntToPtr: in ConstantFoldCastOperand()
/external/llvm-project/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp118 case Instruction::IntToPtr: in createReplacementInstr()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp118 case Instruction::IntToPtr: in createReplacementInstr()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp118 case Instruction::IntToPtr: in createReplacementInstr()
/external/llvm/lib/ExecutionEngine/Orc/
DIndirectionUtils.cpp78 ConstantExpr::getCast(Instruction::IntToPtr, AddrIntVal, in createIRTypedAddress()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter.cc433 IntToPtr(atomic_memory_address, atomic_address_type); in EmitAtomicOperationUsingCAS()
436 binop_output_address = IntToPtr( in EmitAtomicOperationUsingCAS()
/external/llvm-project/lldb/source/Expression/
DIRInterpreter.cpp264 case Instruction::IntToPtr: in ResolveConstantValue()
463 case Instruction::IntToPtr: in CanResolveConstant()
570 case Instruction::IntToPtr: in CanInterpret()
1110 case Instruction::IntToPtr: { in Interpret()
/external/llvm-project/mlir/lib/Target/LLVMIR/
DConvertFromLLVMIR.cpp439 INST(PtrToInt, PtrToInt), INST(IntToPtr, IntToPtr), in lookupOperationNameFromOpcode()
566 case llvm::Instruction::IntToPtr: in processInstruction()
/external/llvm-project/llvm/lib/Analysis/
DConstantFolding.cpp381 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
535 if (CE->getOpcode() == Instruction::IntToPtr && in ReadDataFromGlobal()
590 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy); in FoldReinterpretLoadFromConstPtr()
946 if (CE->getOpcode() == Instruction::IntToPtr) { in SymbolicallyEvaluateGEP()
1259 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1283 if (CE0->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCompareInstOperands()
1358 if (CE->getOpcode() == Instruction::IntToPtr) { in ConstantFoldCastOperand()
1373 case Instruction::IntToPtr: in ConstantFoldCastOperand()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstantFolder.h212 return CreateCast(Instruction::IntToPtr, C, DestTy); in CreateIntToPtr()

123456789