[LLVMdev] Induction variable

Douglas do Couto Teixeira douglasdocouto at gmail.com
Sun Aug 8 21:31:17 PDT 2010


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>


More information about the llvm-dev mailing list