/gem5/ext/pybind11/include/pybind11/ |
H A D | buffer_info.h | 31 shape(std::move(shape_in)), strides(std::move(strides_in)) { 40 : buffer_info(private_ctr_tag(), ptr, sizeof(T), format_descriptor<T>::format(), static_cast<ssize_t>(shape_in->size()), std::move(shape_in), std::move(strides_in)) { } 60 (*this) = std::move(other); 67 format = std::move(rhs.format); 69 shape = std::move(rhs.shape); 70 strides = std::move(rhs.strides); 85 : buffer_info(ptr, itemsize, format, ndim, std::move(shape_in), std::move(strides_i [all...] |
H A D | functional.h | 60 func_handle(function&& f_) : f(std::move(f_)) {} 64 function kill_f(std::move(f)); 68 // to emulate 'move initialization capture' in C++11 71 func_wrapper(func_handle&& hf): hfunc(std::move(hf)) {} 80 value = func_wrapper(func_handle(std::move(func)));
|
H A D | cast.h | 542 case return_value_policy::move: 548 throw cast_error("return_value_policy = move, but the " 842 return cast(&src, return_value_policy::move, parent); 891 /* Only enabled when the types are {copy,move}-constructible *and* when the type 901 static auto make_move_constructor(const T *x) -> decltype(new T(std::move(*const_cast<T *>(x))), Constructor{}) { 903 return new T(std::move(*const_cast<T *>(reinterpret_cast<const T *>(arg)))); 920 return std::move(caster).operator 953 auto h = cast(std::move(*src), policy, parent); delete src; return h; \ 960 operator type&&() && { return std::move(value); } \ 1386 operator type() && { return std::move(*thi [all...] |
H A D | stl.h | 80 value.insert(cast_op<Key &&>(std::move(conv))); 116 value.emplace(cast_op<Key &&>(std::move(kconv)), cast_op<Value &&>(std::move(vconv))); 156 value.push_back(cast_op<Value &&>(std::move(conv))); 222 value[ctr++] = cast_op<Value &&>(std::move(conv)); 283 value.emplace(cast_op<typename T::value_type &&>(std::move(inner_caster)));
|
H A D | eigen.h | 39 // Eigen prior to 3.2.7 doesn't have proper move constructors--but worse, some classes get implicit 40 // move constructors that break things. We could detect this an explicitly copy, but an extra copy 300 case return_value_policy::move: 301 return eigen_encapsulate<props>(new CType(std::move(*src))); 318 return cast_impl(&src, return_value_policy::move, parent); 322 return cast_impl(&src, return_value_policy::move, parent); 349 operator Type&&() && { return std::move(value); } 380 // move, take_ownership don't make any sense for a ref/map: 443 copy_or_ref = std::move(aref); 461 copy_or_ref = std::move(cop [all...] |
H A D | numpy.h | 592 : array(dt, std::move(shape), {}, ptr, base) { } 600 : array(pybind11::dtype::of<T>(), std::move(shape), std::move(strides), ptr, base) { } 604 : array(std::move(shape), {}, ptr, base) { } 756 if (isinstance<array>(new_array)) { *this = std::move(new_array); } 836 : array(std::move(shape), std::move(strides), ptr, base) {} 859 : array(std::move(shape), std::move(strides), ptr, base) { } 862 : array_t(private_ctor{}, std::move(shap [all...] |
/gem5/ext/nomali/lib/ |
H A D | addrspace.cc | 48 : GPUBlock(std::move(rhs)), 49 id(std::move(rhs.id)),
|
H A D | jobslot.cc | 54 : GPUBlock(std::move(rhs)), 55 id(std::move(rhs.id)),
|
H A D | gpublock.cc | 39 regs(std::move(rhs.regs))
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | init.h | 73 v_h.value_ptr() = new Alias<Class>(std::move(base)); 110 Holder<Class> temp_holder(std::move(v_h.holder<Holder<Class>>())); // Steal the holder 114 construct_alias_from_cpp<Class>(is_alias_constructible<Class>{}, v_h, std::move(*ptr)); 129 // Holder return: copy its pointer, and move or copy the returned holder into the new instance's 147 // need it, we simply move-construct the cpp value into a new instance. 153 construct_alias_from_cpp<Class>(is_alias_constructible<Class>{}, v_h, std::move(result)); 155 v_h.value_ptr() = new Cpp<Class>(std::move(result)); 158 // return-by-value version 2: returning a value of the alias type itself. We move-construct an 165 v_h.value_ptr() = new Alias<Class>(std::move(result)); 231 cl.def("__init__", [func = std::move(class_factor [all...] |
/gem5/src/mem/cache/compressors/ |
H A D | cpack.cc | 95 pattern = std::move(temp_pattern); 141 comp_data->entries.push_back(std::move(first_pattern)); 142 comp_data->entries.push_back(std::move(second_pattern)); 156 return std::move(comp_data);
|
H A D | bdi.cc | 330 return std::move(temp_data); 419 bdi_data = std::move(temp_bdi_data); 453 return std::move(bdi_data);
|
/gem5/ext/pybind11/tests/ |
H A D | test_copy_move.cpp | 2 tests/test_copy_move_policies.cpp -- 'copy' and 'move' return value policies 36 /* Custom type caster move/copy test classes */ 40 MoveOnlyInt(int v) : value{std::move(v)} { print_created(this, value); } 52 MoveOrCopyInt(int v) : value{std::move(v)} { print_created(this, value); } 64 CopyOnlyInt(int v) : value{std::move(v)} { print_created(this, value); } 111 py::return_value_policy::move); 195 // #389: rvp::move should fall-through to copy on non-movable objects 211 m.def("get_moveissue1", [](int i) { return new MoveIssue1(i); }, py::return_value_policy::move); 212 m.def("get_moveissue2", [](int i) { return MoveIssue2(i); }, py::return_value_policy::move);
|
H A D | test_factory_constructors.cpp | 21 TestFactory1(std::string v) : value(std::move(v)) { print_created(this, value); } 35 TestFactory2(std::string v) : value(std::move(v)) { print_created(this, value); } 37 TestFactory2(TestFactory2 &&m) { value = std::move(m.value); print_move_created(this); } 38 TestFactory2 &operator=(TestFactory2 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; } 49 TestFactory3(std::string v) : value(std::move(v)) { print_created(this, value); } 50 TestFactory3(TestFactory3 &&m) { value = std::move(m.value); print_move_created(this); } 51 TestFactory3 &operator=(TestFactory3 &&m) { value = std::move(m.value); print_move_assigned(this); return *this; } 85 PyTF6(TestFactory6 &&base) : TestFactory6(std::move(base)) { alias = true; print_created(this, "move", value); } 87 PyTF6(PyTF6 &&f) : TestFactory6(std::move( [all...] |
H A D | test_kwargs_and_defaults.cpp | 38 return std::move(args);
|
H A D | test_factory_constructors.py | 25 x2 = m.TestFactory2(tag.move) 201 ["hi there", "3", "4", "6", "move", "123", "why hello!", "move", "47"] 315 m.TestFactory2.__init__(self, tag.move)
|
/gem5/src/arch/generic/ |
H A D | memhelpers.hh | 137 std::move(amo_op)); 155 return xc->initiateMemAMO(addr, sizeof(MemT), flags, std::move(amo_op));
|
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64uf/ |
H A D | move.S | 4 # move.S
|
/gem5/src/dev/ |
H A D | dma_device.cc | 433 DmaDoneEventUPtr event(std::move(freeRequests.front())); 443 pendingRequests.emplace_back(std::move(event)); 464 DmaDoneEventUPtr event(std::move(pendingRequests.front())); 471 freeRequests.emplace_back(std::move(event));
|
/gem5/src/dev/virtio/ |
H A D | base.cc | 65 memProxy = std::move(rhs.memProxy); 66 queue = std::move(rhs.queue); 67 _index = std::move(rhs._index); 68 desc = std::move(rhs.desc);
|
/gem5/src/base/ |
H A D | sat_counter.test.cc | 219 * Test copy and move for both constructor and assignment. 261 // Now check move 262 SatCounter counter_move_constructor(std::move(counter)); 267 counter_move = std::move(counter_move_constructor);
|
/gem5/ext/pybind11/tests/test_embed/ |
H A D | test_interpreter.cpp | 93 auto pyi2 = std::move(pyi1); 240 explicit scope_exit(std::function<void()> f) noexcept : f_(std::move(f)) {}
|
/gem5/ext/googletest/googlemock/include/gmock/ |
H A D | gmock-actions.h | 210 // This method can be used even if T is only move-constructible, but it is not 501 // Helper struct to specialize ReturnAction to execute a move instead of a copy 502 // on return. Useful for move-only types, but could be used on any type. 505 explicit ByMoveWrapper(T value) : payload(internal::move(value)) {} 539 explicit ReturnAction(R value) : value_(new R(internal::move(value))) {} 593 // move its contents instead. 607 return internal::move(wrapper_->payload); 1062 return internal::ReturnAction<R>(internal::move(value)); 1089 // Modifies the parent action (a Return() action) to perform a move of the 1095 return internal::ByMoveWrapper<R>(internal::move( [all...] |
/gem5/src/cpu/o3/ |
H A D | inst_queue_impl.hh | 685 DynInstPtr inst = std::move(instsToExecute.front()); 732 // If not, then move along. 784 while (mem_inst = std::move(getDeferredMemInstToExecute())) { 789 while (mem_inst = std::move(getBlockedMemInstToExecute())) { 1176 DynInstPtr mem_inst = std::move(*it); 1191 DynInstPtr mem_inst = std::move(retryMemInsts.front());
|
H A D | lsq.hh | 329 _amo_op(std::move(amo_op)) 416 std::move(_amo_op)); 727 std::move(amo_op)) {}
|