| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | temporaries.mm | 8 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 D | temporaries.cpp | 1073 struct IntPtr { struct 1074 IntPtr(): i(new int) {} in IntPtr() argument 1075 IntPtr(IntPtr &&o): i(o.i) { o.i = 0; } in IntPtr() function 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 D | COFFObjectFile.cpp | 537 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 D | temp_arg_template_cxx1z.cpp | 78 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 D | alias-template-nondependent.cpp | 4 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 D | temp_arg_nontype_cxx20.cpp | 19 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 D | composite-pointer-type.cpp | 39 typedef int *IntPtr; in f2() typedef 40 typedef IntPtr *IntPtrPtr; in f2() 41 typedef IntPtr const *IntPtrConstPtr; in f2()
|
| H A D | warn-cast-align.cpp | 20 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 D | projected.compile.pass.cpp | 20 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 D | ExecutorAddress.h | 48 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 D | llvm-support.cpp | 14 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 D | make-shared.cpp | 264 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 D | make-unique.cpp | 491 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 D | isolate-declaration.cpp | 249 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 D | R600ISelDAGToDAG.cpp | 25 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 D | IntrinsicLowering.cpp | 337 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 D | executor_address.h | 56 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 D | p7-cxx14.cpp | 23 using IntPtr = int*; typedef 46 using IntPtr = decltype(x7a); typedef
|
| /llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/ |
| H A D | JITSymbol.h | 52 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 D | stdc.td | 385 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 D | spec.td | 92 def IntPtr : PtrType<IntType>;
|
| H A D | posix.td | 426 [ArgSpec<ConstPThreadAttrTPtr>, ArgSpec<IntPtr>]
|
| /llvm-project-15.0.7/clang/test/Frontend/ |
| H A D | noderef.c | 241 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 D | LoopIdiomRecognize.cpp | 1041 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 D | COFFDump.cpp | 393 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()
|