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

Eli Friedman eli.friedman at gmail.com
Mon Nov 26 18:33:51 PST 2012


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 LLVM
even if clang can't use it.

-Eli



More information about the llvm-dev mailing list