[cfe-dev] Clang command for OpenCL
Enrique González via cfe-dev
cfe-dev at lists.llvm.org
Wed May 20 03:59:11 PDT 2020
Dear all,
I am trying to use a command like the following one to convert an OpenCL
file into a bytecode:
clang -x cl -cl-std=CL2.0 -emit-llvm -target spir64 -Xclang
-finclude-default-header -cl-single-precision-constant INPUT.cl -o
INPUT.bc
This command gives me a .llc file as output instead of a .bc. Which is the
error? I cannot use the flag "-emit-llvm-bc" without using the frontend.
I attach the compilation link:
https://godbolt.org/z/QRgojA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200520/1f2cc9d9/attachment.html>
More information about the cfe-dev
mailing list