Searched refs:tuple (Results 51 - 72 of 72) sorted by relevance

123

/gem5/ext/testlib/
H A Dmain.py126 tags = tuple()
/gem5/src/python/m5/
H A Dsimulate.py262 if not isinstance(item, tuple) or len(item) != 2:
H A Dparams.py338 # list or tuple, it generates a single-element list.
340 if isinstance(value, (list, tuple)):
366 if isinstance(value, (list, tuple)):
377 if isinstance(value, (list, tuple)):
808 elif isinstance(args[0], (list, tuple)):
1033 return '%d.%d.%d.%d' % tuple(tup)
2048 if isinstance(other, (list, tuple)):
H A DSimObject.py1063 if isinstance(idx, tuple):
1717 if not isinstance(value, (list, tuple)) or len(value) == 0:
/gem5/ext/pybind11/tests/
H A Dtest_class.py119 objects = [tuple(), dict(), m.Pet("Polly", "parrot")] + [m.Dog("Molly")] * 4
H A Dtest_class.cpp127 py::isinstance<py::tuple>(l[0]),
198 auto o = py::reinterpret_borrow<py::tuple>(args)[0];
H A Dtest_sequences_and_iterators.cpp338 m.def("tuple_iterator", &test_random_access_iterator<py::tuple>);
/gem5/ext/googletest/googlemock/test/
H A Dgmock-actions_test.cc74 using testing::tuple;
376 virtual int Perform(const tuple<bool, int>& args) { argument
390 // it a tuple whose size and type are compatible with F's argument
392 // 0-tuple; if F is void(bool, int), then Perform() takes a
393 // tuple<bool, int>, and so on.
440 virtual bool Perform(const tuple<int>& arg) {
484 Result Perform(const tuple<>&) const { return 0; }
609 action.Perform(tuple<>());
H A Dgmock-matchers_test.cc159 using testing::tuple;
1930 typedef ::testing::tuple<long, int> Tuple2; // NOLINT
1932 // Tests that Eq() matches a 2-tuple where the first field == the
1946 // Tests that Ge() matches a 2-tuple where the first field >= the
1961 // Tests that Gt() matches a 2-tuple where the first field > the
1976 // Tests that Le() matches a 2-tuple where the first field <= the
1991 // Tests that Lt() matches a 2-tuple where the first field < the
2006 // Tests that Ne() matches a 2-tuple where the first field != the
5413 bool MatchAndExplain(const tuple<T1, T2>& a_pair, argument
5526 const Matcher<tuple<cons
[all...]
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-param-util-generated.h43 // by the maximum arity of the implementation of tuple which is
3163 : public ParamGeneratorInterface< ::testing::tuple<T1, T2> > {
3165 typedef ::testing::tuple<T1, T2> ParamType;
3278 : public ParamGeneratorInterface< ::testing::tuple<T1, T2, T3> > {
3280 typedef ::testing::tuple<T1, T2, T3> ParamType;
3410 : public ParamGeneratorInterface< ::testing::tuple<T1, T2, T3, T4> > {
3412 typedef ::testing::tuple<T1, T2, T3, T4> ParamType;
3561 : public ParamGeneratorInterface< ::testing::tuple<T1, T2, T3, T4, T5> > {
3563 typedef ::testing::tuple<T1, T2, T3, T4, T5> ParamType;
3729 : public ParamGeneratorInterface< ::testing::tuple<T
[all...]
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h475 4. Any positional arguments still left get put into a tuple (for args), and any
478 extra tuple or dict at the end of the positional arguments.
575 // 4a. If we have a py::args argument, create a new tuple with leftovers
577 tuple extra_args;
579 // We didn't copy out any position arguments from the args_in tuple, so we
581 extra_args = reinterpret_borrow<tuple>(args_in);
583 extra_args = tuple(0);
586 extra_args = tuple(args_size);
747 auto args_ = reinterpret_borrow<tuple>(args_in);
945 auto t = reinterpret_borrow<tuple>(valu
[all...]
H A Dpytypes.h87 Matches * unpacking in Python, e.g. to unpack arguments out of a ``tuple``
300 py::tuple t = reinterpret_borrow<py::tuple>(p); // <-- `p` must be already be a `tuple`
345 /// subclass thereof). May also be passed a tuple to search for any exception class matches in
346 /// the given tuple.
602 /// STL iterator template used for tuple, list, sequence and dict
1198 class tuple : public object { class in inherits:object
1200 PYBIND11_OBJECT_CVT(tuple, object, PyTuple_Check, PySequence_Tuple)
1201 explicit tuple(size_ function in class:tuple
[all...]
H A Dnumpy.h514 auto spec = field.cast<tuple>();
516 auto format = spec[1].cast<tuple>()[0].cast<dtype>();
517 auto offset = spec[1].cast<tuple>()[1].cast<pybind11::int_>();
1503 using arg_call_types = std::tuple<typename vectorize_arg<Args>::call_type...>;
1506 // Runs a vectorized function given arguments tuple and three index sequences:
H A Deigen.h567 auto shape = pybind11::tuple((pybind11::object) obj.attr("shape"));
/gem5/tests/configs/
H A Dbase_config.py328 self.cpu_classes = tuple(cpu_classes)
/gem5/ext/ply/example/GardenSnake/
H A DGardenSnake.py10 # - assignment and tuple assignment work
385 p[0] = ast.Function(None, p[2], tuple(p[3]), (), 0, None, p[5])
580 # May need to promote singleton to tuple
585 # Convert into a tuple?
599 # singleton -> tuple
/gem5/ext/ply/ply/
H A Dyacc.py187 # a tuple of (startline,endline) representing the range of lines
188 # for a symbol. The lexspan() method returns a tuple (lexpos,endlexpos)
1156 self.prod = tuple(prod)
1277 self.prod = tuple(self.prod)
1642 # Compute the value of FIRST1(beta) where beta is a tuple of symbols.
2135 # is a tuple (state,N) where state is a number and N is a nonterminal symbol.
2896 if not isinstance(tokens,(list, tuple)):
2897 self.log.error("tokens must be a list or tuple")
2930 if not isinstance(self.prec,(list,tuple)):
2931 self.log.error("precedence must be a list or tuple")
[all...]
/gem5/src/systemc/tests/
H A Dverify.py304 common = filter(lambda t: not t.startswith(tuple(bases)), contents)
/gem5/util/stats/
H A Dprofile.py129 node.children = tuple(children)
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h723 // An internal helper class for doing compile-time loop on a tuple's
820 // TransformTupleValues uses to implement a tuple traversal.
827 // For each member of tuple 't', taken in order, evaluates '*out++ = f(t)'.
849 // Successively invokes 'f(element)' on each element of the tuple 't',
1372 // Implements a matcher that compares the two fields of a 2-tuple
1377 // used to match a tuple<int, short>, a tuple<const long&, double>,
1384 operator Matcher< ::testing::tuple<T1, T2> >() const {
1385 return MakeMatcher(new Impl< ::testing::tuple<T1, T2> >);
1388 operator Matcher<const ::testing::tuple<T
[all...]
/gem5/src/arch/
H A Disa_parser.py389 elif isinstance(arg, tuple):
1584 # element is a tuple (filename, lineno) that records the
2151 # The param list generates a tuple, where the first element is a
2395 # The arg list generates a tuple, where the first element is a
2539 elif isinstance(flags, tuple):
2540 # it's a tuple: it should be a triple,
2556 if isinstance(reg_spec, tuple):
/gem5/src/arch/arm/
H A Dmiscregs.cc44 #include <tuple>
988 std::tuple<bool, bool>
1024 std::tuple<bool, bool>

Completed in 138 milliseconds

123