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

12345678910

/freebsd-10-stable/contrib/llvm/include/llvm/ADT/
H A DOwningPtr.h31 T *Ptr; member in class:llvm::OwningPtr
33 explicit OwningPtr(T *P = 0) : Ptr(P) {}
36 OwningPtr(OwningPtr &&Other) : Ptr(Other.take()) {}
45 delete Ptr;
52 if (P == Ptr) return;
53 T *Tmp = Ptr;
54 Ptr = P;
61 T *Tmp = Ptr;
62 Ptr = 0;
67 assert(Ptr
95 T *Ptr; member in class:llvm::OwningArrayPtr
[all...]
H A DSmallPtrSet.h100 bool insert_imp(const void * Ptr);
106 bool erase_imp(const void * Ptr);
108 bool count_imp(const void * Ptr) const {
113 if (*APtr == Ptr)
119 return *FindBucketFor(Ptr) == Ptr;
125 const void * const *FindBucketFor(const void *Ptr) const;
253 bool insert(PtrType Ptr) {
254 return insert_imp(PtrTraits::getAsVoidPointer(Ptr));
259 bool erase(PtrType Ptr) {
[all...]
/freebsd-10-stable/contrib/llvm/include/llvm/Support/
H A DSMLoc.h24 const char *Ptr; member in class:llvm::SMLoc
26 SMLoc() : Ptr(0) {}
28 bool isValid() const { return Ptr != 0; }
30 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
31 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
33 const char *getPointer() const { return Ptr; }
35 static SMLoc getFromPointer(const char *Ptr) { argument
37 L.Ptr
[all...]
H A DManagedStatic.h32 static void call(void * Ptr) { delete (T*)Ptr; } argument
35 static void call(void * Ptr) { delete[] (T*)Ptr; } argument
43 mutable void *Ptr; member in class:llvm::ManagedStaticBase
50 bool isConstructed() const { return Ptr != 0; }
66 void* tmp = Ptr;
71 return *static_cast<C*>(Ptr);
74 void* tmp = Ptr;
79 return static_cast<C*>(Ptr);
[all...]
H A DArrayRecycler.h54 void push(unsigned Idx, T *Ptr) { argument
55 assert(Ptr && "Cannot recycle NULL pointer");
58 FreeList *Entry = reinterpret_cast<FreeList*>(Ptr);
105 while (T *Ptr = pop(Bucket.size() - 1))
106 Allocator.Deallocate(Ptr);
126 if (T *Ptr = pop(Cap.getBucket()))
127 return Ptr;
136 void deallocate(Capacity Cap, T *Ptr) { argument
137 push(Cap.getBucket(), Ptr);
H A Draw_os_ostream.h29 virtual void write_impl(const char *Ptr, size_t Size) LLVM_OVERRIDE;
H A DAllocator.h46 void Deallocate(const void *Ptr) { free(const_cast<void*>(Ptr)); } argument
126 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
129 static char *AlignPtr(char *Ptr, size_t Alignment);
176 void Deallocate(const void * /*Ptr*/) {}
211 for (char *Ptr = (char*)(Slab+1); Ptr < End; Ptr += sizeof(T)) {
212 Ptr = Allocator.AlignPtr(Ptr, alignO
[all...]
/freebsd-10-stable/contrib/llvm/lib/Support/
H A DFormattedStream.cpp23 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) {
47 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { argument
51 if (Ptr <= Scanned && Scanned <= Ptr + Size)
54 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr));
56 UpdatePosition(Position, Ptr, Siz
75 write_impl(const char *Ptr, size_t Size) argument
[all...]
H A Draw_os_ostream.cpp26 void raw_os_ostream::write_impl(const char *Ptr, size_t Size) { argument
27 OS.write(Ptr, Size);
H A DTwine.cpp58 void Twine::printOneChild(raw_ostream &OS, Child Ptr, argument
64 Ptr.twine->print(OS);
67 OS << Ptr.cString;
70 OS << *Ptr.stdString;
73 OS << *Ptr.stringRef;
76 OS << Ptr.character;
79 OS << Ptr.decUI;
82 OS << Ptr.decI;
85 OS << *Ptr.decUL;
88 OS << *Ptr
102 printOneChildRepr(raw_ostream &OS, Child Ptr, NodeKind Kind) const argument
[all...]
H A DManagedStatic.cpp27 if (Ptr == 0) {
37 Ptr = tmp;
48 assert(Ptr == 0 && DeleterFn == 0 && Next == 0 &&
50 Ptr = Creator ? Creator() : 0;
68 DeleterFn(Ptr);
71 Ptr = 0;
H A Dcircular_raw_ostream.cpp18 void circular_raw_ostream::write_impl(const char *Ptr, size_t Size) { argument
20 TheStream->write(Ptr, Size);
28 memcpy(Cur, Ptr, Bytes);
H A DAllocator.cpp37 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
40 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { argument
45 return (char*)(((uintptr_t)Ptr + Alignment - 1) &
106 char *Ptr = AlignPtr(CurPtr, Alignment); local
109 if (Ptr + Size <= End) {
110 CurPtr = Ptr + Size;
114 __msan_allocated_memory(Ptr, Size);
115 return Ptr;
128 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment);
129 assert((uintptr_t)Ptr
[all...]
H A Draw_ostream.cpp289 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) { argument
294 write_impl(Ptr, Size);
299 return write(Ptr, Size);
309 write_impl(Ptr, BytesToWrite);
313 return write(Ptr + BytesToWrite, BytesRemaining);
315 copy_to_buffer(Ptr + BytesToWrite, BytesRemaining);
321 copy_to_buffer(Ptr, NumBytes);
323 return write(Ptr + NumBytes, Size - NumBytes);
326 copy_to_buffer(Ptr, Size);
331 void raw_ostream::copy_to_buffer(const char *Ptr, size_ argument
508 write_impl(const char *Ptr, size_t Size) argument
685 write_impl(const char *Ptr, size_t Size) argument
724 write_impl(const char *Ptr, size_t Size) argument
768 write_impl(const char *Ptr, size_t Size) argument
[all...]
H A DSmallPtrSet.cpp37 bool SmallPtrSetImpl::insert_imp(const void * Ptr) { argument
42 if (*APtr == Ptr)
47 SmallArray[NumElements++] = Ptr;
63 const void **Bucket = const_cast<const void**>(FindBucketFor(Ptr));
64 if (*Bucket == Ptr) return false; // Already inserted, good.
69 *Bucket = Ptr;
74 bool SmallPtrSetImpl::erase_imp(const void * Ptr) {
79 if (*APtr == Ptr) {
91 void **Bucket = const_cast<void**>(FindBucketFor(Ptr));
92 if (*Bucket != Ptr) retur
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Sema/
H A DIdentifierResolver.h76 /// Ptr - There are 3 forms that 'Ptr' represents:
77 /// 1) A single NamedDecl. (Ptr & 0x1 == 0)
79 /// same declaration context. (Ptr & 0x3 == 0x1)
81 /// declaration contexts too. (Ptr & 0x3 == 0x3)
82 uintptr_t Ptr; member in class:clang::IdentifierResolver::iterator
85 /// A single NamedDecl. (Ptr & 0x1 == 0)
87 Ptr = reinterpret_cast<uintptr_t>(D);
88 assert((Ptr & 0x1) == 0 && "Invalid Ptr!");
194 isDeclPtr(void *Ptr) argument
199 toIdDeclInfo(void *Ptr) argument
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclAccessPair.h31 uintptr_t Ptr; // we'd use llvm::PointerUnion, but it isn't trivial member in class:clang::DeclAccessPair
43 return reinterpret_cast<NamedDecl*>(~Mask & Ptr);
46 return AccessSpecifier(Mask & Ptr);
56 Ptr = uintptr_t(AS) | reinterpret_cast<uintptr_t>(D);
H A DDependentDiagnostic.h126 ddiag_iterator() : Ptr(0) {}
127 explicit ddiag_iterator(DependentDiagnostic *Ptr) : Ptr(Ptr) {} argument
135 reference operator*() const { return Ptr; }
138 assert(Ptr && "attempt to increment past end of diag list");
139 Ptr = Ptr->NextDiagnostic;
150 return Ptr == Other.Ptr;
171 DependentDiagnostic *Ptr; member in class:clang::DeclContext::ddiag_iterator
[all...]
H A DDeclarationName.h64 /// upper bits of the Ptr field. This is only used internally.
76 /// Ptr - The lowest two bits are used to express what kind of name
78 /// on the kind of name this is, the upper bits of Ptr may have one
81 /// StoredIdentifier - The name is a normal identifier, and Ptr is
85 /// selector with zero arguments, and Ptr is an IdentifierInfo
89 /// with one argument, and Ptr is an IdentifierInfo pointer
92 /// StoredDeclarationNameExtra - Ptr is actually a pointer to a
96 uintptr_t Ptr; member in class:clang::DeclarationName
99 /// Ptr.
101 return static_cast<StoredNameKind>(Ptr
158 DeclarationName(uintptr_t Ptr) argument
[all...]
H A DDeclFriend.h173 FriendDecl *Ptr; member in class:CXXRecordDecl::friend_iterator
176 explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {} argument
186 reference operator*() const { return Ptr; }
189 assert(Ptr && "attempt to increment past end of friend list");
190 Ptr = Ptr->getNextFriend();
201 return Ptr == Other.Ptr;
[all...]
H A DExternalASTSource.h302 mutable uint64_t Ptr; member in struct:clang::LazyOffsetPtr
305 LazyOffsetPtr() : Ptr(0) { }
307 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) { } argument
308 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) {
311 Ptr = 0;
314 LazyOffsetPtr &operator=(T *Ptr) { argument
315 this->Ptr = reinterpret_cast<uint64_t>(Ptr);
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/Sema/
H A DIdentifierResolver.cpp145 void *Ptr = Name.getFETokenInfo<void>(); local
147 if (!Ptr) {
154 if (isDeclPtr(Ptr)) {
157 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
160 IDI = toIdDeclInfo(Ptr);
170 void *Ptr = Name.getFETokenInfo<void>(); local
172 if (!Ptr) {
177 if (isDeclPtr(Ptr)) {
182 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
196 IdDeclInfo *IDI = toIdDeclInfo(Ptr);
211 void *Ptr = Name.getFETokenInfo<void>(); local
230 void *Ptr = Name.getFETokenInfo<void>(); local
297 void *Ptr = Name.getFETokenInfo<void>(); local
390 void *Ptr = Name.getFETokenInfo<void>(); local
[all...]
/freebsd-10-stable/contrib/llvm/lib/IR/
H A DIRBuilder.cpp42 Value *IRBuilderBase::getCastedInt8PtrValue(Value *Ptr) { argument
43 PointerType *PT = cast<PointerType>(Ptr->getType());
45 return Ptr;
49 BitCastInst *BCI = new BitCastInst(Ptr, PT, "");
64 CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, argument
66 Ptr = getCastedInt8PtrValue(Ptr);
67 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) };
68 Type *Tys[] = { Ptr->getType(), Size->getType() };
125 CallInst *IRBuilderBase::CreateLifetimeStart(Value *Ptr, ConstantIn argument
140 CreateLifetimeEnd(Value *Ptr, ConstantInt *Size) argument
[all...]
/freebsd-10-stable/contrib/llvm/include/llvm/Analysis/
H A DLoads.h34 /// the memory address *Ptr locally available within a small number of
39 /// find something that invalidates *Ptr or provides it, ScanFrom would be
49 Value *FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB,
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/Lex/
H A DLexer.h426 static inline char getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, argument
430 if (isObviouslySimpleCharacter(Ptr[0])) {
432 return *Ptr;
436 return getCharAndSizeSlowNoWarn(Ptr, Size, LangOpts);
504 inline char getAndAdvanceChar(const char *&Ptr, Token &Tok) { argument
507 if (isObviouslySimpleCharacter(Ptr[0])) return *Ptr++;
510 char C = getCharAndSizeSlow(Ptr, Size, &Tok);
511 Ptr += Size;
519 const char *ConsumeChar(const char *Ptr, unsigne argument
535 getCharAndSize(const char *Ptr, unsigned &Size) argument
[all...]

Completed in 201 milliseconds

12345678910