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

Owen Anderson resistor at mac.com
Mon May 18 16:24:08 PDT 2015


> On May 18, 2015, at 2:09 PM, Sean Silva <chisophugis at gmail.com> wrote:
> 
> From an end-user's perspective it sounds like the use case for SPIR-V though is a lot more similar to a target though. E.g. the user is notionally telling clang "target SPIR-V" (including doing any IR optimizations, any special "codegenprepare" special passes, etc.), rather than "act like you're targeting X, but -emit-llvm/-emit-spirv instead" (which is what I imagine from a component purely in lib/SPIRV).
> 

SPIR-V is a serialization format between the user’s frontend and the vendor’s backend.  From the user’s perspective, it looks like a target.  From the vendor’s perspective, it looks like a frontend.  In this sense, it is very comparable to LLVM bitcode itself.

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


More information about the llvm-dev mailing list