[LLVMdev] How to generate a non-fatal error from the backend

Eli Friedman eli.friedman at gmail.com
Thu Jun 21 18:27:27 PDT 2012


On Thu, Jun 21, 2012 at 6:12 PM, Carter, Jack <jcarter at mips.com> wrote:
> There are times that I want to generate an ERROR, but not stop processing of
> the code. An example of this would be when I find there is a value out of
> range for a specific operand.
>
> producing the error for all instances of this class of errors would be good.
>
> Also, I would like to have the error message have some relationship to the
> offending source.

Can you give a bit more context?  The way LLVM handles errors varies a
lot depending on what you're doing.

-Eli



More information about the llvm-dev mailing list