[clang] [llvm] [HLSL][SPIRV] Support Flat and Location decorators in the frontend (PR #210116)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 10:17:31 PDT 2026


================
@@ -1344,7 +1386,7 @@ llvm::Value *CGHLSLRuntime::handleScalarSemanticLoad(
   std::optional<unsigned> Index = Semantic->getSemanticIndex();
   if (Semantic->getAttrName()->getName().starts_with_insensitive("SV_"))
     return emitSystemSemanticLoad(B, FD, Type, Decl, Semantic, Index);
-  return emitUserSemanticLoad(B, Type, Decl, Semantic, Index);
+  return emitUserSemanticLoad(B, FD, Type, Decl, Semantic, Index);
----------------
farzonl wrote:

`emitUserSemanticLoad` impacts all semantics so not just pixel shaders.  This pr's change though limits the impact to just pixel shaders.

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


More information about the cfe-commits mailing list