Searched refs:Ptr (Results 51 - 75 of 419) sorted by relevance

1234567891011>>

/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocator.h63 /// Deallocate \a Ptr to \a Size bytes of memory allocated by this
65 void Deallocate(const void *Ptr, size_t Size) { argument
74 return static_cast<DerivedT *>(this)->Deallocate(Ptr, Size);
89 Deallocate(T *Ptr, size_t Num = 1) { argument
90 Deallocate(static_cast<const void *>(Ptr), Num * sizeof(T));
106 void Deallocate(const void *Ptr, size_t /*Size*/) { argument
107 free(const_cast<void *>(Ptr));
282 void Deallocate(const void *Ptr, size_t Size) { argument
283 __asan_poison_memory_region(Ptr, Size);
292 /// an input pointer \p Ptr i
296 identifyObject(const void *Ptr) argument
322 identifyKnownObject(const void *Ptr) argument
339 identifyKnownAlignedObject(const void *Ptr) argument
428 void *Ptr = PtrAndSize.first; local
486 void *Ptr = PtrAndSize.first; local
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
H A DExternalASTSource.h360 mutable uint64_t Ptr = 0; member in struct:clang::LazyOffsetPtr
364 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) {} argument
366 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) {
369 Ptr = 0;
372 LazyOffsetPtr &operator=(T *Ptr) { argument
373 this->Ptr = reinterpret_cast<uint64_t>(Ptr);
380 Ptr
487 getFromOpaqueValue(void *Ptr) argument
[all...]
H A DDeclFriend.h190 FriendDecl *Ptr; member in class:CXXRecordDecl::friend_iterator
192 explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {} argument
203 reference operator*() const { return Ptr; }
206 assert(Ptr && "attempt to increment past end of friend list");
207 Ptr = Ptr->getNextFriend();
218 return Ptr == Other.Ptr;
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/
H A DStack.cpp36 char *volatile Ptr = &CharOnStack;
37 return Ptr;
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingPort.h62 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
63 (InterlockedCompareExchange64((LONGLONG volatile *)Ptr, (LONGLONG)NewV, \
69 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
70 (InterlockedCompareExchange((LONG volatile *)Ptr, (LONG)NewV, (LONG)OldV) == \
77 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
78 __sync_bool_compare_and_swap(Ptr, OldV, NewV)
84 #define COMPILER_RT_BOOL_CMPXCHG(Ptr, OldV, NewV) \
85 lprofBoolCmpXchg((void **)Ptr, OldV, NewV)
H A DInstrProfilingUtil.c84 uint32_t lprofBoolCmpXchg(void **Ptr, void *OldV, void *NewV) { argument
85 void *R = *Ptr;
87 *Ptr = NewV;
272 const char *Ptr; local
276 for (Level = 0, Ptr = PathStr + 1; Level < PrefixStrip; ++Ptr) {
277 if (*Ptr == '\0')
280 if (!IS_DIR_SEPARATOR(*Ptr))
283 StrippedPathStr = Ptr;
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_tsd_exclusive.cpp31 static void teardownThread(void *Ptr) { argument
32 uptr I = reinterpret_cast<uptr>(Ptr);
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c_bionic.cpp32 CONCATENATE(SCUDO_ALLOCATOR, Ptr) = &SCUDO_ALLOCATOR;
51 CONCATENATE(SCUDO_ALLOCATOR, Ptr) = &SCUDO_ALLOCATOR;
H A Dwrappers_c.cpp31 CONCATENATE(SCUDO_ALLOCATOR, Ptr) = &SCUDO_ALLOCATOR;
H A Dtsd_exclusive.h22 template <class Allocator> void teardownThread(void *Ptr);
104 friend void teardownThread<Allocator>(void *Ptr);
112 template <class Allocator> void teardownThread(void *Ptr) { argument
114 Allocator *Instance = reinterpret_cast<Allocator *>(Ptr);
124 Ptr) == 0))
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallPtrSet.h125 std::pair<const void *const *, bool> insert_imp(const void *Ptr) { argument
132 if (Value == Ptr)
140 *LastTombstone = Ptr;
148 SmallArray[NumNonEmpty++] = Ptr;
154 return insert_imp_big(Ptr);
161 bool erase_imp(const void * Ptr) { argument
162 const void *const *P = find_imp(Ptr);
167 assert(*Loc == Ptr && "broken find!");
175 /// slot which stores Ptr;
176 const void *const * find_imp(const void * Ptr) cons
[all...]
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Utility/
H A DStreamCallback.h29 void write_impl(const char *Ptr, size_t Size) override;
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCFLSteensAliasAnalysis.h75 if (LocA.Ptr == LocB.Ptr)
83 if (isa<Constant>(LocA.Ptr) && isa<Constant>(LocB.Ptr))
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DOwnership.h51 void *Ptr = nullptr; member in class:clang::OpaquePtr
53 explicit OpaquePtr(void *Ptr) : Ptr(Ptr) {} argument
81 return Traits::getFromVoidPointer(Ptr);
85 Ptr = Traits::getAsVoidPointer(P);
88 explicit operator bool() const { return Ptr != nullptr; }
90 void *getAsOpaquePtr() const { return Ptr; }
97 void *Ptr; member in struct:clang::UnionOpaquePtr
104 OpaquePtr<T> get() const { return OpaquePtr<T>::getFromOpaquePtr(Ptr); }
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/
H A DFoldingSet.cpp51 void FoldingSetNodeID::AddPointer(const void *Ptr) { argument
58 AddInteger(reinterpret_cast<uintptr_t>(Ptr));
201 intptr_t Ptr = reinterpret_cast<intptr_t>(NextInBucketPtr); local
202 assert((Ptr & 1) && "Not a bucket pointer");
203 return reinterpret_cast<void**>(Ptr & ~intptr_t(1));
378 void *Ptr = N->getNextInBucket(); local
379 if (!Ptr) return false; // Not in folding set.
385 void *NodeNextPtr = Ptr;
389 if (Node *NodeInBucket = GetNextPtr(Ptr)) {
391 Ptr
[all...]
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterp.h47 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
50 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
53 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
56 bool CheckNull(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
60 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
64 bool CheckRange(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
68 bool CheckConst(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
71 bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
74 bool CheckLoad(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
77 bool CheckStore(InterpState &S, CodePtr OpPC, const Pointer &Ptr);
[all...]
H A DDescriptor.cpp18 static void ctorTy(Block *, char *Ptr, bool, bool, bool, Descriptor *) { argument
19 new (Ptr) T();
22 template <typename T> static void dtorTy(Block *, char *Ptr, Descriptor *) { argument
23 reinterpret_cast<T *>(Ptr)->~T();
34 static void ctorArrayTy(Block *, char *Ptr, bool, bool, bool, Descriptor *D) { argument
36 new (&reinterpret_cast<T *>(Ptr)[I]) T();
41 static void dtorArrayTy(Block *, char *Ptr, Descriptor *D) { argument
43 reinterpret_cast<T *>(Ptr)[I].~T();
56 static void ctorArrayDesc(Block *B, char *Ptr, bool IsConst, bool IsMutable, argument
64 auto *ElemPtr = Ptr
81 dtorArrayDesc(Block *B, char *Ptr, Descriptor *D) argument
117 ctorRecord(Block *B, char *Ptr, bool IsConst, bool IsMutable, bool IsActive, Descriptor *D) argument
140 dtorRecord(Block *B, char *Ptr, Descriptor *D) argument
[all...]
H A DEvalEmitter.cpp110 Composite = [this, &Composite](QualType Ty, const Pointer &Ptr, APValue &R) {
115 auto *Record = Ptr.getRecord();
123 const Pointer &FP = Ptr.atField(F.Offset);
138 unsigned NV = Ptr.isBaseClass() ? 0 : Record->getNumVirtualBases();
145 const Pointer &FP = Ptr.atField(FD->Offset);
158 const Pointer &BP = Ptr.atField(BD->Offset);
165 const Pointer &VP = Ptr.atField(VD->Offset);
172 const size_t NumElems = Ptr.getNumElems();
179 const Pointer &EP = Ptr.atIndex(I);
192 const auto &Ptr local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp177 /// Apply 'Func' to Ptr. If this returns nullptr, introspect the pointer's
182 evaluateBitcastFromPtr(Constant *Ptr, const DataLayout &DL, argument
186 while (!(Val = Func(Ptr))) {
190 Type *Ty = cast<PointerType>(Ptr->getType())->getElementType();
198 Ptr = ConstantExpr::getGetElementPtr(Ty, Ptr, IdxList);
199 if (auto *FoldedPtr = ConstantFoldConstant(Ptr, DL, TLI))
200 Ptr = FoldedPtr;
215 auto findMemLoc = [this](Constant *Ptr) {
217 MutatedMemory.find(Ptr);
341 Constant *Ptr = getVal(SI->getOperand(1)); local
450 Constant *Ptr = getVal(LI->getOperand(0)); local
501 Constant *Ptr = getVal(MSI->getDest()); local
528 Value *Ptr = PtrArg->stripPointerCasts(); local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp61 Value *IRBuilderBase::getCastedInt8PtrValue(Value *Ptr) { argument
62 auto *PT = cast<PointerType>(Ptr->getType());
64 return Ptr;
68 BitCastInst *BCI = new BitCastInst(Ptr, PT, "");
99 CallInst *IRBuilderBase::CreateMemSet(Value *Ptr, Value *Val, Value *Size, argument
103 Ptr = getCastedInt8PtrValue(Ptr);
104 Value *Ops[] = {Ptr, Val, Size, getInt1(isVolatile)};
105 Type *Tys[] = { Ptr->getType(), Size->getType() };
128 Value *Ptr, Valu
127 CreateElementUnorderedAtomicMemSet( Value *Ptr, Value *Val, Value *Size, Align Alignment, uint32_t ElementSize, MDNode *TBAATag, MDNode *ScopeTag, MDNode *NoAliasTag) argument
406 CreateLifetimeStart(Value *Ptr, ConstantInt *Size) argument
422 CreateLifetimeEnd(Value *Ptr, ConstantInt *Size) argument
438 CreateInvariantStart(Value *Ptr, ConstantInt *Size) argument
476 CreateMaskedLoad(Value *Ptr, unsigned Align, Value *Mask, Value *PassThru, const Twine &Name) argument
497 CreateMaskedStore(Value *Val, Value *Ptr, unsigned Align, Value *Mask) argument
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolutionAliasAnalysis.cpp34 const SCEV *AS = SE.getSCEV(const_cast<Value *>(LocA.Ptr));
35 const SCEV *BS = SE.getSCEV(const_cast<Value *>(LocB.Ptr));
83 if ((AO && AO != LocA.Ptr) || (BO && BO != LocB.Ptr))
84 if (alias(MemoryLocation(AO ? AO : LocA.Ptr,
87 MemoryLocation(BO ? BO : LocB.Ptr,
H A DLoopAccessAnalysis.cpp147 Value *Ptr, Value *OrigPtr) {
148 const SCEV *OrigSCEV = PSE.getSCEV(Ptr);
153 PtrToStride.find(OrigPtr ? OrigPtr : Ptr);
166 auto *Expr = PSE.getSCEV(Ptr);
190 void RuntimePointerChecking::insert(Loop *Lp, Value *Ptr, bool WritePtr, argument
195 const SCEV *Sc = replaceSymbolicStrideSCEV(PSE, Strides, Ptr);
226 Ptr->getType()->getPointerElementType()->getScalarSizeInBits() / 8;
231 Pointers.emplace_back(Ptr, ScStart, ScEnd, WritePtr, DepSetId, ASId, Sc);
511 Value *Ptr = const_cast<Value*>(Loc.Ptr); local
145 replaceSymbolicStrideSCEV(PredicatedScalarEvolution &PSE, const ValueToValueMap &PtrToStride, Value *Ptr, Value *OrigPtr) argument
520 Value *Ptr = const_cast<Value*>(Loc.Ptr); local
620 hasComputableBounds(PredicatedScalarEvolution &PSE, const ValueToValueMap &Strides, Value *Ptr, Loop *L, bool Assume) argument
641 isNoWrap(PredicatedScalarEvolution &PSE, const ValueToValueMap &Strides, Value *Ptr, Loop *L) argument
661 Value *Ptr = Access.getPointer(); local
724 Value *Ptr = A.getValue(); local
859 Value *Ptr = AV.getValue(); local
936 isInBoundsGep(Value *Ptr) argument
944 isNoWrapAddRec(Value *Ptr, const SCEVAddRecExpr *AR, PredicatedScalarEvolution &PSE, const Loop *L) argument
991 getPtrStride(PredicatedScalarEvolution &PSE, Value *Ptr, const Loop *Lp, const ValueToValueMap &StridesMap, bool Assume, bool ShouldCheckWrap) argument
1713 getInstructionsForAccess(Value *Ptr, bool isWrite) const argument
1930 Value *Ptr = ST->getPointerOperand(); local
1961 Value *Ptr = LD->getPointerOperand(); local
2149 Value *Ptr = PtrRtChecking.Pointers[CG->Members[0]].PointerValue; local
2283 Value *Ptr = nullptr; local
[all...]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/
H A DPtrState.h1 //===- PtrState.h - ARC State for a Ptr -------------------------*- C++ -*-===//
183 void HandlePotentialUse(BasicBlock *BB, Instruction *Inst, const Value *Ptr,
185 bool HandlePotentialAlterRefCount(Instruction *Inst, const Value *Ptr,
201 void HandlePotentialUse(Instruction *Inst, const Value *Ptr,
204 bool HandlePotentialAlterRefCount(Instruction *Inst, const Value *Ptr,
/freebsd-12-stable/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-fdr-dump.cpp83 for (auto &Ptr : Records)
84 if (auto E = Ptr->apply(RP))
95 for (auto &Ptr : Records)
96 if (auto E = Ptr->apply(BI))
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h452 CallInst *CreateMemSet(Value *Ptr, Value *Val, uint64_t Size, argument
456 return CreateMemSet(Ptr, Val, getInt64(Size), Align, isVolatile,
460 CallInst *CreateMemSet(Value *Ptr, Value *Val, Value *Size, MaybeAlign Align,
475 Value *Ptr, Value *Val, uint64_t Size, unsigned Alignment,
479 return CreateElementUnorderedAtomicMemSet(Ptr, Val, getInt64(Size),
484 CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Value *Val, argument
490 return CreateElementUnorderedAtomicMemSet(Ptr, Val, getInt64(Size),
499 Value *Ptr, Value *Val, Value *Size, unsigned Alignment,
503 return CreateElementUnorderedAtomicMemSet(Ptr, Val, Size, Align(Alignment),
508 CallInst *CreateElementUnorderedAtomicMemSet(Value *Ptr, Valu
1669 CreateLoad(Type *Ty, Value *Ptr, const char *Name) argument
1673 CreateLoad(Type *Ty, Value *Ptr, const Twine &Name = �) argument
1677 CreateLoad(Type *Ty, Value *Ptr, bool isVolatile, const Twine &Name = �) argument
1683 CreateLoad(Value *Ptr, const char *Name) argument
1688 CreateLoad(Value *Ptr, const Twine &Name = �) argument
1693 CreateLoad(Value *Ptr, bool isVolatile, const Twine &Name = �) argument
1698 CreateStore(Value *Val, Value *Ptr, bool isVolatile = false) argument
1707 CreateAlignedLoad(Type *Ty, Value *Ptr, unsigned Align, const char *Name) argument
1711 CreateAlignedLoad(Type *Ty, Value *Ptr, MaybeAlign Align, const char *Name) argument
1719 CreateAlignedLoad(Type *Ty, Value *Ptr, unsigned Align, const Twine &Name = �) argument
1723 CreateAlignedLoad(Type *Ty, Value *Ptr, MaybeAlign Align, const Twine &Name = �) argument
1731 CreateAlignedLoad(Type *Ty, Value *Ptr, unsigned Align, bool isVolatile, const Twine &Name = �) argument
1735 CreateAlignedLoad(Type *Ty, Value *Ptr, MaybeAlign Align, bool isVolatile, const Twine &Name = �) argument
1743 CreateAlignedLoad(Value *Ptr, unsigned Align, const char *Name) argument
1748 CreateAlignedLoad(Value *Ptr, unsigned Align, const Twine &Name = �) argument
1754 CreateAlignedLoad(Value *Ptr, unsigned Align, bool isVolatile, const Twine &Name = �) argument
1760 CreateAlignedLoad(Value *Ptr, MaybeAlign Align, const char *Name) argument
1765 CreateAlignedLoad(Value *Ptr, MaybeAlign Align, const Twine &Name = �) argument
1771 CreateAlignedLoad(Value *Ptr, MaybeAlign Align, bool isVolatile, const Twine &Name = �) argument
1777 CreateAlignedStore(Value *Val, Value *Ptr, unsigned Align, bool isVolatile = false) argument
1783 CreateAlignedStore(Value *Val, Value *Ptr, MaybeAlign Align, bool isVolatile = false) argument
1794 CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New, AtomicOrdering SuccessOrdering, AtomicOrdering FailureOrdering, SyncScope::ID SSID = SyncScope::System) argument
1802 CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val, AtomicOrdering Ordering, SyncScope::ID SSID = SyncScope::System) argument
1808 CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &Name = �) argument
1813 CreateGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, const Twine &Name = �) argument
1827 CreateInBoundsGEP(Value *Ptr, ArrayRef<Value *> IdxList, const Twine &Name = �) argument
1832 CreateInBoundsGEP(Type *Ty, Value *Ptr, ArrayRef<Value *> IdxList, const Twine &Name = �) argument
1847 CreateGEP(Value *Ptr, Value *Idx, const Twine &Name = �) argument
1851 CreateGEP(Type *Ty, Value *Ptr, Value *Idx, const Twine &Name = �) argument
1858 CreateInBoundsGEP(Type *Ty, Value *Ptr, Value *Idx, const Twine &Name = �) argument
1866 CreateConstGEP1_32(Value *Ptr, unsigned Idx0, const Twine &Name = �) argument
1870 CreateConstGEP1_32(Type *Ty, Value *Ptr, unsigned Idx0, const Twine &Name = �) argument
1880 CreateConstInBoundsGEP1_32(Type *Ty, Value *Ptr, unsigned Idx0, const Twine &Name = �) argument
1890 CreateConstGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name = �) argument
1903 CreateConstInBoundsGEP2_32(Type *Ty, Value *Ptr, unsigned Idx0, unsigned Idx1, const Twine &Name = �) argument
1916 CreateConstGEP1_64(Type *Ty, Value *Ptr, uint64_t Idx0, const Twine &Name = �) argument
1926 CreateConstGEP1_64(Value *Ptr, uint64_t Idx0, const Twine &Name = �) argument
1930 CreateConstInBoundsGEP1_64(Type *Ty, Value *Ptr, uint64_t Idx0, const Twine &Name = �) argument
1940 CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0, const Twine &Name = �) argument
1945 CreateConstGEP2_64(Type *Ty, Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name = �) argument
1958 CreateConstGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name = �) argument
1963 CreateConstInBoundsGEP2_64(Type *Ty, Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name = �) argument
1976 CreateConstInBoundsGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1, const Twine &Name = �) argument
1981 CreateStructGEP(Type *Ty, Value *Ptr, unsigned Idx, const Twine &Name = �) argument
1986 CreateStructGEP(Value *Ptr, unsigned Idx, const Twine &Name = �) argument
2625 CreateLaunderInvariantGroup(Value *Ptr) argument
2652 CreateStripInvariantGroup(Value *Ptr) argument
[all...]

Completed in 311 milliseconds

1234567891011>>