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

1234567891011

/external/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...]
/external/clang/test/CodeGenCXX/
H A Datomic.cpp4 template<typename _Tp> struct Ptr { struct in namespace:PR11411
10 template<typename _Tp> inline void Ptr<_Tp>::f() {
16 void f(Ptr<int> *a) { a->f(); }
H A Darm-cc.cpp4 const char *Ptr; member in class:SMLoc
/external/clang/test/FixIt/
H A Dfixit-vexing-parse-cxx0x.cpp12 typedef int *Ptr; typedef
14 Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
H A Dfixit-vexing-parse.cpp90 typedef void *Ptr; typedef
93 Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
97 Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
/external/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);
/external/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...]
/external/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...]
/external/qemu/distrib/sdl-1.2.15/src/video/maccommon/
H A DSDL_macwm.c88 static Ptr CopyGammaTable (GammaTblPtr pTableGammaIn)
100 BlockMove( (Ptr)pTableGammaIn, (Ptr)pTableGammaOut, tableSize); /* move everything */
102 return (Ptr)pTableGammaOut; /* return whatever we allocated, could be NULL */
116 *(Ptr *)cParam.csParam = (Ptr) &DeviceGammaRec; /* record for gamma */
125 static Ptr GetDeviceGamma (GDHandle hGD)
135 return (Ptr) pTableGammaReturn;
138 static void DisposeGammaTable (Ptr pGamma)
141 DisposePtr((Ptr) pGamm
[all...]
/external/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...]
/external/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...]
/external/clang/test/CXX/temp/temp.param/
H A Dp4.cpp11 template<int *Ptr> struct A5;
20 template<void *Ptr> struct A12;
/external/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...]
/external/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...]

Completed in 689 milliseconds

1234567891011