[clang] [llvm] [HLSL][SPIR-V] Implement vk::location for inputs (PR #169479)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 08:34:47 PST 2025


Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/169479 at github.com>


================
@@ -771,6 +771,22 @@ void SemaHLSL::ActOnTopLevelFunction(FunctionDecl *FD) {
   }
 }
 
+static bool isPipelineBuiltin(const ASTContext &AstContext, FunctionDecl *FD,
+                              HLSLAppliedSemanticAttr *Semantic) {
+  if (AstContext.getTargetInfo().getTriple().getOS() != llvm::Triple::Vulkan)
+    return false;
----------------
s-perron wrote:

The name of the function should reflect that this is only for Vulkan. Maybe `isVkPipelineBuiltin`.

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


More information about the llvm-commits mailing list