<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">Hello Everyone,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">Does anyone know how am I gonna be able to do data-dependency/loop-dependency analysis with LLVM and clang?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">Looking at the passes webpage -<a href="http://llvm.org/docs/Passes.html#da-dependence-analysis">da-dependence-analysis</a>, apparently it has been mentioned that this pass is doing the job, but using this pass doesn't change anything in the output, neither the <code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:pre-wrap;background:rgb(238,238,238)">./a.out</code> size nor the <code style="margin:0px;padding:1px 5px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;white-space:pre-wrap;background:rgb(238,238,238)">.ll</code> IR-codes when I pass with <b><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">opt  -da </span><span class="" style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">-S</span><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)"> </span><span class="" style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">-o</span><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)"> </span><span class="" style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">foo</span><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">OPT.ll foo</span><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">.ll</span></b></p>







<p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">I was wondering if we can understand the WAR,RAW, etc and also other dependencies using LLVM platform.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">regards,</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:14px;vertical-align:baseline;clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:17.8048000335693px;background-image:initial;background-repeat:initial">-Amir</p></div>