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

12345678910

/freebsd-10.0-release/contrib/llvm/include/llvm/ADT/
H A DNullablePtr.h27 T *Ptr; member in class:llvm::NullablePtr
29 NullablePtr(T *P = 0) : Ptr(P) {}
31 bool isNull() const { return Ptr == 0; }
32 bool isNonNull() const { return Ptr != 0; }
36 assert(Ptr && "Pointer wasn't checked for null!");
37 return Ptr;
42 assert(Ptr && "Pointer wasn't checked for null!");
43 return Ptr;
46 T *getPtrOrNull() { return Ptr; }
47 const T *getPtrOrNull() const { return Ptr; }
[all...]
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
94 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.0-release/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
123 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
126 static char *AlignPtr(char *Ptr, size_t Alignment);
175 void Deallocate(const void * /*Ptr*/) {}
208 for (char *Ptr = (char*)(Slab+1); Ptr < End; Ptr += sizeof(T)) {
209 Ptr = Allocator.AlignPtr(Ptr, alignO
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/
H A DFormattedStream.cpp23 static unsigned CountColumns(unsigned Column, const char *Ptr, size_t Size) { argument
27 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) {
29 if (*Ptr == '\n' || *Ptr == '\r')
31 else if (*Ptr == '\t')
41 void formatted_raw_ostream::ComputeColumn(const char *Ptr, size_t Size) { argument
45 if (Ptr <= Scanned && Scanned <= Ptr
70 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.cpp33 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
36 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { argument
41 return (char*)(((uintptr_t)Ptr + Alignment - 1) &
102 char *Ptr = AlignPtr(CurPtr, Alignment); local
105 if (Ptr + Size <= End) {
106 CurPtr = Ptr + Size;
110 __msan_allocated_memory(Ptr, Size);
111 return Ptr;
124 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment);
125 assert((uintptr_t)Ptr
[all...]
H A Draw_ostream.cpp288 raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) { argument
293 write_impl(Ptr, Size);
298 return write(Ptr, Size);
308 write_impl(Ptr, BytesToWrite);
312 return write(Ptr + BytesToWrite, BytesRemaining);
314 copy_to_buffer(Ptr + BytesToWrite, BytesRemaining);
320 copy_to_buffer(Ptr, NumBytes);
322 return write(Ptr + NumBytes, Size - NumBytes);
325 copy_to_buffer(Ptr, Size);
330 void raw_ostream::copy_to_buffer(const char *Ptr, size_ argument
524 write_impl(const char *Ptr, size_t Size) argument
701 write_impl(const char *Ptr, size_t Size) argument
740 write_impl(const char *Ptr, size_t Size) argument
784 write_impl(const char *Ptr, size_t Size) argument
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DIdentifierResolver.h81 /// Ptr - There are 3 forms that 'Ptr' represents:
82 /// 1) A single NamedDecl. (Ptr & 0x1 == 0)
84 /// same declaration context. (Ptr & 0x3 == 0x1)
86 /// declaration contexts too. (Ptr & 0x3 == 0x3)
87 uintptr_t Ptr; member in class:clang::IdentifierResolver::iterator
90 /// A single NamedDecl. (Ptr & 0x1 == 0)
92 Ptr = reinterpret_cast<uintptr_t>(D);
93 assert((Ptr & 0x1) == 0 && "Invalid Ptr!");
204 isDeclPtr(void *Ptr) argument
209 toIdDeclInfo(void *Ptr) argument
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DIdentifierResolver.cpp159 void *Ptr = Name.getFETokenInfo<void>(); local
161 if (!Ptr) {
168 if (isDeclPtr(Ptr)) {
171 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
174 IDI = toIdDeclInfo(Ptr);
184 void *Ptr = Name.getFETokenInfo<void>(); local
186 if (!Ptr) {
191 if (isDeclPtr(Ptr)) {
196 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
210 IdDeclInfo *IDI = toIdDeclInfo(Ptr);
225 void *Ptr = Name.getFETokenInfo<void>(); local
246 void *Ptr = Name.getFETokenInfo<void>(); local
268 void *Ptr = Name.getFETokenInfo<void>(); local
335 void *Ptr = Name.getFETokenInfo<void>(); local
428 void *Ptr = Name.getFETokenInfo<void>(); local
[all...]
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclAccessPair.h31 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial member in class:clang::DeclAccessPair
43 return (NamedDecl*) (~Mask & (uintptr_t) Ptr);
46 return AccessSpecifier(Mask & (uintptr_t) Ptr);
56 Ptr = reinterpret_cast<NamedDecl*>(uintptr_t(AS) |
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.0-release/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.0-release/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);
502 inline char getAndAdvanceChar(const char *&Ptr, Token &Tok) { argument
505 if (isObviouslySimpleCharacter(Ptr[0])) return *Ptr++;
508 char C = getCharAndSizeSlow(Ptr, Size, &Tok);
509 Ptr += Size;
517 const char *ConsumeChar(const char *Ptr, unsigne argument
533 getCharAndSize(const char *Ptr, unsigned &Size) argument
[all...]
/freebsd-10.0-release/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,

Completed in 151 milliseconds

12345678910