[llvm] Introduction of typified section in ExtBinary format (PR #166553)

Sergey Shcherbinin via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 11 03:02:44 PST 2025


================
@@ -557,8 +562,30 @@ std::error_code SampleProfileWriterExtBinary::writeCtxSplitLayout(
   return sampleprof_error::success;
 }
 
+void SampleProfileWriterExtBinary::configureTypifiedProfile(
+    const SampleProfileMap &ProfileMap) {
+  if (!ExtBinaryForceTypifiedProf && !ProfileMap.hasNonLBRProfile()) {
----------------
SergeyShch01 wrote:

>> Is the goal to replace the current format with the typified format? 
I believe this is a goal (if nobody objects). At some point we could invert the extbinary-force-typified-prof knob and have the typified format set as a default.

However we should keep backward compatibility - then the current format should be also supported.


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


More information about the llvm-commits mailing list