Home
last modified time | relevance | path

Searched refs:RefPtr (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_refptr.h28 class RefPtr {
30 RefPtr() = default;
33 RefPtr(T* ptr) : ptr_(ptr) {} // NOLINT in RefPtr() function
34 RefPtr(const RefPtr& other) : ptr_(other.ptr_) { Acquire(ptr_); } in RefPtr() function
35 RefPtr(RefPtr&& other) : ptr_(other.ptr_) { other.ptr_ = nullptr; } in RefPtr() function
37 ~RefPtr() { Release(ptr_); } in ~RefPtr()
39 RefPtr& operator=(const RefPtr& other) {
48 RefPtr& operator=(RefPtr&& other) {
58 bool operator==(const RefPtr& rhs) const { return ptr_ == rhs.ptr_; }
59 bool operator!=(const RefPtr& rhs) const { return ptr_ != rhs.ptr_; }
Dxrt_memory_manager.h53 explicit WorkingSet(RefPtr<XRTMemoryManager> memory_manager);
61 const std::vector<RefPtr<XRTTupleAllocation>>& PinnedTuples() const { in PinnedTuples()
65 const RefPtr<XRTMemoryManager>& MemoryManager() const { in MemoryManager()
70 RefPtr<XRTMemoryManager> memory_manager_;
71 std::vector<RefPtr<XRTTupleAllocation>> pinned_tuples_;
75 static RefPtr<XRTMemoryManager> Get(ResourceMgr* rm);
79 int64 Register(RefPtr<XRTTupleAllocation> tuple);
83 xla::StatusOr<RefPtr<XRTTupleAllocation>> Lookup(int64 handle);
85 Status Lookup(int64 handle, RefPtr<XRTTupleAllocation>* tuple) { in Lookup()
Dxrt_util.h77 xla::StatusOr<std::vector<RefPtr<XRTTupleAllocation>>> GetInputTupleAllocations(
84 const RefPtr<XRTTupleAllocation>& output_tuple,
85 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples,
90 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples,
98 RefPtr<XRTTupleAllocation> output_tuple,
104 std::function<xla::StatusOr<RefPtr<XRTTupleAllocation>>(
106 absl::Span<const RefPtr<XRTTupleAllocation>>)>;
108 const RefPtr<XRTMemoryManager>& memory_manager,
Dxrt_util.cc40 explicit ScopedHandles(RefPtr<XRTMemoryManager> memory_manager) in ScopedHandles()
78 Status Add(size_t index, RefPtr<XRTTupleAllocation> tuple) { in Add()
104 xla::StatusOr<RefPtr<XRTTupleAllocation>> Lookup(size_t index) const { in Lookup()
109 RefPtr<XRTMemoryManager> memory_manager_;
136 Status MakeOutput(const RefPtr<XRTTupleAllocation>& output, int64 index, in MakeOutput()
137 RefPtr<XRTTupleAllocation>* result) { in MakeOutput()
255 xla::StatusOr<std::vector<RefPtr<XRTTupleAllocation>>> GetInputTupleAllocations( in GetInputTupleAllocations()
265 std::vector<RefPtr<XRTTupleAllocation>> input_tuples; in GetInputTupleAllocations()
299 const RefPtr<XRTTupleAllocation>& output_tuple, in RebuildOutputAliases()
300 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples, in RebuildOutputAliases()
[all …]
Dxrt_memory_manager.cc50 explicit Alloc(RefPtr<XRTTupleAllocation> tuple) in Alloc()
53 RefPtr<XRTTupleAllocation> tuple;
59 int64 Register(RefPtr<XRTTupleAllocation> tuple) { in Register()
84 RefPtr<XRTTupleAllocation> Lookup(int64 handle) { in Lookup()
188 RefPtr<XRTMemoryManager> memory_manager) in WorkingSet()
206 /* static */ RefPtr<XRTMemoryManager> XRTMemoryManager::Get(ResourceMgr* rm) { in Get()
218 int64 XRTMemoryManager::Register(RefPtr<XRTTupleAllocation> tuple) { in Register()
224 xla::StatusOr<RefPtr<XRTTupleAllocation>> XRTMemoryManager::Lookup( in Lookup()
232 RefPtr<XRTTupleAllocation> tuple = device_context->Lookup(handle); in Lookup()
Dxrt_device.h35 static xla::StatusOr<RefPtr<XRTCompilationCache>> GetOrCreateCompilationCache(
Dxrt_compilation_cache.cc289 xla::StatusOr<RefPtr<XRTCompilationCache>> GetOrCreateCompilationCache( in GetOrCreateCompilationCache()
301 return RefPtr<XRTCompilationCache>(cache); in GetOrCreateCompilationCache()
Dxrt_device.cc62 /* static */ xla::StatusOr<RefPtr<XRTCompilationCache>>
/external/llvm-project/clang/test/Analysis/Checkers/WebKit/
Dmock-types.h14 template <typename T> struct RefPtr { struct
17 RefPtr() : t(new T) {} in RefPtr() argument
18 RefPtr(T *t) : t(t) {} in RefPtr() argument
22 RefPtr &operator=(T *) { return *this; } argument
25 template <typename T> bool operator==(const RefPtr<T> &, const RefPtr<T> &) {
29 template <typename T> bool operator==(const RefPtr<T> &, T *) { return false; }
31 template <typename T> bool operator==(const RefPtr<T> &, T &) { return false; }
33 template <typename T> bool operator!=(const RefPtr<T> &, const RefPtr<T> &) {
37 template <typename T> bool operator!=(const RefPtr<T> &, T *) { return false; }
39 template <typename T> bool operator!=(const RefPtr<T> &, T &) { return false; }
Duncounted-local-vars.cpp26 RefPtr<RefCountable> foo; in foo1()
31 RefPtr<RefCountable> foo; in foo2()
38 RefPtr<RefCountable> foo; in foo3()
46 RefPtr<RefCountable> foo; in foo4()
69 RefPtr<RefCountable> foo; in foo1()
74 RefPtr<RefCountable> foo; in foo2()
Duncounted-members.cpp12 RefPtr<RefCountable> b;
33 RefPtr<RefCountable> b;
38 union RefPtr { union
42 void forceTmplToInstantiate(RefPtr<RefCountable>) {} in forceTmplToInstantiate()
Dcall-args.cpp274 RefPtr<RefCountable> a(provide()); in foo()
286 RefPtr<RefCountable> bar; in foo()
/external/llvm-project/clang/test/SemaTemplate/
Dinstantiate-default-assignment-operator.cpp3 template<typename T> struct RefPtr { struct
4RefPtr& operator=(const RefPtr&) { int a[sizeof(T) ? -1 : -1];} // expected-error 2 {{array with a… in operator =() argument
5 RefPtr& operator=(const PassRefPtr<T>&);
8 struct A { RefPtr<int> a; }; // expected-note {{instantiation of member function 'RefPtr<int>::ope…
9 struct B : RefPtr<float> { }; // expected-note {{in instantiation of member function 'RefPtr<float>…
Dvirtual-member-functions.cpp179 struct RefPtr { struct
181 ~RefPtr() { m_ptr->deref(); } in ~RefPtr() argument
189 RefPtr<DeclaredOnly> m_insertionStyle;
202 struct RefPtr { struct
204 …~RefPtr() { m_ptr->deref(); } // expected-error {{member access into incomplete type 'vtable_uses… in ~RefPtr()
212 RefPtr<DeclaredOnly> m_insertionStyle;
/external/clang/test/SemaTemplate/
Dinstantiate-default-assignment-operator.cpp3 template<typename T> struct RefPtr { struct
4RefPtr& operator=(const RefPtr&) { int a[sizeof(T) ? -1 : -1];} // expected-error 2 {{array with a… in operator =() argument
5 RefPtr& operator=(const PassRefPtr<T>&);
8 struct A { RefPtr<int> a; }; // expected-note {{instantiation of member function 'RefPtr<int>::ope…
9 struct B : RefPtr<float> { }; // expected-note {{in instantiation of member function 'RefPtr<float>…
Dvirtual-member-functions.cpp133 struct RefPtr { struct
135 ~RefPtr() { m_ptr->deref(); } in ~RefPtr() argument
143 RefPtr<DeclaredOnly> m_insertionStyle;
156 struct RefPtr { struct
158 …~RefPtr() { m_ptr->deref(); } // expected-error {{member access into incomplete type 'vtable_uses… in ~RefPtr()
166 RefPtr<DeclaredOnly> m_insertionStyle;
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_execute_op.cc88 xla::StatusOr<std::vector<RefPtr<XRTTupleAllocation>>> GetInputTuples( in GetInputTuples()
101 xla::StatusOr<std::vector<RefPtr<XRTTupleAllocation>>> GetChainedOpInputTuples( in GetChainedOpInputTuples()
103 absl::Span<const RefPtr<XRTTupleAllocation>> op_inputs) { in GetChainedOpInputTuples()
104 std::vector<RefPtr<XRTTupleAllocation>> input_tuples; in GetChainedOpInputTuples()
267 xla::StatusOr<RefPtr<XRTTupleAllocation>> CreateOutputTuple( in CreateOutputTuple()
293 return RefPtr<XRTTupleAllocation>(output_tuple); in CreateOutputTuple()
296 xla::StatusOr<RefPtr<XRTTupleAllocation>> RunExecutable( in RunExecutable()
299 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples, in RunExecutable()
360 RefPtr<XRTTupleAllocation> output_tuple_ptr, in RunExecutable()
374 xla::StatusOr<RefPtr<XRTTupleAllocation>> ExecuteComputation( in ExecuteComputation()
[all …]
Dtpu_execute_op.cc85 xla::StatusOr<std::vector<RefPtr<XRTTupleAllocation>>> GetChainedOpInputs( in GetChainedOpInputs()
87 absl::Span<const RefPtr<XRTTupleAllocation>> op_inputs, in GetChainedOpInputs()
95 std::vector<RefPtr<XRTTupleAllocation>> input_tuples; in GetChainedOpInputs()
99 const RefPtr<XRTTupleAllocation>& tuple = op_inputs[i]; in GetChainedOpInputs()
137 xla::StatusOr<RefPtr<XRTTupleAllocation>> AllocateOutputTuple( in AllocateOutputTuple()
139 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples, in AllocateOutputTuple()
158 RefPtr<XRTTupleAllocation> output_tuple_ptr(output_tuple); in AllocateOutputTuple()
175 absl::Span<const RefPtr<XRTTupleAllocation>> input_tuples, in AllocateOutputTensors()
179 RefPtr<XRTTupleAllocation> output_tuple, in AllocateOutputTensors()
340 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in DoWork()
[all …]
Dxrt_state_ops.h200 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
240 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
344 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
393 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
394 RefPtr<XRTTupleAllocation> allocation; in Compute()
463 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
469 RefPtr<XRTTupleAllocation> output_ptr(output_allocation); in Compute()
506 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
507 RefPtr<XRTTupleAllocation> allocation; in Compute()
559 RefPtr<XRTMemoryManager> memory_manager = XRTMemoryManager::Get(rm); in Compute()
[all …]
/external/clang/test/CodeGenCXX/
Dvtable-available-externally.cpp86 template <class T> struct RefPtr { struct
88 ~RefPtr() { in ~RefPtr() argument
101 RefPtr<Node> m;
105 RefPtr<B> b; in f()
/external/llvm-project/clang/test/CodeGenCXX/
Dvtable-available-externally.cpp91 template <class T> struct RefPtr { struct
93 ~RefPtr() { in ~RefPtr() argument
106 RefPtr<Node> m;
110 RefPtr<B> b; in f()
/external/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
Dp12.cpp17 template<typename> struct RefPtr { }; struct
21 template<typename T> struct PtrHash<RefPtr<T> > : PtrHash<T*> {
/external/llvm-project/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
Dp12.cpp17 template<typename> struct RefPtr { }; struct
21 template<typename T> struct PtrHash<RefPtr<T> > : PtrHash<T*> {
/external/llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/
Dp5.cpp47 struct RefPtr { struct
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.ref/
Dp5.cpp47 struct RefPtr { struct

12