[llvm] [HLSL] Leave out entryname from string table for PSV versions < 3 (PR #191528)

Tex Riddell via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 16:15:27 PDT 2026


================
@@ -770,8 +770,11 @@ void DXContainerYAML::PSVInfo::mapInfoForVersion(yaml::IO &IO) {
   IO.mapRequired("NumThreadsY", Info.NumThreadsY);
   IO.mapRequired("NumThreadsZ", Info.NumThreadsZ);
 
-  if (Version == 2)
+  if (Version == 2) {
+    if (!IO.outputting())
+      IO.mapOptional("EntryName", EntryName);
----------------
tex3d wrote:

What do you mean by: "EntryName is accepted on input but stripped on output for v2"? v2 doesn't have EntryName. Why is this any different than the way `NumThreadsX/Y/Z` is handled?

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


More information about the llvm-commits mailing list