From: Doug Evans <dje@sebabeach.org>
To: cgen@sourceware.org
Subject: Re: new do-count rtl
Date: Fri, 28 Aug 2009 06:31:00 -0000 [thread overview]
Message-ID: <4A97799F.4020901@sebabeach.org> (raw)
In-Reply-To: <4A96FC2B.8010605@sebabeach.org>
Doug Evans wrote:
> Doug Evans wrote:
>> Hi.
>>
>> What do folks think of adding a new rtl for iterating a specified
>> number of times.
>>
>> Something like
>>
>> (do-count nr-times iter-var expr1 [expr2 ...])
>>
>> For now the result would always be void, and iter-var would always
>> have mode INT.
>> The set of expressions is performed nr-times times and iter-var has
>> values 0 ... nr-times - 1.
>>
>> ?
>>
>
> Checked in.
>
> 2009-08-27 Doug Evans <dje@sebabeach.org>
>
> Add do-count rtl function.
> * rtl-c.scm (s-do-count): New function.
> (do-count): New rtl handler.
> * rtl-traverse.scm (-rtx-traverse-iteration): New function.
> (-rtx-make-traverser-table): Add ITERATION.
> * rtl.scm (rtx-env-make-iteration-locals): New function.
> * rtx-funcs.scm (do-count): New rtl function.
> * cpu/play.cpu: Add do-count-test insn.
> * doc/rtl.texi: Add docs on do-count.
>
fyi,
I updated the patch to support an rtl expression for the number of
iterations, and swapped the iteration-var and number-of-iterations
parameters (felt more consistent with sequence/parallel).
prev parent reply other threads:[~2009-08-28 6:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 16:45 Doug Evans
2009-08-27 21:35 ` Doug Evans
2009-08-28 1:59 ` Dave Korn
2009-08-28 2:37 ` Doug Evans
2009-08-28 6:31 ` Doug Evans [this message]
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=4A97799F.4020901@sebabeach.org \
--to=dje@sebabeach.org \
--cc=cgen@sourceware.org \
/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).