[LLVMdev] madandas at soe.ucsc.edu
Madan Das
madandas at soe.ucsc.edu
Sat Nov 10 19:25:04 PST 2012
Hello,
I'm trying to find if the access within a loop body is using the loop
induction variable, and to get the start and end indices of the loop.
for(int i = start; i < end; i++) { A[i] = 0; }
Let's say, I want to replace this with a function call 'zero(A,start,
end)'
How can I get the Value for start and end, and see if the index is same as
loop induction variable? Assume loop is in loopsimplify form.
I browsed many header files, but could't figure out.
Thanks in advance!
madan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121110/85951655/attachment.html>
More information about the llvm-dev
mailing list