cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

shrike
Journeyman III

emit llvm IR with opencl compiler

Hello

I do some reasearch and I want to emit llvm code with opencl compiler from command line.

How do I do that.I think I should use clc though I am not sure

Also I whould like to know where can I see all the options of the compiler thank you.

0 Likes
1 Reply
MicahVillmow
Staff
Staff

emit llvm IR with opencl compiler

Shrike,
We don't expose what compile options we use for the compiler at this time. Also, you might be able to get the bitcode by extracting the llvmir section from the OpenCL ELF Binary when using the -fbin-llvmir compile option. Please see section E of the programming guide for more information.
0 Likes