addRequired(), Loop Unrolling

Hi,

I am trying to set loop unrolling as a required pass.
AU.addRequired();

should I include any header file?
How can I be possessive that “LoopUnroll” is the name I need ?

Thanks.

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

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 ?

?

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)