Why do you want to know?
> I don't know if CLooG can generate a loop like this:
>
> for (i=LB; i>=UB; i--)
> ...
>
> or
>
> for (i=LB; i>=UB; i-=ST)
> ...
>
CLooG won't do this (currently).
Would you want it to?
> Or maybe CLooG uses other loop formats that I'm unaware of?
Well, as you know, CLooG may write out some loops as
if-conditions.
skimo
Hello,
Can someone please tell me the formats of the loops generated by
CLooG?
As far as I know, CLooG always generates a loop using the following
format:
for (i=LB; i<=UB; i++)
...
or
for (i=LB; i<=UB; i+=ST)
...
LB and UB are the lower and the upper bounds (can be any affine
expressions). ST is the loop stride and is always a positive integer.
I don't know if CLooG can generate a loop like this:
for (i=LB; i>=UB; i--)
...
or
for (i=LB; i>=UB; i-=ST)
...
On Sat, Feb 7, 2009 at 6:09 PM, albert <albert....@gmail.com> wrote:
Hello,
Can someone please tell me the formats of the loops generated by
CLooG?
The lower (and upper) bounds, if not affine functions of outer loop variables and parameters, can be a max (or min in case of upper bounds) of a sequence of expressions. Each expression in turn