[llvm] [llvm-profdata] Enabled functionality to write split-layout profile (PR #101795)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 22:58:11 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 055e4319112282354327af9908091fdb25149e9b 5b28323c83d67de48d53cdcfda448980bcc03615 --extensions cpp -- llvm/tools/llvm-profdata/llvm-profdata.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index 1f6efa788b..ce6de96376 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -208,8 +208,7 @@ cl::opt<bool> GenPartialProfile(
     cl::sub(MergeSubcommand),
     cl::desc("Generate a partial profile (only meaningful for -extbinary)"));
 cl::opt<bool> SplitLayout(
-    "split_layout", cl::init(false), cl::Hidden,
-    cl::sub(MergeSubcommand),
+    "split_layout", cl::init(false), cl::Hidden, cl::sub(MergeSubcommand),
     cl::desc("Split the profile to two sections with one containing sample "
              "profiles with inlined functions and the another not (only "
              "meaningful for -extbinary)"));

``````````

</details>


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


More information about the llvm-commits mailing list