search for: transformed_program

Displaying 2 results from an estimated 2 matches for "transformed_program".

2015 Feb 05
2
[LLVMdev] Example for usage of LLVM/Clang/libclc
...nternal attribute and then run global dead code elimination (it should remove most of the unused functions). You can use the opt tool to do this. e.g. if you had kernel entry points foo and bar you could run the following $ opt -internalize-public-api-list=foo,bar -globaldce your_program.bc > transformed_program.bc Hope that helps.
2015 Feb 03
2
[LLVMdev] Example for usage of LLVM/Clang/libclc
Hi, My goal is to use Clang/LLVM/libclc to compile an OpenCL kernel and eventually generate a PTX code. I already did this but I am not sure if the PTX code I am generating is correct (is the one that is supposed to be generated). For example, currently, In OpenCL : get_global_id(0) translates to In LLVM : %call = tail call i32 @get_global_id(i32 0) which translates to In PTX: