[LLVMdev] emit broken llvm code

Duncan Sands baldrick at free.fr
Fri May 4 00:39:34 PDT 2012


Hi Roland,

> I'm currently working on an extension for clang. Apparently, I'm doing sth incorrectly currently. The Verify complains with
> Wrong type for attribute signext
> <8 x i32>  (<256 x i1>, i16,<2 x double>)* @_Z4testsDv2_d
>
> Now, this information is not that useful. Is it possible to emit this "broken" llvm code in order to better understand what went wrong?

you can run in the debugger, put a breakpoint on this verifier message,
and rummage around in the verifier to work out what the problem is.

Ciao, Duncan.



More information about the llvm-dev mailing list