Searched refs:policy (Results 1 - 15 of 15) sorted by relevance

/gem5/ext/pybind11/include/pybind11/
H A Dstl.h86 static handle cast(T &&src, return_value_policy policy, handle parent) { argument
88 policy = return_value_policy_override<Key>::policy(policy);
91 auto value_ = reinterpret_steal<object>(key_conv::cast(forward_like<T>(value), policy, parent));
122 static handle cast(T &&src, return_value_policy policy, handle parent) { argument
124 return_value_policy policy_key = policy;
125 return_value_policy policy_value = policy;
127 policy_key = return_value_policy_override<Key>::policy(policy_key);
128 policy_value = return_value_policy_override<Value>::policy(policy_valu
169 cast(T &&src, return_value_policy policy, handle parent) argument
228 cast(T &&src, return_value_policy policy, handle parent) argument
266 cast(T_ &&src, return_value_policy policy, handle parent) argument
308 return_value_policy policy; member in struct:variant_caster_visitor
361 cast(Variant &&src, return_value_policy policy, handle parent) argument
[all...]
H A Dfunctional.h85 static handle cast(Func &&f_, return_value_policy policy, handle /* parent */) { argument
91 return cpp_function(*result, policy).release();
93 return cpp_function(std::forward<Func>(f_), policy).release();
H A Deigen.h295 static handle cast_impl(CType *src, return_value_policy policy, handle parent) { argument
296 switch (policy) {
317 static handle cast(Type &&src, return_value_policy /* policy */, handle parent) {
321 static handle cast(const Type &&src, return_value_policy /* policy */, handle parent) {
325 static handle cast(Type &src, return_value_policy policy, handle parent) { argument
326 if (policy == return_value_policy::automatic || policy == return_value_policy::automatic_reference)
327 policy = return_value_policy::copy;
328 return cast_impl(&src, policy, parent);
331 static handle cast(const Type &src, return_value_policy policy, handl argument
337 cast(Type *src, return_value_policy policy, handle parent) argument
341 cast(const Type *src, return_value_policy policy, handle parent) argument
369 cast(const MapType &src, return_value_policy policy, handle parent) argument
528 cast(const Type *src, return_value_policy policy, handle parent) argument
[all...]
H A Dcast.h495 PYBIND11_NOINLINE static handle cast(const void *_src, return_value_policy policy, handle parent, argument
520 switch (policy) {
835 static handle cast(const itype &src, return_value_policy policy, handle parent) { argument
836 if (policy == return_value_policy::automatic || policy == return_value_policy::automatic_reference)
837 policy = return_value_policy::copy;
838 return cast(&src, policy, parent);
869 static handle cast(const itype *src, return_value_policy policy, handle parent) { argument
872 st.first, policy, parent, st.second,
934 static handle cast(const std::reference_wrapper<type> &src, return_value_policy policy, handl
[all...]
H A Dattr.h74 A call policy which places one or more guard variables (``Ts...``) around the function call.
160 /// Return value policy associated with this function
161 return_value_policy policy = return_value_policy::automatic; member in struct:function_record
327 /// Process an attribute indicating the function's return value policy
329 static void init(const return_value_policy &p, function_record *r) { r->policy = p; }
442 * Process a keep_alive call policy -- invokes keep_alive_impl during the
H A Dpybind11.h144 /* Invoke call policy pre-call hook */
152 /* Override policy for rvalues -- usually to enforce rvp::move on an rvalue */
153 return_value_policy policy = return_value_policy_override<Return>::policy(call.func.policy);
160 std::move(args_converter).template call<Return, Guard>(cap->f), policy, call.parent);
162 /* Invoke call policy post-call hook */
1863 template <return_value_policy policy = return_value_policy::automatic_reference, typename... Args>
1865 auto c = detail::collect_arguments<policy>(std::forward<Args>(args)...);
H A Dpytypes.h107 template <return_value_policy policy = return_value_policy::automatic_reference, typename... Args>
109 template <return_value_policy policy = return_value_policy::automatic_reference, typename... Args>
651 /// Lightweight iterator policy using just a simple pointer: see ``PySequence_Fast_ITEMS``
768 template <return_value_policy policy = return_value_policy::automatic_reference>
770 template <return_value_policy policy = return_value_policy::automatic_reference>
/gem5/src/mem/qos/
H A Dmem_ctrl.cc48 policy(p->qos_policy),
57 // Set the priority policy
58 if (policy) {
59 policy->setMemCtrl(this);
62 // Set the queue priority policy
67 // Set the bus turnaround policy
215 if (policy) {
216 return policy->schedule(m_id, data);
231 if (policy) {
248 "QoSMemoryTurnaround::selectBusState running policy
[all...]
H A Dmem_ctrl.hh43 #include "mem/qos/policy.hh"
69 const std::unique_ptr<Policy> policy; member in class:QoS::MemCtrl
184 * the configured QoS policy.
201 * based on configured policy.
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_port.h101 sc_port_policy policy=SC_ONE_OR_MORE_BOUND );
103 sc_port_policy policy=SC_ONE_OR_MORE_BOUND );
318 sc_port_policy policy=SC_ONE_OR_MORE_BOUND ) :
319 base_type( max_size_, policy ), m_interface( 0 ), m_interface_vec()
323 sc_port_policy policy=SC_ONE_OR_MORE_BOUND ) :
324 base_type( name_, max_size_, policy ), m_interface( 0 ),
645 Description of Modification: multiport binding policy changes
H A Dsc_port.cpp127 sc_port_policy policy() const;
177 sc_bind_info::policy() const function in class:sc_core::sc_bind_info
240 int max_size_, sc_port_policy policy
246 m_bind_info = new sc_bind_info( max_size_, policy );
250 const char* name_, int max_size_, sc_port_policy policy
256 m_bind_info = new sc_bind_info( max_size_, policy );
521 switch ( m_bind_info->policy() )
761 Description of Modification: multiport binding policy changes
/gem5/src/dev/arm/
H A Dsmmu_v3_caches.hh123 const std::string &policy);
172 const std::string &policy);
215 const std::string &policy);
263 const std::string &policy);
306 unsigned _associativity, const std::string &policy);
H A Dsmmu_v3_caches.cc81 panic("Unknown cache replacement policy '%s'\n", policy_name);
150 const std::string &policy)
152 SMMUv3BaseCache(policy, SMMUTLB_SEED),
419 panic("Unknown replacement policy %d\n", replacementPolicy);
430 const std::string &policy)
432 SMMUv3BaseCache(policy, ARMARCHTLB_SEED),
619 panic("Unknown replacement policy %d\n", replacementPolicy);
629 const std::string &policy)
631 SMMUv3BaseCache(policy, IPACACHE_SEED),
799 panic("Unknown replacement policy
149 SMMUTLB(unsigned numEntries, unsigned _associativity, const std::string &policy) argument
429 ARMArchTLB(unsigned numEntries, unsigned _associativity, const std::string &policy) argument
628 IPACache(unsigned numEntries, unsigned _associativity, const std::string &policy) argument
808 ConfigCache(unsigned numEntries, unsigned _associativity, const std::string &policy) argument
972 WalkCache(const std::array<unsigned, 2*WALK_CACHE_LEVELS> &_sizes, unsigned _associativity, const std::string &policy) argument
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_copy_move.cpp92 static handle cast(const CopyOnlyInt *src, return_value_policy policy, handle parent) { argument
94 return cast(*src, policy, parent);
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_vector.h173 typedef sc_direct_access< type > policy; typedef in struct:sc_core::sc_direct_access
179 // convert from any policy to (const) direct policy
184 typename U::policy::element_type>::value>::type* = NULL)
206 typedef sc_member_access< element_type, access_type > policy; typedef in class:sc_core::sc_member_access
235 typedef typename AccessPolicy::policy access_policy;

Completed in 48 milliseconds