Hi.
I'm trying to extract LLVM IR from the binary generated by OpenCL offline compiler.
(http://developer.amd.com/support/KnowledgeBase/Lists/KnowledgeBase/DispForm.aspx?ID=115)
I tested with the clbinarygen.c given from the above link with the option (-fno-bin-exe -fno-bin-amdil),
and I could get the .llvmir section for a simple vector addition cl kernel.
But this output format is still not a pure LLVM bitcode and has other BIF-related stuffs.
How could I easily get the LLVM IR for the kernel so that I can feed it into llvm-dis?
(The attached is the output from running clbinarygen.c with the above option.)
Thanks.