[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
Mon Apr 13 19:49:18 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:

Why is `EntryName` added as optional for v2 when it requires v3? Why not just return here?

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


More information about the llvm-commits mailing list