Home
last modified time | relevance | path

Searched refs:IntPtr (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/clang/test/Analysis/
H A Dtemporaries.mm8 struct IntPtr { struct
9 IntPtr(): i(new int) {}
10 IntPtr(IntPtr &&o): i(o.i) { o.i = nullptr; }
11 ~IntPtr() { delete i; }
17 -(void) foo: (IntPtr)arg; argument
21 IntPtr ptr;
23 [f foo: static_cast<IntPtr &&>(ptr)];
28 [nil foo: IntPtr()];
H A Dtemporaries.cpp1073 struct IntPtr { struct
1074 IntPtr(): i(new int) {} in IntPtr() function
1075 IntPtr(IntPtr &&o): i(o.i) { o.i = 0; } in IntPtr() argument
1076 ~IntPtr() { delete i; } in ~IntPtr() argument
1082 Foo(IntPtr);
1085 IntPtr i;
1089 IntPtr ptr; in bar()
1091 Foo f(static_cast<IntPtr &&>(ptr)); in bar()
/llvm-project-15.0.7/llvm/lib/Object/
H A DCOFFObjectFile.cpp537 uintptr_t IntPtr = 0; in getHintName() local
592 uintptr_t IntPtr = 0; in initImportTablePtr() local
615 uintptr_t IntPtr = 0; in initDelayImportTablePtr() local
639 uintptr_t IntPtr = 0; in initExportTablePtr() local
658 uintptr_t IntPtr = 0; in initBaseRelocPtr() local
666 IntPtr); in initBaseRelocPtr()
689 uintptr_t IntPtr = 0; in initDebugDirectoryPtr() local
724 uintptr_t IntPtr = 0; in initTLSDirectoryPtr() local
748 uintptr_t IntPtr = 0; in initLoadConfigPtr() local
1412 uintptr_t IntPtr = 0; in importedSymbolBegin() local
[all …]
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dtemp_arg_template_cxx1z.cpp78 template<int*> struct IntPtr;
84 TInt<IntPtr> iip; // expected-error {{different template parameters}}
90 TIntPtr<IntPtr> ipip;
95 TAuto<IntPtr> aip; // FIXME: ill-formed (?)
100 TAutoPtr<IntPtr> apip; // FIXME: ill-formed (?)
104 TDecltypeAuto<IntPtr> daip; // FIXME: ill-formed (?)
H A Dalias-template-nondependent.cpp4 template<typename> using IntPtr = int*; typedef
6 typedef int(*P)(IntPtr<T>...); in non_dependent_typedef()
10 using P = int(*)(IntPtr<T>...); in non_dependent_alias()
H A Dtemp_arg_nontype_cxx20.cpp19 template<int *> struct IntPtr {}; struct
20 using IPn = IntPtr<&n + 1>; // FIXME expected-error {{refers to subobject}}
21 using IPn = IntPtr<&n + 1>; // FIXME expected-error {{refers to subobject}}
23 using IP2 = IntPtr<&s.n[2]>; // FIXME expected-error {{refers to subobject}}
24 using IP2 = IntPtr<s.n + 2>; // FIXME expected-error {{refers to subobject}}
26 using IP3 = IntPtr<&s.n[3]>; // FIXME expected-error {{refers to subobject}}
27 using IP3 = IntPtr<s.n + 3>; // FIXME expected-error {{refers to subobject}}
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcomposite-pointer-type.cpp39 typedef int *IntPtr; in f2() typedef
40 typedef IntPtr *IntPtrPtr; in f2()
41 typedef IntPtr const *IntPtrConstPtr; in f2()
H A Dwarn-cast-align.cpp20 typedef int *IntPtr; in test0() typedef
21 …c = IntPtr(P); // expected-warning {{cast from 'char *' to 'IntPtr' (aka 'int *') increases requir… in test0()
43 typedef int *IntPtr; in test1() typedef
44 c = IntPtr(P); in test1()
/llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/indirectcallable/projected/
H A Dprojected.compile.pass.cpp20 using IntPtr = std::projected<int const*, std::identity>; typedef
21 static_assert(std::same_as<IntPtr::value_type, int>);
22 static_assert(std::same_as<decltype(*std::declval<IntPtr>()), int const&>);
23 static_assert(std::same_as<std::iter_difference_t<IntPtr>, std::ptrdiff_t>);
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DExecutorAddress.h48 uintptr_t IntPtr = static_cast<uintptr_t>(Addr); in toPtr() local
49 assert(IntPtr == Addr && "ExecutorAddr value out of range for uintptr_t"); in toPtr()
50 return reinterpret_cast<T>(IntPtr); in toPtr()
57 uintptr_t IntPtr = static_cast<uintptr_t>(Addr); in toPtr() local
58 assert(IntPtr == Addr && "ExecutorAddr value out of range for uintptr_t"); in toPtr()
59 return reinterpret_cast<T *>(IntPtr); in toPtr()
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/
H A Dllvm-support.cpp14 auto IntPtr = reinterpret_cast<int *>(0xabc); variable
33 llvm::PointerIntPair<int *, 1> PointerIntPair(IntPtr, 1);
36 llvm::PointerUnion<Z *, int *> PointerUnion(IntPtr);
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dmake-shared.cpp264 typedef std::shared_ptr<int> IntPtr; in aliases() typedef
265 IntPtr Typedef = IntPtr(new int()); in aliases()
268 IntPtr Typedef2 = IntPtr(new int); in aliases()
H A Dmake-unique.cpp491 typedef std::unique_ptr<int> IntPtr; in aliases() typedef
492 IntPtr Typedef = IntPtr(new int()); in aliases()
495 IntPtr Typedef2 = IntPtr(new int); in aliases()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Disolate-declaration.cpp249 typedef int *IntPtr; in complex_typedefs() typedef
253 IntPtr intptr1, intptr2 = nullptr, intptr3; in complex_typedefs()
259 IntPtr *DoublePtr1 = nullptr, **TriplePtr, SinglePtr = nullptr; in complex_typedefs()
265 IntPtr intptr_array1[2], intptr_array2[4] = {nullptr, nullptr, nullptr, nullptr}; in complex_typedefs()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DR600ISelDAGToDAG.cpp25 bool SelectGlobalValueConstantOffset(SDValue Addr, SDValue &IntPtr);
65 SDValue &IntPtr) { in SelectGlobalValueConstantOffset() argument
67 IntPtr = in SelectGlobalValueConstantOffset()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp337 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall() local
338 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
348 Type *IntPtr = DL.getIntPtrType(Context); in LowerIntrinsicCall() local
349 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
360 Type *IntPtr = DL.getIntPtrType(Op0->getType()); in LowerIntrinsicCall() local
361 Value *Size = Builder.CreateIntCast(CI->getArgOperand(2), IntPtr, in LowerIntrinsicCall()
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Dexecutor_address.h56 uintptr_t IntPtr = static_cast<uintptr_t>(Addr); in toPtr() local
57 assert(IntPtr == Addr && in toPtr()
59 return reinterpret_cast<T>(IntPtr); in toPtr()
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-cxx14.cpp23 using IntPtr = int*; typedef
46 using IntPtr = decltype(x7a); typedef
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h52 uintptr_t IntPtr = static_cast<uintptr_t>(Addr); in jitTargetAddressToPointer() local
53 assert(IntPtr == Addr && "JITTargetAddress value out of range for uintptr_t"); in jitTargetAddressToPointer()
54 return reinterpret_cast<T>(IntPtr); in jitTargetAddressToPointer()
/llvm-project-15.0.7/libc/spec/
H A Dstdc.td385 FunctionSpec<"frexp", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<IntPtr>]>,
386 FunctionSpec<"frexpf", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<IntPtr>]>,
387 … FunctionSpec<"frexpl", RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>, ArgSpec<IntPtr>]>,
430 …nSpec<"remquof", RetValSpec<FloatType>, [ArgSpec<FloatType>, ArgSpec<FloatType>, ArgSpec<IntPtr>]>,
431 …pec<"remquo", RetValSpec<DoubleType>, [ArgSpec<DoubleType>, ArgSpec<DoubleType>, ArgSpec<IntPtr>]>,
432 …, RetValSpec<LongDoubleType>, [ArgSpec<LongDoubleType>, ArgSpec<LongDoubleType>, ArgSpec<IntPtr>]>,
806 ArgSpec<IntPtr>,
H A Dspec.td92 def IntPtr : PtrType<IntType>;
H A Dposix.td426 [ArgSpec<ConstPThreadAttrTPtr>, ArgSpec<IntPtr>]
/llvm-project-15.0.7/clang/test/Frontend/
H A Dnoderef.c241 typedef int* IntPtr; in test_standard_syntax() typedef
242 [[clang::noderef]] IntPtr p4; // expected-warning {{'noderef' attribute ignored}} in test_standard_syntax()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1041 Type *IntPtr, const SCEV *StoreSizeSCEV, in getStartForNegStride() argument
1043 const SCEV *Index = SE->getTruncateOrZeroExtend(BECount, IntPtr); in getStartForNegStride()
1047 SE->getTruncateOrZeroExtend(StoreSizeSCEV, IntPtr), in getStartForNegStride()
1055 static const SCEV *getTripCount(const SCEV *BECount, Type *IntPtr, in getTripCount() argument
1066 DL->getTypeSizeInBits(IntPtr) && in getTripCount()
1072 IntPtr); in getTripCount()
1074 TripCountS = SE->getAddExpr(SE->getTruncateOrZeroExtend(BECount, IntPtr), in getTripCount()
1075 SE->getOne(IntPtr), SCEV::FlagNUW); in getTripCount()
1085 static const SCEV *getNumBytes(const SCEV *BECount, Type *IntPtr, in getNumBytes() argument
1088 const SCEV *TripCountSCEV = getTripCount(BECount, IntPtr, CurLoop, DL, SE); in getNumBytes()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DCOFFDump.cpp393 uintptr_t IntPtr = 0; in printSEHTable() local
394 if (Error E = Obj->getVaPtr(TableVA, IntPtr)) in printSEHTable()
397 const support::ulittle32_t *P = (const support::ulittle32_t *)IntPtr; in printSEHTable()

12