Re: [cfe-users] Emit LLVM IR from OpenCL

2016-01-16 Thread PanXiuli via cfe-users
Subject: [cfe-users] Emit LLVM IR from OpenCL From: cfe-users@lists.llvm.org Hi, Could anybody give me an example of emitting LLVM IR from OpenCL code? I tried this for the backprop benchmark from the rodinia benchmark suite: clang -x cl backprop_kernel.cl -emit-llvm -S -o backprop_kernel.ll and the

[cfe-users] Emit LLVM IR from OpenCL

2016-01-15 Thread Zheng Wang via cfe-users
Hi, Could anybody give me an example of emitting LLVM IR from OpenCL code? I tried this for the backprop benchmark from the rodinia benchmark suite: clang -x cl backprop_kernel.cl -emit-llvm -S -o backprop_kernel.ll and the the following warning: backprop_kernel.cl:24:13: warning: implicit de