Displaying 3 results from an estimated 3 matches for "hascomputableloopevolution".
2009 Oct 12
0
[LLVMdev] Accessing Loop Variables
...A[i][j+k] = i + j;
>
> Is there anyway for me to know that in A[i][j+k], i & j are loop
> variables
> whereas k is not!
The ScalarEvolution analysis can help here. If you've already identified
i, j, and k yourself, you can call getSCEV on them and use the
isLoopInvariant and hasComputableLoopEvolution member functions.
ScalarEvolution doesn't yet help in identifying the indices used in
each dimension of a multi-dimensional array reference in the way that a
traditional dependence analysis would want to see them, though that's
a future goal.
Dan
2007 Feb 12
1
[LLVMdev] using a SCEV
Hello,
If I have a value with a SCEV for which the hasComputableLoopEvolution
member function returns true for a given loop, is there a way to construct
the value one or more iterations ahead in the loop? I guess I can dyn_cast
the SCEV down to each of the various subclasses and construct these values
myself for each one, but I'm wondering if there's something I miss...
2009 Oct 12
3
[LLVMdev] Accessing Loop Variables
Hi,
How do I access the loop variables in a loop.
for(i = 0; i < N; i++)
for(j = 0; j < M; j++)
A[i][j+k] = i + j;
Is there anyway for me to know that in A[i][j+k], i & j are loop variables
whereas k is not!
Regards,
Prasenjit Chakraborty
Performance Modeling and Analysis
IBM Systems & Technology Lab