/gem5/ext/pybind11/tests/ |
H A D | test_buffers.cpp | 79 .def(py::init<ssize_t, ssize_t>()) 81 .def(py::init([](py::buffer const b) { 91 .def("rows", &Matrix::rows) 92 .def("cols", &Matrix::cols) 95 .def("__getitem__", [](const Matrix &m, std::pair<ssize_t, ssize_t> i) { 100 .def("__setitem__", [](Matrix &m, std::pair<ssize_t, ssize_t> i, float v) { 124 .def(py::init<ssize_t>()); 139 .def(py::init<>()) 159 .def(py::init<>()) 165 .def(p [all...] |
H A D | local_bindings.h | 49 .def(py::init<int>()) 50 .def("get", [](T &i) { return i.i + Adjust; });
|
/gem5/ext/pybind11/tests/test_cmake_build/ |
H A D | embed.cpp | 5 m.def("add", [](int i, int j) { return i + j; });
|
/gem5/util/ |
H A D | qdo | 98 def __init__(self, cmd): 119 def expect(self, regexp, timeout = -1): 125 def do_bare_command(self, cmd, timeout = -1): 137 def do_command(self, cmd, timeout = -1): 145 def dir_exists(self, dirname): 154 def safe_close(self):
|
H A D | regress | 84 def split_if_nonempty(s): 98 def system(cmd): 138 def cpu_count():
|
H A D | compile | 35 def do_compile(): 111 def set_group(*args, **kwargs): 119 def add_option(*args, **kwargs): 125 def bool_option(name, default, help): 172 def usage(exitcode=None):
|
/gem5/ext/systemc/src/sysc/qt/md/ |
H A D | ksr1_b.s | 15 .def .debug; .endef
|
H A D | ksr1.s | 15 .def .debug; .endef
|
/gem5/src/systemc/core/ |
H A D | python.cc | 68 m.def("python_ready", &python_ready);
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | init.h | 173 cl.def("__init__", [](value_and_holder &v_h, Args... args) { 182 cl.def("__init__", [](value_and_holder &v_h, Args... args) { 194 cl.def("__init__", [](value_and_holder &v_h, Args... args) { 205 cl.def("__init__", [](value_and_holder &v_h, Args... args) { 231 cl.def("__init__", [func = std::move(class_factory)] 234 cl.def("__init__", [func] 267 cl.def("__init__", [class_func = std::move(class_factory), alias_func = std::move(alias_factory)] 271 cl.def("__init__", [class_func, alias_func] 318 cl.def("__getstate__", std::move(get)); 321 cl.def("__setstate_ [all...] |
/gem5/ext/pybind11/include/pybind11/ |
H A D | iostream.h | 133 m.def("noisy_func", &noisy_func, 204 .def(init<bool,bool>(), arg("stdout")=true, arg("stderr")=true) 205 .def("__enter__", &detail::OstreamRedirect::enter) 206 .def("__exit__", [](detail::OstreamRedirect &self_, args) { self_.exit(); });
|
H A D | pybind11.h | 311 rec->def = new PyMethodDef(); 312 std::memset(rec->def, 0, sizeof(PyMethodDef)); 313 rec->def->ml_name = rec->name; 314 rec->def->ml_meth = reinterpret_cast<PyCFunction>(reinterpret_cast<void (*) (void)>(*dispatcher)); 315 rec->def->ml_flags = METH_VARARGS | METH_KEYWORDS; 330 m_ptr = PyCFunction_NewEx(rec->def, rec_capsule.ptr(), scope_module.ptr()); 414 if (rec->def) { 415 std::free(const_cast<char *>(rec->def->ml_doc)); 416 delete rec->def; 797 PyModuleDef *def local 818 module &def(const char *name_, Func &&f, const Extra& ... extra) { function in class:cpp_function::module 1110 class_ &def(const char *name_, Func&& f, const Extra&... extra) { function in class:cpp_function::class_ 1128 class_ &def(const detail::op_<id, ot, L, R> &op, const Extra&... extra) { function in class:cpp_function::class_ 1140 class_ &def(const detail::initimpl::constructor<Args...> &init, const Extra&... extra) { function in class:cpp_function::class_ 1146 class_ &def(const detail::initimpl::alias_constructor<Args...> &init, const Extra&... extra) { function in class:cpp_function::class_ 1152 class_ &def(detail::initimpl::factory<Args...> &&init, const Extra&... extra) { function in class:cpp_function::class_ 1158 class_ &def(detail::initimpl::pickle_factory<Args...> &&pf, const Extra &...extra) { function in class:cpp_function::class_ [all...] |
H A D | operators.h | 15 # pragma clang diagnostic ignored "-Wunsequenced" // multiple unsequenced modifications to 'self' (when using def(py::self OP Type())) 59 cl.def(op::name(), &op::execute, is_operator(), extra...); 62 cl.def(id == op_itruediv ? "__idiv__" : ot == op_l ? "__div__" : "__rdiv__", 71 cl.def(op::name(), &op::execute_cast, is_operator(), extra...); 74 cl.def(id == op_itruediv ? "__idiv__" : ot == op_l ? "__div__" : "__rdiv__",
|
H A D | attr.h | 80 m.def("foo", foo, py::call_guard<T>()); 86 m.def("foo", [](args...) { 188 PyMethodDef *def = nullptr; member in struct:function_record
|
/gem5/ext/systemc/src/sysc/utils/ |
H A D | sc_hash.h | 89 sc_phash_base( void* def = 0, 167 sc_phash( C def = (C) 0, 174 : sc_phash_base((void*) def, size, density, grow, reorder, hash_fn, cmpr_fn) { } 268 sc_pdhash( C def = (C) 0, 277 : sc_phash_base((void*) def, size, density, grow, reorder, hash_fn, cmpr_fn) 361 sc_strhash( C def = (C) 0, 368 : sc_phash_base((void*) def, size, density, grow, reorder, hash_fn, cmpr_fn)
|
H A D | sc_hash.cpp | 70 void* def, 78 default_value(def), num_bins(0), num_entries(0), max_density(density), 69 sc_phash_base( void* def, int size, int density, double grow, bool reorder, unsigned (*hash_fn)(const void*), int (*cmp_fn)(const void*, const void*) ) argument
|
/gem5/ext/pybind11/tests/test_embed/ |
H A D | test_interpreter.cpp | 38 .def(py::init<std::string>()) 41 m.def("add", [](int i, int j) { return i + j; }); 261 test_module << "def test():\n"; 276 test_module << "def test():\n";
|
/gem5/src/unittest/ |
H A D | stattest.cc | 681 .def("stattest_init", []() { __stattest().init(); }) 682 .def("stattest_run", []() { __stattest().run(); })
|