Searched refs:Ptr (Results 1 - 25 of 543) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
H A Dscoping4.C7 typedef char * Ptr; typedef in class:A
8 Ptr s;
9 Ptr get_string();
10 A(Ptr string); // { s = string; };
15 typedef A * Ptr; typedef in class:B
16 Ptr a;
17 Ptr get_A();
18 B(Ptr a_ptr);
21 A::A(Ptr string) { // gets bogus error -
H A Dpmf3.C11 typedef void (A::*Ptr)(char); typedef
14 Ptr p;
16 p = (Ptr) &A::f;
17 p = (Ptr) &A::g;
H A Doffset3.C8 struct Ptr { struct
13 Ptr p;
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Darg3.C3 typedef void* Ptr; typedef
6 void func(int, const Ptr& p);
8 template <class T> void func(T, const Ptr& p);
11 Ptr& return_ref();
19 // call of func(int, const Ptr&)
20 // instead of func(char*,const Ptr&)
H A Doperators29.C12 template<class T> class Ptr { class
14 Ptr(T*);
19 Ptr<int> ip = new int(2);
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DBuryPointer.h22 void BuryPointer(const void *Ptr);
23 template <typename T> void BuryPointer(std::unique_ptr<T> Ptr) { argument
24 BuryPointer(Ptr.release());
H A DSMLoc.h24 const char *Ptr = nullptr; member in class:llvm::SMLoc
29 bool isValid() const { return Ptr != nullptr; }
31 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
32 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
34 const char *getPointer() const { return Ptr; }
36 static SMLoc getFromPointer(const char *Ptr) { argument
38 L.Ptr = Ptr;
[all...]
H A DManagedStatic.h29 static void call(void *Ptr) { delete (T *)Ptr; } argument
32 static void call(void *Ptr) { delete[](T *)Ptr; } argument
52 mutable std::atomic<void *> Ptr{};
58 mutable std::atomic<void *> Ptr;
71 bool isConstructed() const { return Ptr != nullptr; }
87 void *Tmp = Ptr.load(std::memory_order_acquire);
91 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed));
97 void *Tmp = Ptr
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/gwp_asan/tests/
H A Dharness.cpp27 DeallocateMemory(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { argument
28 GPA.deallocate(Ptr);
31 DeallocateMemory2(gwp_asan::GuardedPoolAllocator &GPA, void *Ptr) { argument
32 GPA.deallocate(Ptr);
34 __attribute__((optnone)) void TouchMemory(void *Ptr) { argument
35 *(reinterpret_cast<volatile char *>(Ptr)) = 7;
H A Dslot_reuse.cpp14 void *Ptr = GPA->allocate(1); local
15 EXPECT_NE(nullptr, Ptr);
16 EXPECT_TRUE(GPA->pointerIsMine(Ptr));
17 EXPECT_EQ(1u, GPA->getSize(Ptr));
18 GPA->deallocate(Ptr);
48 void *Ptr = GPA->allocate(1); local
50 EXPECT_TRUE(GPA->pointerIsMine(Ptr));
51 EXPECT_EQ(0u, Ptrs.count(Ptr));
53 Ptrs.insert(Ptr);
54 GPA->deallocate(Ptr);
[all...]
H A Drecoverable.cpp32 void *Ptr = AllocateMemory(GPA); local
33 DeallocateMemory(GPA, Ptr);
35 DeallocateMemory(GPA, Ptr);
42 DeallocateMemory(GPA, Ptr);
49 char *Ptr = static_cast<char *>(AllocateMemory(GPA)); local
51 DeallocateMemory(GPA, Ptr + 1);
58 DeallocateMemory(GPA, Ptr + 1);
65 void *Ptr = AllocateMemory(GPA); local
66 DeallocateMemory(GPA, Ptr);
68 TouchMemory(Ptr);
81 char *Ptr = static_cast<char *>(AllocateMemory(GPA)); local
102 void *Ptr = AllocateMemory(GPA); local
127 void *Ptr = AllocateMemory(GPA); local
152 singleAllocThrashTask(gwp_asan::GuardedPoolAllocator *GPA, std::atomic<bool> *StartingGun, unsigned NumIterations, unsigned Job, char *Ptr) argument
189 char *Ptr = static_cast<char *>(AllocateMemory(*GPA)); local
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DFormattedStream.cpp26 void formatted_raw_ostream::UpdatePosition(const char *Ptr, size_t Size) { argument
61 PartialUTF8Char.append(StringRef(Ptr, Size));
67 PartialUTF8Char.append(StringRef(Ptr, BytesFromBuffer));
70 Ptr += BytesFromBuffer;
77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) {
78 NumBytes = getNumBytesForUTF8(*Ptr);
85 if ((unsigned)(End - Ptr) < NumBytes) {
86 PartialUTF8Char = StringRef(Ptr, En
96 ComputePosition(const char *Ptr, size_t Size) argument
124 write_impl(const char *Ptr, size_t Size) argument
[all...]
H A Draw_os_ostream.cpp25 void raw_os_ostream::write_impl(const char *Ptr, size_t Size) { argument
26 OS.write(Ptr, Size);
H A DBuryPointer.cpp15 void BuryPointer(const void *Ptr) { argument
27 GraveYard[Idx] = Ptr;
H A DTwine.cpp57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, argument
63 Ptr.twine->print(OS);
66 OS << Ptr.cString;
69 OS << *Ptr.stdString;
72 OS << StringRef(Ptr.ptrAndLength.ptr, Ptr.ptrAndLength.length);
75 OS << *Ptr.formatvObject;
78 OS << Ptr.character;
81 OS << Ptr.decUI;
84 OS << Ptr
104 printOneChildRepr(raw_ostream &OS, Child Ptr, NodeKind Kind) const argument
[all...]
H A DManagedStatic.cpp33 if (!Ptr.load(std::memory_order_relaxed)) {
36 Ptr.store(Tmp, std::memory_order_release);
44 assert(!Ptr && !DeleterFn && !Next &&
46 Ptr = Creator();
64 DeleterFn(Ptr);
67 Ptr = nullptr;
H A DMemAlloc.cpp24 void llvm::deallocate_buffer(void *Ptr, size_t Size, size_t Alignment) { argument
25 ::operator delete(Ptr
/openbsd-current/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstrInfo.cpp32 const Value *Ptr = MMO->getValue(); local
35 // If Ptr is null, then that means this mem operand contains a
37 if (!Ptr || isa<UndefValue>(Ptr) ||
38 isa<Constant>(Ptr) || isa<GlobalValue>(Ptr))
44 if (const Argument *Arg = dyn_cast<Argument>(Ptr))
47 const Instruction *I = dyn_cast<Instruction>(Ptr);
/openbsd-current/gnu/llvm/clang/lib/AST/Interp/
H A DSource.h28 CodePtr() : Ptr(nullptr) {}
31 Ptr += Offset;
36 assert(Ptr != nullptr && RHS.Ptr != nullptr && "Invalid code pointer");
37 return Ptr - RHS.Ptr;
41 assert(Ptr != nullptr && "Invalid code pointer");
42 return CodePtr(Ptr - RHS);
45 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; }
60 CodePtr(const char *Ptr) argument
66 const char *Ptr; member in class:clang::interp::final
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/init/
H A Dinit-ref3.C6 class Ptr { class
12 Ptr(void) : ptr(0) { }; function in class:Ptr
13 Ptr(T * p) : ptr(p) { }; function in class:Ptr
15 ~Ptr(void) { delete ptr; }
42 Ptr<foo> f = new foo;
/openbsd-current/gnu/llvm/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp56 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()); local
57 memcpy(Ptr, &Obj.FileHeader, sizeof(XCOFFFileHeader32));
58 Ptr += sizeof(XCOFFFileHeader32);
62 memcpy(Ptr, &Obj.OptionalFileHeader, Obj.FileHeader.AuxHeaderSize);
63 Ptr += Obj.FileHeader.AuxHeaderSize;
68 memcpy(Ptr, &Sec.SectionHeader, sizeof(XCOFFSectionHeader32));
69 Ptr += sizeof(XCOFFSectionHeader32);
76 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + local
78 Ptr = std::copy(Sec.Contents.begin(), Sec.Contents.end(), Ptr);
83 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + local
94 uint8_t *Ptr = reinterpret_cast<uint8_t *>(Buf->getBufferStart()) + local
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp47 void *Ptr = mmap(nullptr, Size, PROT_READ | PROT_WRITE, local
49 Check(Ptr != MAP_FAILED, "Failed to map guarded pool allocator memory");
50 MaybeSetMappingName(Ptr, Size, Name);
51 return Ptr;
54 void GuardedPoolAllocator::unmap(void *Ptr, size_t Size) const { argument
55 assert((reinterpret_cast<uintptr_t>(Ptr) % State.PageSize) == 0);
57 Check(munmap(Ptr, Size) == 0,
63 void *Ptr = local
65 Check(Ptr != MAP_FAILED, "Failed to reserve guarded pool allocator memory");
66 MaybeSetMappingName(Ptr, Siz
75 allocateInGuardedPool(void *Ptr, size_t Size) const argument
83 deallocateInGuardedPool(void *Ptr, size_t Size) const argument
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/gwp_asan/
H A Dcommon.cpp81 bool AllocatorState::isGuardPage(uintptr_t Ptr) const {
82 assert(pointerIsMine(reinterpret_cast<void *>(Ptr)));
83 size_t PageOffsetFromPoolStart = (Ptr - GuardedPagePool) / PageSize;
88 static size_t addrToSlot(const AllocatorState *State, uintptr_t Ptr) { argument
89 size_t ByteOffsetFromPoolStart = Ptr - State->GuardedPagePool;
94 size_t AllocatorState::getNearestSlot(uintptr_t Ptr) const {
95 if (Ptr <= GuardedPagePool + PageSize)
97 if (Ptr > GuardedPagePoolEnd - PageSize)
100 if (!isGuardPage(Ptr))
101 return addrToSlot(this, Ptr);
[all...]
/openbsd-current/gnu/llvm/clang/include/clang/Sema/
H A DIdentifierResolver.h79 /// Ptr - There are 2 forms that 'Ptr' represents:
80 /// 1) A single NamedDecl. (Ptr & 0x1 == 0)
82 /// same declaration context. (Ptr & 0x1 == 0x1)
83 uintptr_t Ptr = 0;
86 /// A single NamedDecl. (Ptr & 0x1 == 0)
88 Ptr = reinterpret_cast<uintptr_t>(D);
89 assert((Ptr & 0x1) == 0 && "Invalid Ptr!");
95 Ptr
190 isDeclPtr(void *Ptr) argument
195 toIdDeclInfo(void *Ptr) argument
[all...]
/openbsd-current/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dmemtag.h37 inline uptr untagPointer(uptr Ptr) { return Ptr & ((1ULL << 56) - 1); } argument
39 inline uint8_t extractTag(uptr Ptr) { return (Ptr >> 56) & 0xf; } argument
49 inline NORETURN uptr untagPointer(uptr Ptr) {
50 (void)Ptr;
54 inline NORETURN uint8_t extractTag(uptr Ptr) {
55 (void)Ptr;
148 inline uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { argument
154 irg %[TaggedPtr], %[Ptr],
161 addFixedTag(uptr Ptr, uptr Tag) argument
163 DCHECK_EQ(untagPointer(Ptr), Ptr); local
232 storeTag(uptr Ptr) argument
243 loadTag(uptr Ptr) argument
275 selectRandomTag(uptr Ptr, uptr ExcludeMask) argument
281 addFixedTag(uptr Ptr, uptr Tag) argument
293 storeTag(uptr Ptr) argument
298 loadTag(uptr Ptr) argument
307 setRandomTag(void *Ptr, uptr Size, uptr ExcludeMask, uptr *TaggedBegin, uptr *TaggedEnd) argument
314 untagPointer(void *Ptr) argument
318 loadTag(void *Ptr) argument
322 addFixedTag(void *Ptr, uptr Tag) argument
[all...]

Completed in 172 milliseconds

1234567891011>>