[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
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
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev