<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all, <div><br></div><div>I am new with LLVM and I have written a pass able to analyze the code and see if functions in a module are pure. </div><div>I managed to run the pass with opt -load on a simple <span style="font-size: 12pt; ">(single file)</span><span style="font-size: 12pt; "> program</span><span style="font-size: 12pt; "> </span><span style="font-size: 12pt; ">IR (generated with clang)</span><span style="font-size: 12pt; ">. </span></div><div><span style="font-size: 12pt; ">Now I am willing to run it on a structured program (probably on a benchmark suite like: </span><a href="http://euler.slu.edu/~fritts/mediabench/" style="font-size: 12pt; ">http://euler.slu.edu/~fritts/mediabench/</a><span style="font-size: 12pt; ">) to see how many pure function are identified and how many time it takes to perform the analysis (similarly to the -time-passes option). </span></div><div>Do you have any suggestion on how to do it?</div><div><br></div><div>Thank you in advance, </div><div><br></div><div>Niko</div>                                           </div></body>
</html>