Searched refs:Return (Results 1 - 25 of 26) sorted by relevance

12

/gem5/util/tlm/examples/common/
H A DSConscript43 Return('objs')
/gem5/util/tlm/examples/master_port/
H A DSConscript44 Return('bin')
/gem5/util/tlm/examples/slave_port/
H A DSConscript44 Return('bin')
/gem5/ext/googletest/googlemock/test/
H A Dgmock_leak_test_.cc41 using ::testing::Return;
75 ON_CALL(*foo, DoThis()).WillByDefault(Return());
88 ON_CALL(*foo1, DoThis()).WillByDefault(Return());
H A Dgmock-generated-function-mockers_test.cc71 using testing::Return;
200 .WillOnce(Return(1));
210 .WillOnce(Return(true));
219 .WillOnce(Return(3));
228 .WillOnce(Return(5));
237 .WillOnce(Return(true));
246 .WillOnce(Return("Hello"));
264 .WillOnce(Return(1));
266 .WillOnce(Return(2));
275 .WillOnce(Return(
[all...]
H A Dgmock_link_test.h42 // Return()
43 // Return(value)
164 using testing::Return;
245 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return());
249 // Tests the linkage of the Return action.
254 EXPECT_CALL(mock, StringFromString(_)).WillOnce(Return(&ch));
262 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(Return());
374 EXPECT_CALL(mock, VoidFromString(_)).WillOnce(WithoutArgs(Return()));
384 .WillOnce(DoAll(SetArgPointee<0>('y'), Return()));
393 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return());
[all...]
H A Dgmock-spec-builders_test.cc91 using testing::Return;
211 ON_CALL(cc, Method()).WillByDefault(Return(42));
225 EXPECT_CALL(cc, Method()).WillOnce(Return(42));
255 .WillByDefault(Return());
258 .WillByDefault(Return());
268 .WillByDefault(Return(Result()));
286 .WillByDefault(Return())
287 .WillByDefault(Return());
348 .WillOnce(Return())
359 .WillOnce(Return());
[all...]
H A Dgmock_output_test_.cc48 using testing::Return;
89 .WillOnce(Return(false));
208 .WillByDefault(Return(true)); // Default action #1
210 .WillByDefault(Return(false)); // Default action #2
220 .WillByDefault(Return(true)); // Default action #1
222 .WillByDefault(Return(false)); // Default action #2
235 .WillByDefault(Return(true)); // Default action #1
237 .WillByDefault(Return(false)); // Default action #2
245 .WillByDefault(Return(true)); // Default action #1
249 .WillOnce(Return(fals
[all...]
H A Dgmock_stress_test.cc152 .WillByDefault(Return(1));
154 .WillByDefault(Return('b'));
156 .WillByDefault(Return('a'));
162 .WillOnce(Return('z'))
203 .WillByDefault(Return(1));
206 .WillRepeatedly(Return('a'));
H A Dgmock-actions_test.cc62 using testing::Return;
516 // Tests that Return() works as an action for void-returning
519 const Action<void(int)> ret = Return(); // NOLINT
523 // Tests that Return(v) returns v.
525 Action<int()> ret = Return(1); // NOLINT
528 ret = Return(-5);
532 // Tests that Return("string literal") works.
534 Action<const char*()> a1 = Return("Hello");
537 Action<std::string()> a2 = Return("world");
548 // Tests that Return() work
[all...]
H A Dgmock-generated-actions_test.cc59 using testing::Return;
424 Return(2));
434 Return(3));
448 Return(3));
464 Return(3));
482 Return(3));
502 Return(3));
525 Return(3));
550 Return(3));
578 Return(
[all...]
H A Dgmock-more-actions_test.cc59 using testing::Return;
/gem5/ext/pybind11/include/pybind11/
H A Dfunctional.h18 template <typename Return, typename... Args>
19 struct type_caster<std::function<Return(Args...)>> {
20 using type = std::function<Return(Args...)>;
21 using retval_type = conditional_t<std::is_same<Return, void>::value, void_type, Return>;
22 using function_type = Return (*) (Args...);
72 Return operator()(Args... args) const {
76 return (retval.template cast<Return>());
H A Dpybind11.h62 template <typename Return, typename... Args, typename... Extra>
63 cpp_function(Return (*f)(Args...), const Extra&... extra) {
76 template <typename Return, typename Class, typename... Arg, typename... Extra>
77 cpp_function(Return (Class::*f)(Arg...), const Extra&... extra) {
78 initialize([f](Class *c, Arg... args) -> Return { return (c->*f)(args...); },
79 (Return (*) (Class *, Arg...)) nullptr, extra...);
83 template <typename Return, typename Class, typename... Arg, typename... Extra>
84 cpp_function(Return (Class::*f)(Arg...) const, const Extra&... extra) {
85 initialize([f](const Class *c, Arg... args) -> Return { return (c->*f)(args...); },
86 (Return (*)(cons
1024 auto method_adaptor(Return (Class::*pmf)(Args...)) -> Return (Derived::*)(Args...) { function
1031 auto method_adaptor(Return (Class::*pmf)(Args...) const) -> Return (Derived::*)(Args...) const { function
1176 class_ &def_buffer(Return (Class::*func)(Args...)) { function in class:cpp_function::class_
1181 class_ &def_buffer(Return (Class::*func)(Args...) const) { function
[all...]
H A Dnumpy.h477 /// Return dtype associated with a C++ type.
666 /// Return the NumPy array flags
738 /// Return a new view with all of the dimensions of length 1 removed
1479 template <typename Func, typename Return, typename... Args>
1540 array_t<Return> result;
1541 if (trivial == broadcast_trivial::f_trivial) result = array_t<Return, array::f_style>(shape);
1542 else result = array_t<Return>(shape);
1558 Return *out,
1581 array_t<Return> &output_array,
1587 for (array_iterator<Return> ite
[all...]
H A Dcast.h185 /// Return the type info for a given C++ type; on lookup failure can either throw or return nullptr.
1625 template <typename Return, typename SFINAE = void> struct return_value_policy_override {
1629 template <typename Return> struct return_value_policy_override<Return,
1630 detail::enable_if_t<std::is_base_of<type_caster_generic, make_caster<Return>>::value, void>> {
1632 return !std::is_lvalue_reference<Return>::value &&
1633 !std::is_pointer<Return>::value
1910 template <typename Return, typename Guard, typename Func>
1911 enable_if_t<!std::is_void<Return>::value, Return> cal
[all...]
/gem5/util/tlm/src/
H A DSConscript60 Return('tlm')
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64si/
H A Dcsr.S135 # Return to user mode, but skip the trapping instruction.
/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h542 /// Return the index of the first type in Ts which satisfies Predicate<T>. Returns sizeof...(Ts) if
547 /// Return the index of the last type in Ts which satisfies Predicate<T>, or -1 if none match.
551 /// Return the Nth element from the parameter pack
557 /// Return the one and only type which matches the predicate, or Default if none match.
728 template <typename Return>
729 constexpr auto operator()(Return (*pf)(Args...)) const noexcept
732 template <typename Return, typename Class>
733 constexpr auto operator()(Return (Class::*pmf)(Args...), std::false_type = {}) const noexcept
736 template <typename Return, typename Class>
737 constexpr auto operator()(Return (Clas
[all...]
H A Dinit.h217 template <typename Func, typename Return, typename... Args>
218 struct factory<Func, void_type (*)(), Return(Args...)> {
/gem5/src/gpu-compute/
H A Dgpu_static_inst.hh98 bool isReturn() const { return _flags[Return]; }
/gem5/ext/ply/example/GardenSnake/
H A DGardenSnake.py458 p[0] = ast.Return(p[2])
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-actions.h407 // functions of than one type, e.g. Return()).
424 // the definition of Return(void) and SetArgumentPointee<N>(value) for
509 // Implements the polymorphic Return(x) action, which can be used in
513 // Note: The value passed into Return must be converted into
522 // EXPECT_CALL(mock, Method(_)).WillOnce(Return(x));
530 // statement, and conversion of the result of Return to Action<T(U)> is a
538 // to allow Return("string literal") to compile.
541 // This template type conversion operator allows Return(x) to be
561 // Implements the Return(x) action for a particular function type F.
640 // Implements the Return() actio
1061 internal::ReturnAction<R> Return(R value) { function in namespace:testing
1071 inline PolymorphicAction<internal::ReturnVoidAction> Return() { function in namespace:testing
[all...]
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dast.py190 class Return(Expr): class in inherits:Expr
263 """Return a string that tries to reconstitute the variable decl."""
1118 # can be tricky. For example, Return::Type::Is::Hard::To::Find().
1630 return Return(self.current_token.start, self.current_token.end, None)
1631 return Return(tokens[0].start, tokens[0].end, tokens)
/gem5/src/arch/hsail/insts/
H A Ddecl.hh956 setFlag(GPUStaticInst::Return);

Completed in 74 milliseconds

12