public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFA jit 0/2] minor refactorings for reuse
@ 2014-01-01  0:00 Tom Tromey
  2014-01-01  0:00 ` [RFA jit 1/2] introduce class toplev Tom Tromey
  2014-01-01  0:00 ` [RFA jit 2/2] introduce scoped_timevar Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Tom Tromey @ 2014-01-01  0:00 UTC (permalink / raw)
  To: jit; +Cc: gcc-patches

I wanted to do something like playback::context::compile, but in my
project I can't really reuse all the JIT code -- really I just wanted
to be able to use toplev_main and toplev_finalize.

Looking into the code, though, I saw a few spots that could be cleaned
up a little, so I wouldn't have to worry as much about keeping my
hacks in sync with the JIT branch.

The first patch here changes the toplev code into a class and arranges
for the timevars to be managed there.

The second patch just introduces scoped timevars to make them less
error-prone to use.

I built and tested this using the JIT test suite.

Let me know what you think,
Tom

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-19  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-01  0:00 [RFA jit 0/2] minor refactorings for reuse Tom Tromey
2014-01-01  0:00 ` [RFA jit 1/2] introduce class toplev Tom Tromey
2014-01-01  0:00   ` David Malcolm
2014-01-01  0:00     ` Tom Tromey
2014-01-01  0:00 ` [RFA jit 2/2] introduce scoped_timevar Tom Tromey
2014-01-01  0:00   ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).