/gem5/ext/testlib/ |
H A D | test.py | 79 def __init__(self, function, name=None, **kwargs): 80 self.test_function = function 82 name = function.__name__ 90 def testfunction(function=None, name=None, fixtures=tuple()): 92 A decorator used to wrap a function as a TestFunction. 94 def testfunctiondecorator(function): 95 '''Decorator used to mark a function as a test case.''' 101 TestFunction(function, **kwargs) 102 return function 103 if function i [all...] |
/gem5/tests/gem5/test_build/ |
H A D | test_build.py | 52 function = TestFunction(lambda fixtures: True, name, variable 54 TestSuite(name=name, tests=[function], tags=tags)
|
/gem5/src/mem/cache/tags/ |
H A D | compressed_tags.hh | 125 * The visitor should be a std::function that takes a cache block. 130 void forEachBlk(std::function<void(CacheBlk &)> visitor) override; 135 * The visitor should be a std::function that takes a cache block 141 bool anyBlk(std::function<bool(CacheBlk &)> visitor) override;
|
H A D | sector_tags.hh | 111 * This function updates the tags when a block is invalidated but does 181 * The visitor should be a std::function that takes a cache block. 186 void forEachBlk(std::function<void(CacheBlk &)> visitor) override; 191 * The visitor should be a std::function that takes a cache block 197 bool anyBlk(std::function<bool(CacheBlk &)> visitor) override;
|
H A D | base_set_assoc.hh | 109 * This function updates the tags when a block is invalidated. It also 234 void forEachBlk(std::function<void(CacheBlk &)> visitor) override { 240 bool anyBlk(std::function<bool(CacheBlk &)> visitor) override {
|
H A D | base.hh | 253 * This function updates the tags when a block is invalidated 328 * The visitor should be a std::function that takes a cache block 333 virtual void forEachBlk(std::function<void(CacheBlk &)> visitor) = 0; 338 * The visitor should be a std::function that takes a cache block 344 virtual bool anyBlk(std::function<bool(CacheBlk &)> visitor) = 0;
|
H A D | compressed_tags.cc | 188 CompressedTags::forEachBlk(std::function<void(CacheBlk &)> visitor) 196 CompressedTags::anyBlk(std::function<bool(CacheBlk &)> visitor)
|
/gem5/ext/pybind11/tests/ |
H A D | test_callbacks.cpp | 22 m.def("test_callback3", [](const std::function<int(int)> &func) { 24 m.def("test_callback4", []() -> std::function<int(int)> { return [](int i) { return i+1; }; }); 30 m.def("test_tuple_unpacking", [](py::function f) { 36 m.def("test_dict_unpacking", [](py::function f) { 43 m.def("test_keyword_args", [](py::function f) { 47 m.def("test_unpacking_and_keywords1", [](py::function f) { 53 m.def("test_unpacking_and_keywords2", [](py::function f) { 60 m.def("test_unpacking_error1", [](py::function f) { 65 m.def("test_unpacking_error2", [](py::function f) { 70 m.def("test_arg_conversion_error1", [](py::function [all...] |
H A D | test_gil_scoped.cpp | 39 [](const std::function<void()> &func) { func(); });
|
H A D | pybind11_tests.cpp | 17 For testing purposes, we define a static global variable here in a function that each individual 29 std::list<std::function<void(py::module &)>> &initializers() { 30 static std::list<std::function<void(py::module &)>> inits;
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | functional.h | 2 pybind11/functional.h: std::function<> support 19 struct type_caster<std::function<Return(Args...)>> { 20 using type = std::function<Return(Args...)>; 32 if (!isinstance<function>(src)) 35 auto func = reinterpret_borrow<function>(src); 38 When passing a C++ function as an argument to another C++ 39 function via Python, every function call would normally involve 41 Here, we try to at least detect the case where the function is 42 stateless (i.e. function pointe [all...] |
/gem5/src/systemc/core/ |
H A D | sched_event.hh | 48 std::function<void()> work; 74 ScEvent(std::function<void()> work) :
|
/gem5/src/dev/ps2/ |
H A D | device.hh | 68 void hostRegDataAvailable(const std::function<void()> &c); 98 * time a byte is added, this function is called and passed the 145 std::function<void()> dataAvailableCallback;
|
/gem5/src/dev/pci/ |
H A D | PciHost.py | 67 def pciFdtAddr(self, bus=0, device=0, function=0, register=0, space=0, 72 functionf = function & 0x7 81 functionf != function or \
|
/gem5/src/arch/x86/ |
H A D | cpuid.hh | 60 bool doCpuid(ThreadContext * tc, uint32_t function,
|
H A D | cpuid.cc | 89 doCpuid(ThreadContext * tc, uint32_t function, argument 92 uint16_t family = bits(function, 31, 16); 93 uint16_t funcNum = bits(function, 15, 0); 148 warn("x86 cpuid family 0x8000: unimplemented function %u", 172 warn("x86 cpuid family 0x0000: unimplemented function %u",
|
/gem5/src/gpu-compute/ |
H A D | hsa_object.hh | 57 static std::vector<std::function<HsaObject*(const std::string&, int,
|
/gem5/tests/test-progs/asmtest/src/riscv/isa/rv64ud/ |
H A D | fclass.S | 17 # Replace the function with the 32-bit variant defined in test_macros.h
|
H A D | fadd.S | 17 # Replace the function with the 32-bit variant defined in test_macros.h
|
/gem5/src/sim/probe/ |
H A D | probe.hh | 197 * templates off the class containing the function that notify calls. 211 * class type T which is the class containing the function that notify will 214 * Note that the function is passed as a pointer on construction. 221 void (T::* function)(const Arg &); member in class:ProbeListenerArg 227 * @param func a pointer to the function on obj (called on notify). 232 function(func) 237 * the function passed during construction. 240 virtual void notify(const Arg &val) { (object->*function)(val); }
|
/gem5/src/arch/riscv/insts/ |
H A D | amo.hh | 127 AtomicGenericOp(T _a, std::function<void(T*,T)> _op) 133 std::function<void(T*,T)> op;
|
/gem5/src/arch/arm/insts/ |
H A D | mem64.hh | 272 AtomicGeneric2Op(T _a, std::function<void(T*,T)> _op) 285 std::function<void(T*,T)> op; 292 AtomicGeneric3Op(T _a, T _c, std::function<void(T*, T, T)> _op) 306 std::function<void(T*, T, T)> op; 314 std::function<void(T*, std::array<T, 2>&, std::array<T, 2>)> _op) 328 std::function<void(T*, std::array<T, 2>&, std::array<T, 2>)> op;
|
/gem5/ext/googletest/googletest/samples/ |
H A D | sample3-inl.h | 149 // Applies a function/functor on each element of the queue, and 153 Queue* Map(F function) const { 156 new_queue->Enqueue(function(node->element()));
|
/gem5/src/base/ |
H A D | coroutine.hh | 161 * it needs to run. The first argument of the function should be a 173 Coroutine(std::function<void(CallerType&)> f, bool run_coroutine = true) 265 std::function<void(CallerType&)> task;
|
/gem5/src/sim/ |
H A D | mathexpr.hh | 53 typedef std::function<double(std::string)> EvalCallback;
|