Closed ghost closed 7 years ago
I changed bool type width in my compiler from i1 to i8 (x is bool). That solved my problem. But I don't know why the llc doesn't work when the bool type width is i1.
A bunch of the LLVM backends handle i1
badly (which is pretty sad). This is why almost all frontends define bool
to be i8
.
I would definitely like to fix this though. By the looks of this, it is probably failing on the zext from i1
operation. All that should be needed is to promote the i1
to an i8
internally.
This has been fixed as of 2e0ff8d2168d897362c2222c0bfce76ae5ee23f3.
The llc gave me the following error:
The
prg.ll
file: