[LLVMdev] [RFC] Upstreaming LLVM/SPIR-V converter

Owen Anderson
Sun, 17 May 2015 07:13:34 -0000

at llvm/lib/Bitcode/SPIRV, which will facilitate OpenCL vendors to do
conversions between LLVM and SPIR-V. On the other hand, we create a
llvm/Target/SPIR-V, which uses llvm/lib/Bitcode/SPIRV to generate SPIR-V. The
SPIR-V target allows Clang and other LLVM front ends to target generic
OpenCL/Vulkan platforms.

I don’t think Chris was suggesting lib/Bitcode/SPIRV.  That wouldn’t make a lot
of sense, since Bitcode != SPIR-V.

FWIW, I agree with Chris that it makes sense as a parallel to lib/Bitcode.
SPIR-V is (almost) an alternate encoding of LLVM IR, with a few things
added/removed, and it makes sense to treat it in a similar manner to our normal
serialization format.

—Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20150517/42a98623/attachment.html>