Sameer Kulkarni
2011-Jul-07 00:59 UTC
[LLVMdev] Dynamic Optimization selection for individual functions
Hi All, 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. At present I was trying to do this by modifying the FPPassManager::runOnFunction(Function) implementation. However this is causing the following error: "LLVM ERROR: 'main' label emitted multiple times to assembly file" I may be applying a few passes multiple times. Could anyone with an understanding of the PassManager shed some light on this? Thanks, Sameer -- Sameer Kulkarni My Present email load: http://courteous.ly/Ok2EKh Work: www.cis.udel.edu/~skulkarn/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110706/53aa6897/attachment.html>
Devang Patel
2011-Jul-07 17:11 UTC
[LLVMdev] Dynamic Optimization selection for individual functions
On Jul 6, 2011, at 5:59 PM, Sameer Kulkarni wrote:> Hi All, > 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. > At present I was trying to do this by modifying the FPPassManager::runOnFunction(Function) implementation. However this is causing the following error: > "LLVM ERROR: 'main' label emitted multiple times to assembly file" > I may be applying a few passes multiple times.May be you're emitting the function, at the end of compilation, multiple times ? - Devang> Could anyone with an understanding of the PassManager shed some light on this? > Thanks, > Sameer > > -- > Sameer Kulkarni > My Present email load: http://courteous.ly/Ok2EKh > Work: www.cis.udel.edu/~skulkarn/ > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110707/5c9fe292/attachment.html>