[clang] [llvm] [SPIRV] Add more id and range builtIns (PR #143909)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 12 07:47:51 PDT 2025


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


More information about the llvm-commits mailing list