Home
last modified time | relevance | path

Searched refs:Ptr (Results 1 – 25 of 534) sorted by relevance

12345678910>>...22

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def783 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr, Ptr)
1348 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
1353 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
1828 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
1919 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
2110 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
2125 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
2145 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
2205 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
2220 TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr)
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dmemtag.h37 inline uptr untagPointer(uptr Ptr) { return Ptr & ((1ULL << 56) - 1); } in untagPointer() argument
39 inline uint8_t extractTag(uptr Ptr) { return (Ptr >> 56) & 0xf; } in extractTag() argument
50 (void)Ptr;
55 (void)Ptr;
157 : [Ptr] "r"(Ptr), [ExcludeMask] "r"(ExcludeMask)); in selectRandomTag()
163 DCHECK_EQ(untagPointer(Ptr), Ptr); in addFixedTag()
245 uptr TaggedPtr = Ptr; in loadTag()
276 (void)Ptr; in selectRandomTag()
282 (void)Ptr; in addFixedTag()
294 (void)Ptr; in storeTag()
[all …]
H A Dwrappers_cpp.cpp40 reportAllocation(Ptr, size); in operator new()
41 return Ptr; in operator new()
45 reportAllocation(Ptr, size); in operator new[]()
46 return Ptr; in operator new[]()
51 reportAllocation(Ptr, size); in operator new()
52 return Ptr; in operator new()
58 return Ptr; in operator new[]()
64 return Ptr; in operator new()
70 return Ptr; in operator new[]()
77 return Ptr; in operator new()
[all …]
H A Dcombined.h75 Ptr = untagPointer(Ptr); in recycle()
91 Ptr = reinterpret_cast<void *>(reinterpret_cast<uptr>(Ptr) + in allocate()
105 return Ptr; in allocate()
265 return Ptr; in getHeaderTaggedPointer()
484 Ptr = addHeaderTag(Ptr);
494 Ptr = addHeaderTag(Ptr);
552 Ptr = getHeaderTaggedPointer(Ptr);
845 Ptr = getHeaderTaggedPointer(const_cast<void *>(Ptr)); in getAllocSize()
872 Ptr = getHeaderTaggedPointer(const_cast<void *>(Ptr)); in isOwned()
1100 Ptr = untagPointer(const_cast<void *>(Ptr)); in getSize()
[all …]
H A Dchunk.h91 inline AtomicPackedHeader *getAtomicHeader(void *Ptr) { in getAtomicHeader() argument
98 reinterpret_cast<uptr>(Ptr) - getHeaderSize()); in getConstAtomicHeader()
104 static inline u16 computeHeaderChecksum(u32 Cookie, const void *Ptr, in computeHeaderChecksum() argument
114 inline void storeHeader(u32 Cookie, void *Ptr, in storeHeader() argument
117 computeHeaderChecksum(Cookie, Ptr, NewUnpackedHeader); in storeHeader()
119 atomic_store_relaxed(getAtomicHeader(Ptr), NewPackedHeader); in storeHeader()
122 inline void loadHeader(u32 Cookie, const void *Ptr, in loadHeader() argument
127 computeHeaderChecksum(Cookie, Ptr, NewUnpackedHeader))) in loadHeader()
128 reportHeaderCorruption(const_cast<void *>(Ptr)); in loadHeader()
131 inline bool isValid(u32 Cookie, const void *Ptr, in isValid() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DTwine.cpp68 OS << Ptr.cString; in printOneChild()
75 OS << StringRef(Ptr.ptrAndLength.ptr, Ptr.ptrAndLength.length); in printOneChild()
81 OS << Ptr.character; in printOneChild()
84 OS << Ptr.decUI; in printOneChild()
87 OS << Ptr.decI; in printOneChild()
90 OS << *Ptr.decUL; in printOneChild()
93 OS << *Ptr.decL; in printOneChild()
96 OS << *Ptr.decULL; in printOneChild()
99 OS << *Ptr.decLL; in printOneChild()
128 << StringRef(Ptr.ptrAndLength.ptr, Ptr.ptrAndLength.length) << "\""; in printOneChildRepr()
[all …]
H A DFormattedStream.cpp61 PartialUTF8Char.append(StringRef(Ptr, Size)); in UpdatePosition()
70 Ptr += BytesFromBuffer; in UpdatePosition()
77 for (const char *End = Ptr + Size; Ptr < End; Ptr += NumBytes) { in UpdatePosition()
78 NumBytes = getNumBytesForUTF8(*Ptr); in UpdatePosition()
85 if ((unsigned)(End - Ptr) < NumBytes) { in UpdatePosition()
86 PartialUTF8Char = StringRef(Ptr, End - Ptr); in UpdatePosition()
103 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition()
108 UpdatePosition(Ptr, Size); in ComputePosition()
111 Scanned = Ptr + Size; in ComputePosition()
129 ComputePosition(Ptr, Size); in write_impl()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_rawprofile.cpp63 char *Ptr = Buffer; in SerializeSegmentsToBuffer() local
65 Ptr += sizeof(u64); in SerializeSegmentsToBuffer()
119 char *Ptr = Buffer; in SerializeStackToBuffer() local
120 Ptr = WriteBytes(static_cast<u64>(NumIds), Ptr); in SerializeStackToBuffer()
124 Ptr = WriteBytes(Id, Ptr); in SerializeStackToBuffer()
132 Ptr = WriteBytes(static_cast<u64>(pc), Ptr); in SerializeStackToBuffer()
155 char *Ptr = Buffer; in SerializeMIBInfoToBuffer() local
157 Ptr = WriteBytes(NumEntries, Ptr); in SerializeMIBInfoToBuffer()
163 Ptr = WriteBytes(Key, Ptr); in SerializeMIBInfoToBuffer()
164 Ptr = WriteBytes((*h)->mib, Ptr); in SerializeMIBInfoToBuffer()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterp.cpp77 if (Ptr.isActive()) in CheckActive()
84 Pointer U = Ptr.getBase(); in CheckActive()
129 if (!Ptr.isStatic()) in CheckGlobal()
188 if (!Ptr.isExtern()) in CheckExtern()
208 if (Ptr.isZero()) { in CheckLive()
211 if (Ptr.isField()) in CheckLive()
219 if (!Ptr.isLive()) { in CheckLive()
275 return !Ptr.isZero() && !Ptr.isDummy(); in CheckDummy()
280 if (!Ptr.isZero()) in CheckNull()
317 if (!Ptr.isConst()) in CheckConst()
[all …]
H A DSource.h32 CodePtr() : Ptr(nullptr) {} in CodePtr()
35 Ptr += Offset;
40 assert(Ptr != nullptr && RHS.Ptr != nullptr && "Invalid code pointer");
41 return Ptr - RHS.Ptr;
46 return CodePtr(Ptr - RHS);
49 bool operator!=(const CodePtr &RHS) const { return Ptr != RHS.Ptr; }
52 operator bool() const { return Ptr; }
56 assert(aligned(Ptr)); in read()
59 Ptr += align(sizeof(T)); in read()
66 CodePtr(const std::byte *Ptr) : Ptr(Ptr) {} in CodePtr() argument
[all …]
H A DPointer.cpp120 Pointer Ptr = *this; in toAPValue() local
121 while (Ptr.isField() || Ptr.isArrayElement()) { in toAPValue()
122 if (Ptr.isArrayElement()) { in toAPValue()
124 Ptr = Ptr.getArray(); in toAPValue()
133 Ptr = Ptr.getBase(); in toAPValue()
242 if (Ptr.isDummy() || !Ptr.isLive() || in toRValue()
243 (!Ptr.isUnknownSizeArray() && Ptr.isOnePastEnd())) in toRValue()
249 R = Ptr.toAPValue(); in toRValue()
257 const auto *Record = Ptr.getRecord(); in toRValue()
327 const Pointer &EP = Ptr.atIndex(I); in toRValue()
[all …]
H A DInterp.h1205 Ptr.deactivate(); in GetPtrActiveField()
1266 Ptr.initialize(); in InitPtrPop()
1272 Pointer Base = Ptr; in VirtBaseHelper()
1326 if (!Ptr.isRoot()) in Store()
1327 Ptr.initialize(); in Store()
1338 if (!Ptr.isRoot()) in StorePop()
1350 if (!Ptr.isRoot()) in StoreBitField()
1365 if (!Ptr.isRoot()) in StoreBitFieldPop()
1380 Ptr.initialize(); in InitPop()
1394 Ptr.initialize(); in InitElem()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/gwp_asan/platform_specific/
H A Dguarded_pool_allocator_posix.cpp47 void *Ptr = mmap(nullptr, Size, PROT_READ | PROT_WRITE, in map() local
50 MaybeSetMappingName(Ptr, Size, Name); in map()
51 return Ptr; in map()
57 Check(munmap(Ptr, Size) == 0, in unmap()
63 void *Ptr = in reserveGuardedPool() local
66 MaybeSetMappingName(Ptr, Size, kGwpAsanGuardPageName); in reserveGuardedPool()
67 return Ptr; in reserveGuardedPool()
78 Check(mprotect(Ptr, Size, PROT_READ | PROT_WRITE) == 0, in allocateInGuardedPool()
80 MaybeSetMappingName(Ptr, Size, kGwpAsanAliveSlotName); in allocateInGuardedPool()
83 void GuardedPoolAllocator::deallocateInGuardedPool(void *Ptr, in deallocateInGuardedPool() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp57 memcpy(Ptr, &Obj.FileHeader, sizeof(XCOFFFileHeader32)); in writeHeaders()
58 Ptr += sizeof(XCOFFFileHeader32); in writeHeaders()
63 Ptr += Obj.FileHeader.AuxHeaderSize; in writeHeaders()
69 Ptr += sizeof(XCOFFSectionHeader32); in writeHeaders()
78 Ptr = std::copy(Sec.Contents.begin(), Sec.Contents.end(), Ptr); in writeSections()
86 memcpy(Ptr, &Rel, sizeof(XCOFFRelocation32)); in writeSections()
87 Ptr += sizeof(XCOFFRelocation32); in writeSections()
97 memcpy(Ptr, &Sym.Sym, XCOFF::SymbolTableEntrySize); in writeSymbolStringTable()
98 Ptr += XCOFF::SymbolTableEntrySize; in writeSymbolStringTable()
101 Ptr += Sym.AuxSymbolEntries.size(); in writeSymbolStringTable()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DIdentifierResolver.h83 uintptr_t Ptr = 0; variable
88 Ptr = reinterpret_cast<uintptr_t>(D); in iterator()
89 assert((Ptr & 0x1) == 0 && "Invalid Ptr!"); in iterator()
95 Ptr = reinterpret_cast<uintptr_t>(I) | 0x1; in iterator()
98 bool isIterator() const { return (Ptr & 0x1); } in isIterator()
102 return reinterpret_cast<BaseIter>(Ptr & ~0x1); in getIterator()
114 return reinterpret_cast<NamedDecl*>(Ptr);
118 return Ptr == RHS.Ptr;
121 return Ptr != RHS.Ptr;
127 Ptr = 0;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DIdentifierResolver.cpp162 if (!Ptr) { in AddDecl()
169 if (isDeclPtr(Ptr)) { in AddDecl()
187 if (!Ptr) { in InsertDeclAfter()
192 if (isDeclPtr(Ptr)) { in InsertDeclAfter()
230 if (isDeclPtr(Ptr)) { in RemoveDecl()
249 if (!Ptr) return end(); in begin()
251 if (isDeclPtr(Ptr)) in begin()
322 if (!Ptr) { in tryAddTopLevelDecl()
329 if (isDeclPtr(Ptr)) { in tryAddTopLevelDecl()
359 IDI = toIdDeclInfo(Ptr); in tryAddTopLevelDecl()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFWriter.cpp260 Ptr += Obj.DosStub.size(); in writeHeaders()
262 Ptr += sizeof(PEMagic); in writeHeaders()
289 Ptr += sizeof(BigObjHeader); in writeHeaders()
302 Ptr += sizeof(PeHeader); in writeHeaders()
306 Ptr += sizeof(DD); in writeHeaders()
311 Ptr += sizeof(S.Header); in writeHeaders()
337 Ptr += sizeof(R); in writeSections()
341 Ptr += sizeof(R.Reloc); in writeSections()
353 Ptr += sizeof(SymbolTy); in writeSymbolStringTables()
374 StrTabBuilder.write(Ptr); in writeSymbolStringTables()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dcommon.cpp81 bool AllocatorState::isGuardPage(uintptr_t Ptr) const { in isGuardPage()
82 assert(pointerIsMine(reinterpret_cast<void *>(Ptr))); in isGuardPage()
89 size_t ByteOffsetFromPoolStart = Ptr - State->GuardedPagePool; in addrToSlot()
94 size_t AllocatorState::getNearestSlot(uintptr_t Ptr) const { in getNearestSlot()
95 if (Ptr <= GuardedPagePool + PageSize) in getNearestSlot()
97 if (Ptr > GuardedPagePoolEnd - PageSize) in getNearestSlot()
100 if (!isGuardPage(Ptr)) in getNearestSlot()
101 return addrToSlot(this, Ptr); in getNearestSlot()
103 if (Ptr % PageSize <= PageSize / 2) in getNearestSlot()
104 return addrToSlot(this, Ptr - PageSize); // Round down. in getNearestSlot()
[all …]
H A Dguarded_pool_allocator.cpp35 return Ptr & ~(PageSize - 1); in getPageAddr()
184 if ((Ptr & (Alignment - 1)) == 0) in alignUp()
185 return Ptr; in alignUp()
187 Ptr += Alignment - (Ptr & (Alignment - 1)); in alignUp()
188 return Ptr; in alignUp()
194 if ((Ptr & (Alignment - 1)) == 0) in alignDown()
195 return Ptr; in alignDown()
197 Ptr -= Ptr & (Alignment - 1); in alignDown()
198 return Ptr; in alignDown()
430 assert(pointerIsMine(Ptr)); in getSize()
[all …]
H A Dguarded_pool_allocator.h98 return State.pointerIsMine(Ptr); in pointerIsMine()
111 void deallocate(void *Ptr);
114 size_t getSize(const void *Ptr);
125 void preCrashReport(void *Ptr);
126 void postCrashReportRecoverableOnly(void *Ptr);
137 static uintptr_t alignUp(uintptr_t Ptr, size_t Alignment);
138 static uintptr_t alignDown(uintptr_t Ptr, size_t Alignment);
161 void unmap(void *Ptr, size_t Size) const;
174 void allocateInGuardedPool(void *Ptr, size_t Size) const;
177 void deallocateInGuardedPool(void *Ptr, size_t Size) const;
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DSMLoc.h24 const char *Ptr = nullptr; variable
29 constexpr bool isValid() const { return Ptr != nullptr; } in isValid()
31 constexpr bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
32 constexpr bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
34 constexpr const char *getPointer() const { return Ptr; } in getPointer()
36 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer() argument
38 L.Ptr = Ptr; in getFromPointer()
H A DManagedStatic.h29 static void call(void *Ptr) { delete (T *)Ptr; } in call()
32 static void call(void *Ptr) { delete[](T *)Ptr; }
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.load(std::memory_order_acquire);
101 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed));
109 return static_cast<C *>(Ptr.exchange(nullptr));
/freebsd-14.2/contrib/llvm-project/lld/MachO/
H A DObjC.cpp75 DO(Ptr, name) \
76 DO(Ptr, klass) \
77 DO(Ptr, instanceMethods) \
78 DO(Ptr, classMethods) \
79 DO(Ptr, protocols) \
80 DO(Ptr, instanceProps) \
81 DO(Ptr, classProps)
88 DO(Ptr, metaClass) \
92 DO(Ptr, roData)
108 DO(Ptr, baseProperties)
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp41 void enqueueUsers(Value *Ptr);
43 bool promotePointer(Value *Ptr);
66 SmallVector<User *> PtrUsers(Ptr->users()); in enqueueUsers()
87 if (U->getOperand(0)->stripInBoundsOffsets() == Ptr) in enqueueUsers()
97 LoadInst *LI = dyn_cast<LoadInst>(Ptr); in promotePointer()
101 PointerType *PT = dyn_cast<PointerType>(Ptr->getType()); in promotePointer()
108 enqueueUsers(Ptr); in promotePointer()
121 B.CreateAddrSpaceCast(Ptr, NewPT, Twine(Ptr->getName(), ".global")); in promotePointer()
124 Ptr->replaceUsesWithIf(CastBack, in promotePointer()
181 Value *Ptr = Ptrs.pop_back_val(); in run() local
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallPtrSet.h133 if (Value == Ptr) in insert_imp()
141 *LastTombstone = Ptr; in insert_imp()
149 SmallArray[NumNonEmpty++] = Ptr; in insert_imp()
155 return insert_imp_big(Ptr); in insert_imp()
162 bool erase_imp(const void * Ptr) { in erase_imp() argument
163 const void *const *P = find_imp(Ptr); in erase_imp()
182 if (*APtr == Ptr) in find_imp()
188 auto *Bucket = FindBucketFor(Ptr); in find_imp()
189 if (*Bucket == Ptr) in find_imp()
375 return insert(Ptr).first;
[all …]

12345678910>>...22