/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()
|
/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/bcc/src/cc/frontends/b/ |
D | node.h | 102 typedef unique_ptr<type> Ptr; \ in EXPAND_NODES() 107 typedef unique_ptr<Node> Ptr; typedef 133 typedef unique_ptr<StmtNode> Ptr; typedef 137 typedef vector<StmtNode::Ptr> StmtNodeList; 141 typedef unique_ptr<ExprNode> Ptr; typedef 162 typedef vector<ExprNode::Ptr> ExprNodeList; 180 IdentExprNode::Ptr copy() const { in copy() 181 return IdentExprNode::Ptr(new IdentExprNode(*this)); in copy() 226 ExprNode::Ptr expr_; 233 typedef vector<IdentExprNode::Ptr> IdentExprNodeList; [all …]
|
D | parser.yy | 139 { $$ = new BlockStmtNode; $$->stmts_.push_back(StmtNode::Ptr($1)); } 141 { $1->stmts_.push_back(StmtNode::Ptr($2)); } 169 { $$ = new StmtNodeList; $$->push_back(StmtNode::Ptr($1)); } 171 { $1->push_back(StmtNode::Ptr($2)); } 176 { $$ = new ExprStmtNode(ExprNode::Ptr($1)); 179 { $$ = new ExprStmtNode(ExprNode::Ptr($1)); 182 { $$ = new ExprStmtNode(ExprNode::Ptr($1)); 185 { $$ = new ExprStmtNode(ExprNode::Ptr($1)); 190 { $$ = new ExprStmtNode(ExprNode::Ptr($1)); 202 { $$ = new MethodCallExprNode(IdentExprNode::Ptr($1), move(*$3), lexer.lineno()); delete $3; [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/swiftshader/third_party/llvm-7.0/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.smallString; in printOneChild() 79 OS << *Ptr.formatvObject; in printOneChild() 82 OS << Ptr.character; in printOneChild() 85 OS << Ptr.decUI; in printOneChild() 88 OS << Ptr.decI; 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() 49 void formatted_raw_ostream::ComputePosition(const char *Ptr, size_t Size) { in ComputePosition() argument 53 if (Ptr <= Scanned && Scanned <= Ptr + Size) in ComputePosition() 56 UpdatePosition(Position, Scanned, Size - (Scanned - Ptr)); in ComputePosition() 58 UpdatePosition(Position, Ptr, Size); in ComputePosition() 61 Scanned = Ptr + Size; in ComputePosition() 77 void formatted_raw_ostream::write_impl(const char *Ptr, size_t Size) { in write_impl() argument 79 ComputePosition(Ptr, Size); in write_impl() [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/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-7.0/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/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/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/tensorflow/tensorflow/core/grappler/graph_analyzer/ |
D | map_tools.h | 27 template <typename Ptr> 28 struct LessAtPtr : std::binary_function<Ptr, Ptr, bool> { 29 bool operator()(const Ptr& x, const Ptr& y) const { return *x < *y; } in operator() 32 template <typename Ptr> 33 struct EqAtPtr : std::binary_function<Ptr, Ptr, bool> { 34 bool operator()(const Ptr& x, const Ptr& y) const { return *x == *y; } in operator() 37 template <typename Ptr> 38 struct HashAtPtr : std::unary_function<Ptr, size_t> { 39 size_t operator()(const Ptr& x) const { return x->Hash(); } in operator()
|
/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 …]
|
/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/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()
|
/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()
|
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | SMLoc.h | 25 const char *Ptr = nullptr; variable 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()
|