[clang] [llvm] [HLSL][SPIR-V] Implement vk::ext_builtin_input attribute (PR #138530)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 4 02:38:18 PDT 2025


================
@@ -140,6 +140,11 @@ def SharedVar : SubsetSubject<Var,
                               [{S->hasGlobalStorage() && !S->getTLSKind()}],
                               "global variables">;
 
+def HLSLInputBuiltin : SubsetSubject<Var, [{S->hasGlobalStorage() &&
+                    S->getStorageClass()==StorageClass::SC_Static &&
+                    S->getType().isConstQualified()}],
+                                     "static const globals">;
----------------
Keenuts wrote:

Ah didn't checked, I always run `git-clang-format` and call it a day! Thanks, applied the suggestion

https://github.com/llvm/llvm-project/pull/138530


More information about the llvm-commits mailing list