> On May 12, 2015, 2:52 p.m., Joel Hestness wrote: > > Can you give examples for how this will be used and why it's needed?
I cannot provide the exact example, but one could imagine a situtation where an action wants to collect an integer count from multiple structures before deciding what message to enqueue. Using local variables avoids having to construct a very long conditional test and in general leads to cleaner code within actions. - Brad ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.gem5.org/r/2798/#review6166 ----------------------------------------------------------- On May 11, 2015, 10:21 p.m., Tony Gutierrez wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://reviews.gem5.org/r/2798/ > ----------------------------------------------------------- > > (Updated May 11, 2015, 10:21 p.m.) > > > Review request for Default. > > > Repository: gem5 > > > Description > ------- > > Changeset 10855:e73aade25474 > --------------------------- > slicc: support for local variable declarations in action blocks > > > Diffs > ----- > > src/mem/slicc/ast/ExprStatementAST.py > fbdaa08aaa426b9f4660c366f934ccb670d954ec > > Diff: http://reviews.gem5.org/r/2798/diff/ > > > Testing > ------- > > > Thanks, > > Tony Gutierrez > > _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
