/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | BuryPointer.h | 22 void BuryPointer(const void *Ptr); 23 template <typename T> void BuryPointer(std::unique_ptr<T> Ptr) { argument 24 BuryPointer(Ptr.release());
|
H A D | SMLoc.h | 24 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 D | ManagedStatic.h | 29 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...] |
H A D | raw_sha1_ostream.h | 27 void write_impl(const char *Ptr, size_t Size) override { 28 State.update(ArrayRef<uint8_t>((const uint8_t *)Ptr, Size));
|
H A D | ArrayRecycler.h | 56 void push(unsigned Idx, T *Ptr) { argument 57 assert(Ptr && "Cannot recycle NULL pointer"); 58 FreeList *Entry = reinterpret_cast<FreeList*>(Ptr); 63 __asan_poison_memory_region(Ptr, Capacity::get(Idx).getSize()); 106 while (T *Ptr = pop(Bucket.size() - 1)) 107 Allocator.Deallocate(Ptr); 127 if (T *Ptr = pop(Cap.getBucket())) 128 return Ptr; 137 void deallocate(Capacity Cap, T *Ptr) { argument 138 push(Cap.getBucket(), Ptr); [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstrInfo.cpp | 33 const Value *Ptr = MMO->getValue(); local 36 // If Ptr is null, then that means this mem operand contains a 38 if (!Ptr || isa<UndefValue>(Ptr) || 39 isa<Constant>(Ptr) || isa<GlobalValue>(Ptr)) 45 if (const Argument *Arg = dyn_cast<Argument>(Ptr)) 48 const Instruction *I = dyn_cast<Instruction>(Ptr);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | FormattedStream.cpp | 23 static void UpdatePosition(std::pair<unsigned, unsigned> &Position, const char *Ptr, size_t Size) { argument 29 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { 31 switch (*Ptr) { 48 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { argument 52 if (Ptr <= Scanned && Scanned <= Ptr + Size) 55 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); 57 UpdatePosition(Position, Ptr, Siz 76 write_impl(const char *Ptr, size_t Size) argument [all...] |
H A D | BuryPointer.cpp | 15 void BuryPointer(const void *Ptr) { argument 27 GraveYard[Idx] = Ptr;
|
H A D | raw_os_ostream.cpp | 25 void raw_os_ostream::write_impl(const char *Ptr, size_t Size) { argument 26 OS.write(Ptr, Size);
|
H A D | Twine.cpp | 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, argument 63 Ptr.twine->print(OS); 66 OS << Ptr.cString; 69 OS << *Ptr.stdString; 72 OS << *Ptr.stringRef; 75 OS << *Ptr.smallString; 78 OS << *Ptr.formatvObject; 81 OS << Ptr.character; 84 OS << Ptr.decUI; 87 OS << Ptr 107 printOneChildRepr(raw_ostream &OS, Child Ptr, NodeKind Kind) const argument [all...] |
H A D | circular_raw_ostream.cpp | 17 void circular_raw_ostream::write_impl(const char *Ptr, size_t Size) { argument 19 TheStream->write(Ptr, Size); 27 memcpy(Cur, Ptr, Bytes);
|
H A D | ManagedStatic.cpp | 39 if (!Ptr.load(std::memory_order_relaxed)) { 42 Ptr.store(Tmp, std::memory_order_release); 50 assert(!Ptr && !DeleterFn && !Next && 52 Ptr = Creator(); 70 DeleterFn(Ptr); 73 Ptr = nullptr;
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Source.h | 27 CodePtr() : Ptr(nullptr) {} 30 Ptr += Offset; 35 assert(Ptr != nullptr && RHS.Ptr != nullptr && "Invalid code pointer"); 36 return Ptr - RHS.Ptr; 40 assert(Ptr != nullptr && "Invalid code pointer"); 41 return CodePtr(Ptr - RHS); 44 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; } 55 CodePtr(const char *Ptr) argument 60 ReadHelper(const char *Ptr) argument 67 ReadHelper(const char *Ptr) argument 77 const char *Ptr; member in class:clang::interp::CodePtr [all...] |
H A D | Interp.cpp | 101 static bool CheckInitialized(InterpState &S, CodePtr OpPC, const Pointer &Ptr, argument 103 if (Ptr.isInitialized()) 112 static bool CheckActive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, argument 114 if (Ptr.isActive()) 118 const FieldDecl *InactiveField = Ptr.getField(); 121 Pointer U = Ptr.getBase(); 144 static bool CheckTemporary(InterpState &S, CodePtr OpPC, const Pointer &Ptr, argument 146 if (auto ID = Ptr.getDeclID()) { 147 if (!Ptr.isStaticTemporary()) 150 if (Ptr 164 CheckGlobal(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 181 CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 194 CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 202 CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, AccessKinds AK) argument 231 CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr, CheckSubobjectKind CSK) argument 240 CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, AccessKinds AK) argument 249 CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr, CheckSubobjectKind CSK) argument 258 CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 270 CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 283 CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 301 CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 315 CheckInvoke(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument 325 CheckInit(InterpState &S, CodePtr OpPC, const Pointer &Ptr) argument [all...] |
H A D | InterpStack.cpp | 52 StackChunk *Ptr = Chunk; local 53 while (Size > Ptr->size()) { 54 Size -= Ptr->size(); 55 Ptr = Ptr->Prev; 56 assert(Ptr && "Offset too large"); 59 return reinterpret_cast<void *>(Ptr->End - Size);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | IdentifierResolver.h | 79 /// 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...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Utility/ |
H A D | StreamCallback.cpp | 18 void StreamCallback::write_impl(const char *Ptr, size_t Size) { argument 19 m_callback(std::string(Ptr, Size).c_str(), m_baton);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | chunk.h | 89 inline AtomicPackedHeader *getAtomicHeader(void *Ptr) { argument 90 return reinterpret_cast<AtomicPackedHeader *>(reinterpret_cast<uptr>(Ptr) - 94 inline const AtomicPackedHeader *getConstAtomicHeader(const void *Ptr) { argument 96 reinterpret_cast<uptr>(Ptr) - getHeaderSize()); 102 static inline u16 computeHeaderChecksum(u32 Cookie, const void *Ptr, argument 108 return computeChecksum(Cookie, reinterpret_cast<uptr>(Ptr), HeaderHolder, 112 inline void storeHeader(u32 Cookie, void *Ptr, argument 115 computeHeaderChecksum(Cookie, Ptr, NewUnpackedHeader); 117 atomic_store_relaxed(getAtomicHeader(Ptr), NewPackedHeader); 120 inline void loadHeader(u32 Cookie, const void *Ptr, argument 129 compareExchangeHeader(u32 Cookie, void *Ptr, UnpackedHeader *NewUnpackedHeader, UnpackedHeader *OldUnpackedHeader) argument 142 isValid(u32 Cookie, const void *Ptr, UnpackedHeader *NewUnpackedHeader) argument [all...] |
H A D | report.h | 25 void NORETURN reportHeaderCorruption(void *Ptr); 26 void NORETURN reportHeaderRace(void *Ptr); 42 void NORETURN reportInvalidChunkState(AllocatorAction Action, void *Ptr); 43 void NORETURN reportMisalignedPointer(AllocatorAction Action, void *Ptr); 44 void NORETURN reportDeallocTypeMismatch(AllocatorAction Action, void *Ptr, 46 void NORETURN reportDeleteSizeMismatch(void *Ptr, uptr Size, uptr ExpectedSize);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/ |
H A D | guarded_pool_allocator_posix.cpp | 22 void *Ptr = local 25 if (Ptr == MAP_FAILED) { 30 return Ptr; 33 void GuardedPoolAllocator::markReadWrite(void *Ptr, size_t Size) const { argument 34 if (mprotect(Ptr, Size, PROT_READ | PROT_WRITE) != 0) { 37 Printf(" mprotect(%p, %zu, RW) failed.\n", Ptr, Size); 42 void GuardedPoolAllocator::markInaccessible(void *Ptr, size_t Size) const { argument 46 if (mmap(Ptr, Size, PROT_NONE, MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE, -1, 51 Printf(" mmap(%p, %zu, NONE, ...) failed.\n", Ptr, Size);
|
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclAccessPair.h | 30 uintptr_t Ptr; // we'd use llvm::PointerUnion, but it isn't trivial member in class:clang::DeclAccessPair 42 return reinterpret_cast<NamedDecl*>(~Mask & Ptr); 45 return AccessSpecifier(Mask & Ptr); 55 Ptr = uintptr_t(AS) | reinterpret_cast<uintptr_t>(D);
|
H A D | ASTContextAllocate.h | 34 void operator delete(void *Ptr, const clang::ASTContext &C, size_t); 35 void operator delete[](void *Ptr, const clang::ASTContext &C, size_t);
|
/freebsd-11-stable/sys/contrib/dev/acpica/os_specific/service_layers/ |
H A D | osgendbg.c | 191 char *Ptr = BatchBuffer; local 192 char *Cmd = Ptr; 199 if (*Ptr) 201 while (*Ptr) 203 if (*Ptr == ',') 206 *Ptr = ' '; 208 else if (*Ptr == ';') 210 *Ptr = '\0'; 214 Ptr++; 218 Ptr [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.h | 115 GWP_ASAN_ALWAYS_INLINE bool pointerIsMine(const void *Ptr) const { 116 uintptr_t P = reinterpret_cast<uintptr_t>(Ptr); 127 void deallocate(void *Ptr); 129 // Returns the size of the allocation at Ptr. 130 size_t getSize(const void *Ptr); 159 void markReadWrite(void *Ptr, size_t Size) const; 160 void markInaccessible(void *Ptr, size_t Size) const; 175 size_t addrToSlot(uintptr_t Ptr) const; 182 AllocationMetadata *addrToMetadata(uintptr_t Ptr) const; 185 uintptr_t getPageAddr(uintptr_t Ptr) cons [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/ |
H A D | scudo_allocator.cpp | 73 static INLINE AtomicPackedHeader *getAtomicHeader(void *Ptr) { argument 74 return reinterpret_cast<AtomicPackedHeader *>(reinterpret_cast<uptr>(Ptr) - 78 const AtomicPackedHeader *getConstAtomicHeader(const void *Ptr) { argument 80 reinterpret_cast<uptr>(Ptr) - getHeaderSize()); 83 static INLINE bool isAligned(const void *Ptr) { argument 84 return IsAligned(reinterpret_cast<uptr>(Ptr), MinAlignment); 90 static INLINE void *getBackendPtr(const void *Ptr, UnpackedHeader *Header) { argument 91 return reinterpret_cast<void *>(reinterpret_cast<uptr>(Ptr) - 97 static INLINE uptr getUsableSize(const void *Ptr, UnpackedHeader *Header) { argument 103 getBackendPtr(Ptr, Heade 107 getSize(const void *Ptr, UnpackedHeader *Header) argument 116 computeChecksum(const void *Ptr, UnpackedHeader *Header) argument 128 isValid(const void *Ptr) argument 143 loadHeader(const void *Ptr, UnpackedHeader *NewUnpackedHeader) argument 153 storeHeader(void *Ptr, UnpackedHeader *NewUnpackedHeader) argument 162 compareExchangeHeader(void *Ptr, UnpackedHeader *NewUnpackedHeader, UnpackedHeader *OldUnpackedHeader) argument 181 Recycle(void *Ptr) argument 204 Deallocate(void *Ptr) argument 289 isValidPointer(const void *Ptr) argument 393 void *Ptr = reinterpret_cast<void *>(UserPtr); local 403 quarantineOrDeallocateChunk(void *Ptr, UnpackedHeader *Header, uptr Size) argument 442 deallocate(void *Ptr, uptr DeleteSize, uptr DeleteAlignment, AllocType Type) argument 541 getUsableSize(const void *Ptr) argument 701 scudoDeallocate(void *Ptr, uptr Size, uptr Alignment, AllocType Type) argument 705 scudoRealloc(void *Ptr, uptr Size) argument 743 void *Ptr = Instance.allocate(Size, Alignment, FromMemalign); local 760 scudoMallocUsableSize(void *Ptr) argument 790 __sanitizer_get_ownership(const void *Ptr) argument 794 __sanitizer_get_allocated_size(const void *Ptr) argument 799 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_malloc_hook, void *Ptr, uptr Size) argument 805 SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_free_hook, void *Ptr) argument [all...] |