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

12345678910

/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.h30 T *Ptr; member in class:llvm::OwningPtr
32 explicit OwningPtr(T *P = 0) : Ptr(P) {}
35 delete Ptr;
42 if (P == Ptr) return;
43 T *Tmp = Ptr;
44 Ptr = P;
51 T *Tmp = Ptr;
52 Ptr = 0;
57 assert(Ptr && "Cannot dereference null pointer");
58 return *Ptr;
84 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...]
/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.cpp32 /// AlignPtr - Align Ptr to Alignment bytes, rounding up. Alignment should
35 char *BumpPtrAllocator::AlignPtr(char *Ptr, size_t Alignment) { argument
40 return (char*)(((uintptr_t)Ptr + Alignment - 1) &
100 char *Ptr = AlignPtr(CurPtr, Alignment); local
103 if (Ptr + Size <= End) {
104 CurPtr = Ptr + Size;
105 return Ptr;
118 Ptr = AlignPtr((char*)(NewSlab + 1), Alignment);
119 assert((uintptr_t)Ptr + Size <= (uintptr_t)NewSlab + NewSlab->Size);
120 return 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!");
205 isDeclPtr(void *Ptr) argument
210 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.cpp156 void *Ptr = Name.getFETokenInfo<void>(); local
158 if (!Ptr) {
165 if (isDeclPtr(Ptr)) {
168 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
171 IDI = toIdDeclInfo(Ptr);
181 void *Ptr = Name.getFETokenInfo<void>(); local
183 if (!Ptr) {
188 if (isDeclPtr(Ptr)) {
193 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr);
207 IdDeclInfo *IDI = toIdDeclInfo(Ptr);
222 void *Ptr = Name.getFETokenInfo<void>(); local
243 void *Ptr = Name.getFETokenInfo<void>(); local
265 void *Ptr = Name.getFETokenInfo<void>(); local
324 void *Ptr = Name.getFETokenInfo<void>(); local
417 void *Ptr = Name.getFETokenInfo<void>(); local
[all...]
/external/clang/include/clang/AST/
H A DDeclAccessPair.h30 NamedDecl *Ptr; // we'd use llvm::PointerUnion, but it isn't trivial member in class:clang::DeclAccessPair
42 return (NamedDecl*) (~Mask & (uintptr_t) Ptr);
45 return AccessSpecifier(Mask & (uintptr_t) Ptr);
55 Ptr = reinterpret_cast<NamedDecl*>(uintptr_t(AS) |
H A DDependentDiagnostic.h128 ddiag_iterator() : Ptr(0) {}
129 explicit ddiag_iterator(DependentDiagnostic *Ptr) : Ptr(Ptr) {} argument
137 reference operator*() const { return Ptr; }
140 assert(Ptr && "attempt to increment past end of diag list");
141 Ptr = Ptr->NextDiagnostic;
152 return Ptr == Other.Ptr;
173 DependentDiagnostic *Ptr; member in class:clang::DeclContext::ddiag_iterator
[all...]
H A DDeclarationName.h60 /// upper bits of the Ptr field. This is only used internally.
72 /// Ptr - The lowest two bits are used to express what kind of name
74 /// on the kind of name this is, the upper bits of Ptr may have one
77 /// StoredIdentifier - The name is a normal identifier, and Ptr is
81 /// selector with zero arguments, and Ptr is an IdentifierInfo
85 /// with one argument, and Ptr is an IdentifierInfo pointer
88 /// StoredDeclarationNameExtra - Ptr is actually a pointer to a
92 uintptr_t Ptr; member in class:clang::DeclarationName
95 /// Ptr.
97 return static_cast<StoredNameKind>(Ptr
154 DeclarationName(uintptr_t Ptr) argument
[all...]
H A DDeclFriend.h135 FriendDecl *Ptr; member in class:clang::CXXRecordDecl::friend_iterator
138 explicit friend_iterator(FriendDecl *Ptr) : Ptr(Ptr) {} argument
148 reference operator*() const { return Ptr; }
151 assert(Ptr && "attempt to increment past end of friend list");
152 Ptr = Ptr->getNextFriend();
163 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.h414 static inline char getCharAndSizeNoWarn(const char *Ptr, unsigned &Size, argument
418 if (isObviouslySimpleCharacter(Ptr[0])) {
420 return *Ptr;
424 return getCharAndSizeSlowNoWarn(Ptr, Size, LangOpts);
485 inline char getAndAdvanceChar(const char *&Ptr, Token &Tok) { argument
488 if (isObviouslySimpleCharacter(Ptr[0])) return *Ptr++;
491 char C = getCharAndSizeSlow(Ptr, Size, &Tok);
492 Ptr += Size;
500 const char *ConsumeChar(const char *Ptr, unsigne argument
516 getCharAndSize(const char *Ptr, unsigned &Size) argument
[all...]
/external/llvm/lib/VMCore/
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() };
121 CallInst *IRBuilderBase::CreateLifetimeStart(Value *Ptr, ConstantIn argument
136 CreateLifetimeEnd(Value *Ptr, ConstantInt *Size) argument
[all...]
/external/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 302 milliseconds

12345678910