intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.21k stars 723 forks source link

Upstream SPIR-V built-ins declarations #1431

Open Fznamznon opened 4 years ago

Fznamznon commented 4 years ago

We have to upstream SPIR-V buit-ins declarations (enabled by https://github.com/intel/llvm/pull/1384 ) to llorg. Otherwise we can't compile any SYCL sample using our SYCL headers and llorg clang:

.../build/bin/../include/sycl/CL/__spirv/spirv_ops.hpp:26:2: error: "SPIR-V built-ins are not available. Please set -fdeclare-spirv-builtins flag."
#error                                                                         \
 ^
bader commented 4 years ago

We can put an explicit header with the built-in declarations as a mitigation measure under ifdef and replace error directive with a warning/note.