/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | OwningPtr.h | 30 T *Ptr; variable 32 explicit OwningPtr(T *P = 0) : Ptr(P) {} in Ptr() function 35 delete Ptr; in ~OwningPtr() local 42 if (P == Ptr) return; 43 T *Tmp = Ptr; 44 Ptr = P; 51 T *Tmp = Ptr; in take() 52 Ptr = 0; in take() 57 assert(Ptr && "Cannot dereference null pointer"); 58 return *Ptr; [all …]
|
D | NullablePtr.h | 27 T *Ptr; variable 29 NullablePtr(T *P = 0) : Ptr(P) {} in Ptr() function 31 bool isNull() const { return Ptr == 0; } in isNull() 32 bool isNonNull() const { return Ptr != 0; } in isNonNull() 36 assert(Ptr && "Pointer wasn't checked for null!"); in get() 37 return Ptr; in get() 42 assert(Ptr && "Pointer wasn't checked for null!"); in get() 43 return Ptr; in get() 46 T *getPtrOrNull() { return Ptr; } in getPtrOrNull() 47 const T *getPtrOrNull() const { return Ptr; } in getPtrOrNull()
|
D | SmallPtrSet.h | 104 bool insert_imp(const void * Ptr); 110 bool erase_imp(const void * Ptr); 112 bool count_imp(const void * Ptr) const { in count_imp() argument 117 if (*APtr == Ptr) in count_imp() 123 return *FindBucketFor(Ptr) == Ptr; in count_imp() 129 unsigned Hash(const void *Ptr) const { in Hash() argument 130 return static_cast<unsigned>(((uintptr_t)Ptr >> 4) & (CurArraySize-1)); in Hash() 132 const void * const *FindBucketFor(const void *Ptr) const; 252 bool insert(PtrType Ptr) { 253 return insert_imp(PtrTraits::getAsVoidPointer(Ptr)); [all …]
|
/external/libcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iter.ops/insert.iter.op=/ |
D | rv_value.pass.cpp | 59 typedef std::unique_ptr<int, do_nothing> Ptr; in main() typedef 60 typedef std::vector<Ptr> C; in main() 64 c1.push_back(Ptr(x+i)); in main() 67 c2.push_back(Ptr(x+i)); in main() 68 insert3at(c2, c2.begin(), Ptr(x+3), Ptr(x+4), Ptr(x+5)); in main() 69 test(std::move(c1), 0, Ptr(x+3), Ptr(x+4), Ptr(x+5), c2); in main() 72 c1.push_back(Ptr(x+i)); in main() 75 c2.push_back(Ptr(x+i)); in main() 76 insert3at(c2, c2.begin()+1, Ptr(x+3), Ptr(x+4), Ptr(x+5)); in main() 77 test(std::move(c1), 1, Ptr(x+3), Ptr(x+4), Ptr(x+5), c2); in main() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Twine.cpp | 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() argument 63 Ptr.twine->print(OS); in printOneChild() 66 OS << Ptr.cString; in printOneChild() 69 OS << *Ptr.stdString; in printOneChild() 72 OS << *Ptr.stringRef; in printOneChild() 75 OS << *Ptr.smallString; in printOneChild() 78 OS << *Ptr.formatvObject; in printOneChild() 81 OS << Ptr.character; in printOneChild() 84 OS << Ptr.decUI; in printOneChild() 87 OS << Ptr.decI; in printOneChild() [all …]
|
/external/llvm/lib/Support/ |
D | Twine.cpp | 51 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() argument 57 Ptr.twine->print(OS); in printOneChild() 60 OS << Ptr.cString; in printOneChild() 63 OS << *Ptr.stdString; in printOneChild() 66 OS << *Ptr.stringRef; in printOneChild() 69 OS << *Ptr.smallString; in printOneChild() 72 OS << Ptr.character; in printOneChild() 75 OS << Ptr.decUI; in printOneChild() 78 OS << Ptr.decI; in printOneChild() 81 OS << *Ptr.decUL; in printOneChild() [all …]
|
D | FormattedStream.cpp | 24 static void UpdatePosition(std::pair<unsigned, unsigned> &Position, const char *Ptr, size_t Size) { in UpdatePosition() argument 30 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { in UpdatePosition() 32 switch (*Ptr) { in UpdatePosition() 48 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { in ComputePosition() argument 52 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition() 55 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); in ComputePosition() 57 UpdatePosition(Position, Ptr, Size); in ComputePosition() 60 Scanned = Ptr + Size; in ComputePosition() 76 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) { in write_impl() argument 78 ComputePosition(Ptr, Size); in write_impl() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Twine.cpp | 58 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() argument 64 Ptr.twine->print(OS); in printOneChild() 67 OS << Ptr.cString; in printOneChild() 70 OS << *Ptr.stdString; in printOneChild() 73 OS << *Ptr.stringRef; in printOneChild() 76 OS << Ptr.character; in printOneChild() 79 OS << Ptr.decUI; in printOneChild() 82 OS << Ptr.decI; in printOneChild() 85 OS << *Ptr.decUL; in printOneChild() 88 OS << *Ptr.decL; in printOneChild() [all …]
|
D | FormattedStream.cpp | 23 static unsigned CountColumns(unsigned Column, const char *Ptr, size_t Size) { in CountColumns() argument 27 for (const char *End = Ptr + Size; Ptr != End; ++Ptr) { in CountColumns() 29 if (*Ptr == '\n' || *Ptr == '\r') in CountColumns() 31 else if (*Ptr == '\t') in CountColumns() 41 void formatted_raw_ostream::ComputeColumn(const char *Ptr, size_t Size) { in ComputeColumn() argument 45 if (Ptr <= Scanned && Scanned <= Ptr + Size) { in ComputeColumn() 49 Size - (Scanned - Ptr)); in ComputeColumn() 51 ColumnScanned = CountColumns(ColumnScanned, Ptr, Size); in ComputeColumn() 54 Scanned = Ptr + Size; in ComputeColumn() 70 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) { in write_impl() argument [all …]
|
/external/llvm/test/Analysis/BasicAA/ |
D | args-rets-allocas-loads.ll | 171 ; CHECK-NEXT: Both ModRef: Ptr: double* %arg_a0 <-> %normal_ret_a0 = call double* @normal_returne… 172 ; CHECK-NEXT: Both ModRef: Ptr: double* %arg_a1 <-> %normal_ret_a0 = call double* @normal_returne… 173 ; CHECK-NEXT: NoModRef: Ptr: double* %noalias_arg_a0 <-> %normal_ret_a0 = call double* @normal_… 174 ; CHECK-NEXT: NoModRef: Ptr: double* %noalias_arg_a1 <-> %normal_ret_a0 = call double* @normal_… 175 ; CHECK-NEXT: Both ModRef: Ptr: double** %indirect_a0 <-> %normal_ret_a0 = call double* @normal_r… 176 ; CHECK-NEXT: Both ModRef: Ptr: double** %indirect_a1 <-> %normal_ret_a0 = call double* @normal_r… 177 ; CHECK-NEXT: Both ModRef: Ptr: double* %escape_alloca_a0 <-> %normal_ret_a0 = call double* @norm… 178 ; CHECK-NEXT: Both ModRef: Ptr: double* %escape_alloca_a1 <-> %normal_ret_a0 = call double* @norm… 179 ; CHECK-NEXT: NoModRef: Ptr: double* %noescape_alloca_a0 <-> %normal_ret_a0 = call double* @nor… 180 ; CHECK-NEXT: NoModRef: Ptr: double* %noescape_alloca_a1 <-> %normal_ret_a0 = call double* @nor… [all …]
|
/external/swiftshader/third_party/LLVM/test/Analysis/BasicAA/ |
D | args-rets-allocas-loads.ll | 171 ; CHECK-NEXT: Both ModRef: Ptr: double* %arg_a0 <-> %normal_ret_a0 = call double* @normal_returne… 172 ; CHECK-NEXT: Both ModRef: Ptr: double* %arg_a1 <-> %normal_ret_a0 = call double* @normal_returne… 173 ; CHECK-NEXT: NoModRef: Ptr: double* %noalias_arg_a0 <-> %normal_ret_a0 = call double* @normal_… 174 ; CHECK-NEXT: NoModRef: Ptr: double* %noalias_arg_a1 <-> %normal_ret_a0 = call double* @normal_… 175 ; CHECK-NEXT: Both ModRef: Ptr: double** %indirect_a0 <-> %normal_ret_a0 = call double* @normal_r… 176 ; CHECK-NEXT: Both ModRef: Ptr: double** %indirect_a1 <-> %normal_ret_a0 = call double* @normal_r… 177 ; CHECK-NEXT: Both ModRef: Ptr: double* %escape_alloca_a0 <-> %normal_ret_a0 = call double* @norm… 178 ; CHECK-NEXT: Both ModRef: Ptr: double* %escape_alloca_a1 <-> %normal_ret_a0 = call double* @norm… 179 ; CHECK-NEXT: NoModRef: Ptr: double* %noescape_alloca_a0 <-> %normal_ret_a0 = call double* @nor… 180 ; CHECK-NEXT: NoModRef: Ptr: double* %noescape_alloca_a1 <-> %normal_ret_a0 = call double* @nor… [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | SMLoc.h | 22 const char *Ptr; variable 24 SMLoc() : Ptr(0) {} in SMLoc() 25 SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {} in SMLoc() 27 bool isValid() const { return Ptr != 0; } in isValid() 29 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 30 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 32 const char *getPointer() const { return Ptr; } in getPointer() 34 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer() argument 36 L.Ptr = Ptr; in getFromPointer()
|
D | ManagedStatic.h | 31 static void call(void * Ptr) { delete (T*)Ptr; } in call() 34 static void call(void * Ptr) { delete[] (T*)Ptr; } 42 mutable void *Ptr; 49 bool isConstructed() const { return Ptr != 0; } 65 void* tmp = Ptr; 69 return *static_cast<C*>(Ptr); 72 void* tmp = Ptr; 76 return static_cast<C*>(Ptr); 79 void* tmp = Ptr; 83 return *static_cast<C*>(Ptr); [all …]
|
/external/clang/include/clang/Sema/ |
D | IdentifierResolver.h | 82 uintptr_t Ptr; variable 87 Ptr = reinterpret_cast<uintptr_t>(D); in iterator() 88 assert((Ptr & 0x1) == 0 && "Invalid Ptr!"); in iterator() 93 Ptr = reinterpret_cast<uintptr_t>(I) | 0x1; in iterator() 96 bool isIterator() const { return (Ptr & 0x1); } in isIterator() 100 return reinterpret_cast<BaseIter>(Ptr & ~0x3); in getIterator() 107 iterator() : Ptr(0) {} in iterator() 113 return reinterpret_cast<NamedDecl*>(Ptr); 117 return Ptr == RHS.Ptr; 120 return Ptr != RHS.Ptr; [all …]
|
/external/clang/include/clang/AST/ |
D | DeclarationName.h | 99 uintptr_t Ptr; variable 104 return static_cast<StoredNameKind>(Ptr & PtrMask); in getStoredNameKind() 112 return reinterpret_cast<DeclarationNameExtra *>(Ptr & ~PtrMask); in getExtra() 121 return reinterpret_cast<CXXSpecialName *>(Ptr & ~PtrMask); in getAsCXXSpecialName() 128 return reinterpret_cast<CXXOperatorIdName *>(Ptr & ~PtrMask); in getAsCXXOperatorIdName() 134 return reinterpret_cast<CXXLiteralOperatorIdName *>(Ptr & ~PtrMask); in getAsCXXLiteralOperatorIdName() 141 : Ptr(reinterpret_cast<uintptr_t>(Name)) { in DeclarationName() 142 assert((Ptr & PtrMask) == 0 && "Improperly aligned CXXSpecialName"); in DeclarationName() 143 Ptr |= StoredDeclarationNameExtra; in DeclarationName() 149 : Ptr(reinterpret_cast<uintptr_t>(Name)) { in DeclarationName() [all …]
|
D | DependentDiagnostic.h | 126 ddiag_iterator() : Ptr(nullptr) {} in ddiag_iterator() 127 explicit ddiag_iterator(DependentDiagnostic *Ptr) : Ptr(Ptr) {} in ddiag_iterator() 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; 154 return Ptr != Other.Ptr; 171 DependentDiagnostic *Ptr;
|
D | ExternalASTSource.h | 327 mutable uint64_t Ptr; member 330 LazyOffsetPtr() : Ptr(0) { } in LazyOffsetPtr() 332 explicit LazyOffsetPtr(T *Ptr) : Ptr(reinterpret_cast<uint64_t>(Ptr)) { } in LazyOffsetPtr() 333 explicit LazyOffsetPtr(uint64_t Offset) : Ptr((Offset << 1) | 0x01) { in LazyOffsetPtr() 336 Ptr = 0; in LazyOffsetPtr() 339 LazyOffsetPtr &operator=(T *Ptr) { 340 this->Ptr = reinterpret_cast<uint64_t>(Ptr); 347 Ptr = 0; 349 Ptr = (Offset << 1) | 0x01; 357 explicit operator bool() const { return Ptr != 0; } [all …]
|
/external/clang/lib/Sema/ |
D | IdentifierResolver.cpp | 147 void *Ptr = Name.getFETokenInfo<void>(); in AddDecl() local 149 if (!Ptr) { in AddDecl() 156 if (isDeclPtr(Ptr)) { in AddDecl() 159 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in AddDecl() 162 IDI = toIdDeclInfo(Ptr); in AddDecl() 172 void *Ptr = Name.getFETokenInfo<void>(); in InsertDeclAfter() local 174 if (!Ptr) { in InsertDeclAfter() 179 if (isDeclPtr(Ptr)) { in InsertDeclAfter() 184 NamedDecl *PrevD = static_cast<NamedDecl*>(Ptr); in InsertDeclAfter() 198 IdDeclInfo *IDI = toIdDeclInfo(Ptr); in InsertDeclAfter() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | SMLoc.h | 25 const char *Ptr; variable 28 SMLoc() : Ptr(nullptr) {} in SMLoc() 30 bool isValid() const { return Ptr != nullptr; } in isValid() 32 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 33 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 35 const char *getPointer() const { return Ptr; } in getPointer() 37 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer() argument 39 L.Ptr = Ptr; in getFromPointer()
|
D | ManagedStatic.h | 32 static void call(void *Ptr) { delete (T *)Ptr; } in call() 36 static void call(void *Ptr) { delete[](T *)Ptr; } 44 mutable std::atomic<void *> Ptr; 52 bool isConstructed() const { return Ptr != nullptr; } 67 void *Tmp = Ptr.load(std::memory_order_acquire); 71 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed)); 77 void *Tmp = Ptr.load(std::memory_order_acquire); 81 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed));
|
/external/llvm/include/llvm/Support/ |
D | SMLoc.h | 24 const char *Ptr; variable 27 SMLoc() : Ptr(nullptr) {} in SMLoc() 29 bool isValid() const { return Ptr != nullptr; } in isValid() 31 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; } 32 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; } 34 const char *getPointer() const { return Ptr; } in getPointer() 36 static SMLoc getFromPointer(const char *Ptr) { in getFromPointer() argument 38 L.Ptr = Ptr; in getFromPointer()
|
D | ManagedStatic.h | 32 static void call(void *Ptr) { delete (T *)Ptr; } in call() 36 static void call(void *Ptr) { delete[](T *)Ptr; } 44 mutable std::atomic<void *> Ptr; 51 bool isConstructed() const { return Ptr != nullptr; } 66 void *Tmp = Ptr.load(std::memory_order_acquire); 70 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed)); 76 void *Tmp = Ptr.load(std::memory_order_acquire); 80 return *static_cast<C *>(Ptr.load(std::memory_order_relaxed));
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | IRBuilder.cpp | 42 Value *IRBuilderBase::getCastedInt8PtrValue(Value *Ptr) { in getCastedInt8PtrValue() argument 43 PointerType *PT = cast<PointerType>(Ptr->getType()); in getCastedInt8PtrValue() 45 return Ptr; in getCastedInt8PtrValue() 49 BitCastInst *BCI = new BitCastInst(Ptr, PT, ""); in getCastedInt8PtrValue() 64 CreateMemSet(Value *Ptr, Value *Val, Value *Size, unsigned Align, in CreateMemSet() argument 66 Ptr = getCastedInt8PtrValue(Ptr); in CreateMemSet() 67 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemSet() 68 Type *Tys[] = { Ptr->getType(), Size->getType() }; in CreateMemSet() 121 CallInst *IRBuilderBase::CreateLifetimeStart(Value *Ptr, ConstantInt *Size) { in CreateLifetimeStart() argument 122 assert(isa<PointerType>(Ptr->getType()) && in CreateLifetimeStart() [all …]
|
/external/compiler-rt/lib/scudo/ |
D | scudo_allocator.cpp | 217 void *Ptr = Chunk->AllocBeg(&Header); in Recycle() local 218 getAllocator().Deallocate(Cache_, Ptr); in Recycle() 234 void Deallocate(void *Ptr) { in Deallocate() 236 getAllocator().Deallocate(Cache_, Ptr); in Deallocate() 339 void *Ptr; in allocate() local 341 Ptr = BackendAllocator.Allocate(&Cache, NeededSize, MinAlignment); in allocate() 344 Ptr = BackendAllocator.Allocate(&FallbackAllocatorCache, NeededSize, in allocate() 347 if (!Ptr) in allocate() 351 if (ZeroContents && BackendAllocator.FromPrimary(Ptr)) in allocate() 352 memset(Ptr, 0, BackendAllocator.GetActuallyAllocatedSize(Ptr)); in allocate() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/ |
D | Intercept.cpp | 122 void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr); in getPointerToNamedFunction() local 123 if (Ptr) return Ptr; in getPointerToNamedFunction() 128 Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr+1); in getPointerToNamedFunction() 129 if (Ptr) return Ptr; in getPointerToNamedFunction() 141 if (void *Ptr = getPointerToNamedFunction(Prefix+"$LDBL128", false)) in getPointerToNamedFunction() local 142 return Ptr; in getPointerToNamedFunction() 143 if (void *Ptr = getPointerToNamedFunction(Prefix, false)) in getPointerToNamedFunction() local 144 return Ptr; in getPointerToNamedFunction()
|