[LLVMdev] [llvm-commits] Flag to print vectorized loops

Hal Finkel hfinkel at anl.gov
Mon Nov 26 21:32:17 PST 2012

----- Original Message -----
> From: "Eli Friedman" <eli.friedman at gmail.com>
> To: "Sean Silva" <silvas at purdue.edu>
> Cc: llvm-commits at cs.uiuc.edu, "Sebastian Pop" <spop at codeaurora.org>, llvmdev at cs.uiuc.edu
> Sent: Monday, November 26, 2012 8:33:51 PM
> Subject: Re: [llvm-commits] [LLVMdev]  Flag to print vectorized loops
> On Mon, Nov 26, 2012 at 6:26 PM, Sean Silva <silvas at purdue.edu>
> wrote:
> >> IMO, the right way to build this is something like
> >> "InlineAsmDiagnosticHandler" in LLVMContext (but hopefully better,
> >> and more
> >> structured :)
> >
> > Hey Chris,
> >
> > Did you catch my suggestion in reply to Hal, about maybe
> > generalizing
> > Clang's diagnostics infrastructure up into LLVM? Your reply seems
> > along the same lines. It seems like a natural fit to reuse that
> > rather
> > than make another one (and it would permit seamless integration).
> > Also, presumably LLD is going to be giving sweet diagnostics some
> > day,
> > and this change would be analogous to the work that Michael Spencer
> > has been doing lifting and generalizing the option-parsing stuff
> > from
> > Clang. What do you think about that approach?
> clang's diagnostic code is inseparably tied to clang's SourceManager,
> which really only makes sense for code using clang's Lex library.  It
> might make sense to have a simpler diagnostic printing library in
> even if clang can't use it.

Printing notices is one useful way this information can be used, but not the only method. This information can also be used in IDEs for hover-over popups (and similar UI widgets). One generic capability that clang should eventually provide is the generation of 'listing' files. These are copies of the source code where each line is annotated with information on what optimizations were performed and/or hints on why some common or requested optimization was not performed.


> -Eli
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory

More information about the llvm-dev mailing list