[llvm] [BOLT] Add pre-parsed perf script support (PR #163785)

Ádám Kallai via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 03:20:23 PDT 2026


================
@@ -471,6 +473,18 @@ class DataAggregator : public DataReader {
   /// an external tool.
   std::error_code parsePreAggregatedLBRSamples();
 
+  /// Coordinate reading and parsing pre-parsed perf-script trace created by
+  /// Perf2bolt's '--generate-perf-script' option.
+  ///
+  /// Perf2bolt first processes the pre-parsed profile's header to determine
+  /// offset/length pairs for each event. Using this metadata, it opens only
+  /// the specific file slice associated with the required events during
+  /// the parsing phase.
+  void parsePerfTextData(BinaryContext &BC);
----------------
kaadam wrote:

Updated.

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


More information about the llvm-commits mailing list