Hi, I am trying to set loop unrolling as a required pass. AU.addRequired<LoopUnroll>(); should I include any header file? How can I be possessive that "LoopUnroll" is the name I need ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090606/aaab7bd1/attachment.html>
Dear staff, I need to get the line number and file name information of the source code for each instruction in *.bc file. I find that llvm-2.4 can not support "-O1 -g", which means if we are at O1 to O3 optimization level, we can not get any dbg.stoppoint inserted into the LLVM IR. However, our project requires us to get the line number and file name information of the source code for each instruction in *.bc file at any Ox level. I have built and run llvm-2.5 and found that it still can not support "-Ox -g". If we are not using "-g", do we have other ways to get the line number and file name information for each instruction in *.bc file? Best, Heming
On Sat, Jun 6, 2009 at 8:38 AM, Rotem Varon<varonrotem at gmail.com> wrote:> Hi, > > I am trying to set loop unrolling as a required pass. > AU.addRequired<LoopUnroll>();In general, it is good idea to schedule loop unrolling pass (using PassManager.add()) at the appropriate place in your optimization queue. AnalysisUsage.addRequired() is best suited for analysis not transformations.> should I include any header file? > How can I be possessive that "LoopUnroll" is the name I need ?? - Devang
On Sat, Jun 6, 2009 at 8:56 AM, <hc2428 at columbia.edu> wrote:> Dear staff, > > I need to get the line number and file name information of the > source code for each instruction in *.bc file. I find that llvm-2.4 > can not support "-O1 -g", which means if we are at O1 to O3 > optimization level, we can not get any dbg.stoppoint inserted into the > LLVM IR. > > However, our project requires us to get the line number and file > name information of the source code for each instruction in *.bc file > at any Ox level. I have built and run llvm-2.5 and found that it still > can not support "-Ox -g". > > If we are not using "-g", do we have other ways to get the line > number and file name information for each instruction in *.bc file?llvm-gcc and llvm sources in mainline svn repository supports location information at various optimization levels (it is not supported at -O4 level at the moment) - Devang
Apparently Analagous Threads
- [LLVMdev] Loop unroll : approximate loop size for loops with debug info?
- [LLVMdev] Some questions on the output formats of AliasSetTracker
- [LLVMdev] Loop unrolling a function
- [LLVMdev] Some questions on the output formats of AliasSetTracker
- [LLVMdev] Some questions on the output formats of AliasSetTracker