[llvm] Add support for PSV EntryFunctionName (PR #84409)

Cooper Partin via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 16:09:16 PDT 2024


================
@@ -347,6 +353,11 @@ void DXContainerYAML::PSVInfo::mapInfoForVersion(yaml::IO &IO) {
   IO.mapRequired("NumThreadsX", Info.NumThreadsX);
   IO.mapRequired("NumThreadsY", Info.NumThreadsY);
   IO.mapRequired("NumThreadsZ", Info.NumThreadsZ);
+
+  if (Version == 2)
+    return;
+
+  IO.mapRequired("EntryFunctionName", Info.EntryFunctionName);
----------------
coopp wrote:

Lastet commit updates to use a string in the yaml and writes the value to a string table.  There was a bit of refactoring that had to be done because I needed the offset of the entrypoint to be written into the runtime info before it was written out.  So I am sure more cleanups are necessary, but I believe this is heading in the correct direction.

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


More information about the llvm-commits mailing list