<font color="#000066"><font size="2"><font face="times new roman,serif">Hi All, <br clear="all"></font></font></font><div><font color="#000066" face="'times new roman', serif">I am trying to write a machine learning algorithm that would predict a good optimization to apply to a given function. I wanted to perform this by modifying the list of optimizations applied by the FPPassManager based on some dynamic data. <br>



</font></div><div><font color="#000066" face="'times new roman', serif">At present I was trying to do this by modifying the FPPassManager::runOnFunction(Function) implementation. However this is causing the following error:</font></div>

<div><font color="#000066" face="'times new roman', serif">"LLVM ERROR: 'main' label emitted multiple times to assembly file"</font></div><div><font color="#000066" face="'times new roman', serif">I may be applying a few passes multiple times. Could anyone with an understanding of the PassManager shed some light on this?</font></div>

<div><font color="#000066" face="'times new roman', serif">Thanks, </font></div><div><font color="#000066" face="'times new roman', serif">Sameer</font></div><div><font color="#000066" face="'times new roman', serif"><br>

</font></div>
<div>-- <br><font face="'times new roman', serif" color="#666666">Sameer Kulkarni</font><div><font face="'times new roman', serif"><font color="#666666">My Present email load:</font> <a href="http://courteous.ly/Ok2EKh" target="_blank">http://courteous.ly/Ok2EKh</a><br>



</font><div><font face="'times new roman', serif"><font color="#666666">Work:</font> <a href="http://www.cis.udel.edu/~skulkarn/" target="_blank">www.cis.udel.edu/~skulkarn/</a></font></div><div><br></div></div><br>




</div>