[llvm] [RFC][ThinLTO][AMDGPU] Add `AMDGPU_SUMMARY` bitcode block for ThinLTO (PR #194545)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 09:01:43 PDT 2026


================
@@ -5360,6 +5362,94 @@ void ModuleBitcodeWriter::writeModuleHash(StringRef View) {
   }
 }
 
+void ModuleBitcodeWriter::writeAMDGPUSummaryBlock() {
+  Triple TT(M.getTargetTriple());
+  // Object linking is only supported on AMDHSA platforms.
+  if (TT.getArch() != Triple::amdgcn || TT.getOS() != Triple::AMDHSA)
----------------
arsenm wrote:

This is an artificial restriction. Graphics might be missing parts, but better to just let it fail however it will elsewhere 

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


More information about the llvm-commits mailing list