From: "Richard Guenther" <richard.guenther@gmail.com>
To: "Rob Quill" <rob.quill@gmail.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: Scripted pass manager
Date: Fri, 30 Nov 2007 20:15:00 -0000 [thread overview]
Message-ID: <84fc9c000711300704p10556ed7w72a9333afa1d19f3@mail.gmail.com> (raw)
In-Reply-To: <baf6008d0711300602u328076e6g599e074e6d0f9678@mail.gmail.com>
On Nov 30, 2007 3:02 PM, Rob Quill <rob.quill@gmail.com> wrote:
> On 29/11/2007, Richard Guenther <richard.guenther@gmail.com> wrote:
> > On Nov 27, 2007 2:39 PM, Richard Guenther <richard.guenther@gmail.com> wrote:
> > >
> > > On Nov 26, 2007 11:20 PM, Rob Quill <rob.quill@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > This patch scripts the pass manager in a way similar to the the
> > > > options.c and options.h are generated. It shows no regressions against
> > > > the current mainline on x86_64-linux.
> > >
> > > ;)
> > >
> > > With a "scripted pass manager" I of course ment a pass manager that
> > > allows re-configuration of the pass pipeline without re-compiling. For
> > > example by embeding LUA (or another tiny scripting language). With
> > > control flow you should be able to experiment with looping over
> > > optimization passes until nothing changes, etc., much like a simple
> > > "plugin" interface without actually having plugins.
> >
> > Let me elaborate a bit on what I want from a 'scripted pass manager'.
> > The statically specified pass pipeline is a limitation for experiments with
> > pass ordering - so as a first thing I'd like to dynamically initialize the
> > pass pipeline from - say - a textual description - that is either specified
> > on the command-line or by looking up a default (which would match
> > the current pipeline configuration) which is statically built into gcc.
>
> So, as a starting point it would be better if the pass order was
> decided at run time by a script instead of at compile time. So, to
> check we're thinking along the same lines, I'm imagining that some
> function/script would read the passes.def file at run-time and build
> the pass list from this, e.g. very roughly
>
> while(not EOF)
> {
> char *s = read_next_line("passes.def");
> make_next_pass(s);
> }
>
> although if it was done from the command line, I suppose we would just
> have for instance, some list of passes at run-time and turn these
> somehow into the actually pass list? Is that would you had in mind?
Yes, that would already be very useful. You'd either specify
-fpasses=/tmp/my_passes.def or a default passes.def would be used
(either
installed somewhere or preferably statically built into the compiler).
Richard.
next prev parent reply other threads:[~2007-11-30 15:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 0:38 Rob Quill
2007-11-27 19:07 ` Richard Guenther
2007-11-27 19:19 ` Basile STARYNKEVITCH
2007-11-29 15:42 ` Richard Guenther
2007-11-29 16:40 ` Ramana Radhakrishnan
2007-11-30 20:04 ` Rob Quill
2007-11-30 20:15 ` Richard Guenther [this message]
2007-12-05 0:14 ` Diego Novillo
2007-12-05 0:56 ` Andrew Pinski
2007-12-05 15:36 ` Ian Lance Taylor
2007-12-05 18:38 ` Rob Quill
2007-12-05 18:41 ` Richard Guenther
2007-12-05 18:42 ` Diego Novillo
[not found] ` <20071205222948.GC24660@air.net.au>
2007-12-06 10:46 ` Rob Quill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84fc9c000711300704p10556ed7w72a9333afa1d19f3@mail.gmail.com \
--to=richard.guenther@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rob.quill@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).