[LLVMdev] misc questions on opt and bitcode
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev