[LLVMdev] misc questions on opt and bitcode

Eric Christopher echristo at apple.com
Sun Feb 5 16:46:43 PST 2012


On Feb 5, 2012, at 11:32 AM, Arpan Sen wrote:

> For the very simple example below, I get Unknown instruction error from lli and llvm-dis, while llc does not print anything. Not sure what is that I am missing here. My llvm-gcc version is i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

> 1-39-155-188:pastebin Babai$ llvm-gcc example.c -emit-llvm -c -o example.bc
> 
> Any ideas? 

On which instruction is illegal? Not offhand, but you can use llvm-gcc -S -emit-llvm example.c -o example.ll to get an llvm bitcode file as text and take a look.

-eric

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120205/e1295d6f/attachment.html>


More information about the llvm-dev mailing list