[cfe-dev] [RfC] A proposal of adding SPIR-V Toolchain in Clang

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Tue Sep 11 12:31:18 PDT 2018


On 9/10/2018 8:10 AM, Anastasia Stulova via cfe-dev wrote:
> This will result in the following Clang actions:
>
> (1) clang -cc1 -triple spirv[32|64]-unknown-unknown test.cl -emit-llvm-bc -o test.bc
>
> (2) llvm-spirv test.bc -o test.spv

Even if llvm-spirv is technically a separate binary, it's still tightly 
coupled to the clang version because the bitcode format changes over 
time; it would be a support nightmare if clang shipped by llvm.org 
passes bitcode to some binary which isn't shipped by llvm.org.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project




More information about the cfe-dev mailing list