Keenuts wrote:

Hi, question, why did you prefer passing an new intrinsic to the SPIR-V backend 
vs loading a global variable with the BuiltIn decoration?

For example, when building `SV_Position` semantic in HLSL, we emit a global 
variable in the FE in the `Input` SC, along with the correct `spirv.Decoration` 
builtin. This means no backend change is required to load a builtin.

https://github.com/llvm/llvm-project/pull/143909
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to