[clang] [llvm] [HLSL] Add support for user semantics (PR #153424)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 29 13:19:50 PDT 2025


================
@@ -562,6 +572,69 @@ static llvm::Value *createSPIRVBuiltinLoad(IRBuilder<> &B, llvm::Module &M,
   return B.CreateLoad(Ty, GV);
 }
 
+static llvm::Value *createSPIRVLocationLoad(IRBuilder<> &B, llvm::Module &M,
+                                            llvm::Type *Ty, unsigned Location,
+                                            StringRef Name = "") {
----------------
s-perron wrote:

Do you really need to the default value for `Name`?

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


More information about the cfe-commits mailing list