/gem5/ext/pybind11/tests/ |
H A D | test_pytypes.cpp | 50 m.def("get_dict", []() { return py::dict("key"_a="value"); }); 56 auto d1 = py::dict("x"_a=1, "y"_a=2); 57 auto d2 = py::dict("z"_a=3, **d1); 75 auto s2 = "{a} + {b} = {c}"_s.format("a"_a=1, "b"_a=2, "c"_a=3); 189 "str"_a=py::str(), 190 "bool"_a=py::bool_(), 191 "int"_a [all...] |
H A D | test_callbacks.cpp | 37 auto d1 = py::dict("key"_a="value", "a"_a=1); 39 auto d3 = py::dict("b"_a=2); 44 return f("x"_a=10, "y"_a=20); 49 auto kwargs = py::dict("d"_a=4); 50 return f(1, *args, "c"_a=3, **kwargs); 54 auto kwargs1 = py::dict("a"_a=1); 55 auto kwargs2 = py::dict("c"_a=3, "d"_a [all...] |
H A D | test_kwargs_and_defaults.cpp | 33 m.def("kw_func_udl", kw_func, "x"_a, "y"_a=300); 34 m.def("kw_func_udl_z", kw_func, "x"_a, "y"_a=0); 101 .def("foo1", &KWClass::foo, "x"_a, "y"_a);
|
H A D | test_tagbased_polymorphic.cpp | 124 .def(py::init<std::string, int>(), "name"_a, "excitement"_a = 9001) local
|
H A D | test_numpy_array.cpp | 234 "array"_a=py::array(), 235 "array_t<int32>"_a=py::array_t<std::int32_t>(), 236 "array_t<double>"_a=py::array_t<double>() 241 "array"_a=py::array(o), 242 "array_t<int32>"_a=py::array_t<std::int32_t>(o), 243 "array_t<double>"_a=py::array_t<double>(o)
|
H A D | test_methods_and_attributes.cpp | 375 .def("g", &ArgInspector::g, "a"_a.noconvert(), "b"_a, "c"_a.noconvert()=13, "d"_a=ArgInspector2(), py::arg() = ArgAlwaysConverts())
|
H A D | test_class.cpp | 345 "a"_a, "b"_a, "c"_a);
|
H A D | test_stl.cpp | 247 m.def("stl_pass_by_pointer", [](std::vector<int>* v) { return *v; }, "v"_a=nullptr);
|
H A D | test_builtin_casters.cpp | 140 }, "copy"_a);
|
/gem5/src/gpu-compute/ |
H A D | gpu_dyn_inst.hh | 56 AtomicOpAnd(T _a) : a(_a) { } argument 66 AtomicOpOr(T _a) : a(_a) { } argument 76 AtomicOpXor(T _a) : a(_a) {} argument 116 AtomicOpExch(T _a) : a(_a) { } argument 126 AtomicOpAdd(T _a) : a(_a) { } argument 136 AtomicOpSub(T _a) argument 164 AtomicOpMax(T _a) argument 180 AtomicOpMin(T _a) argument [all...] |
/gem5/src/python/ |
H A D | marshal.cc | 56 auto locals = py::dict("source"_a=argv[1]);
|
/gem5/src/arch/riscv/insts/ |
H A D | amo.hh | 127 AtomicGenericOp(T _a, std::function<void(T*,T)> _op) argument 128 : a(_a), op(_op) { }
|
/gem5/src/arch/arm/insts/ |
H A D | mem64.hh | 272 AtomicGeneric2Op(T _a, std::function<void(T*,T)> _op) argument 273 : a(_a), op(_op) 292 AtomicGeneric3Op(T _a, T _c, std::function<void(T*, T, T)> _op) argument 293 : a(_a), c(_c), op(_op) 313 AtomicGenericPair3Op(std::array<T, 2>& _a, std::array<T, 2> _c, argument 315 : a(_a), c(_c), op(_op)
|
/gem5/ext/pybind11/tests/test_embed/ |
H A D | test_interpreter.cpp | 57 auto locals = py::dict("hello"_a="Hello, World!", "x"_a=5, **module.attr("__dict__")); 215 auto locals = py::dict("count"_a=0);
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | cast.h | 1852 constexpr arg operator"" _a(const char *name, size_t) { return arg(name); }
|