[lld] [lld][InstrProf] Profile guided function order (PR #96268)

Vincent Lee via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 19:06:33 PDT 2024


================
@@ -0,0 +1,35 @@
+//===- BPSectionOrderer.h ---------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// This file uses Balanced Partitioning to order sections to improve startup
+/// time and compressed size.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLD_MACHO_BPSECTION_ORDERER_H
+#define LLD_MACHO_BPSECTION_ORDERER_H
+
+#include "llvm/ADT/DenseMap.h"
+
+namespace lld::macho {
+
+class InputSection;
+
+/// Run Balanced Partitioning to find the optimial function and data order to
----------------
thevinster wrote:

```suggestion
/// Run Balanced Partitioning to find the optimal function and data order to
```
```suggestion
/// Run Balanced Partitioning to find the optimial function and data order to
```

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


More information about the llvm-commits mailing list