emit broken llvm code

Hi all,

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?

Already found it my self:

clang++ -cc1 test.cpp -S -o - -disable-llvm-verifier -emit-llvm

does the trick.

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.