Dear guys, I am in need of discovering induction variables in loops. Does LLVM provide a pass that already does this? For instance, given: int a = 0, i; for (i = 0; i < 10; i++) { a += 5; } I would like to know that variable 'a' depends on variable 'i'. Thank you very much, Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100809/5d6226c4/attachment.html>
On Sun, Aug 8, 2010 at 9:31 PM, Douglas do Couto Teixeira < douglasdocouto at gmail.com> wrote:> Dear guys, > > I am in need of discovering induction variables in loops. Does > LLVM provide a pass that already does this? For instance, given: >Take a look at lib/Analysis/ScalarEvolution*. Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100808/51faba41/attachment.html>