[llvm-branch-commits] [llvm] [BOLT] Output YAML profile in BAT mode (PR #76910)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 3 21:28:19 PST 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 d60db34faa482127779ef0a0103d63e86c4a7025 4d82ba03b6caa5d4d67d9406dcb9cffe694b922f -- bolt/include/bolt/Profile/BoltAddressTranslation.h bolt/include/bolt/Profile/DataAggregator.h bolt/lib/Profile/DataAggregator.cpp bolt/lib/Rewrite/RewriteInstance.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index 46392f3575..26eec1c5ab 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -2283,8 +2283,8 @@ DataAggregator::writeAggregatedFile(StringRef OutputFilename) const {
return std::error_code();
}
-std::error_code
-DataAggregator::writeBATYAML(BinaryContext &BC, StringRef OutputFilename) const {
+std::error_code DataAggregator::writeBATYAML(BinaryContext &BC,
+ StringRef OutputFilename) const {
std::error_code EC;
raw_fd_ostream OutFile(OutputFilename, EC, sys::fs::OpenFlags::OF_None);
if (EC)
diff --git a/bolt/lib/Rewrite/RewriteInstance.cpp b/bolt/lib/Rewrite/RewriteInstance.cpp
index 364830d4fb..c6f38db17f 100644
--- a/bolt/lib/Rewrite/RewriteInstance.cpp
+++ b/bolt/lib/Rewrite/RewriteInstance.cpp
@@ -199,10 +199,9 @@ static cl::opt<cl::boolOrDefault> RelocationMode(
"relocs", cl::desc("use relocations in the binary (default=autodetect)"),
cl::cat(BoltCategory));
-cl::opt<std::string>
-SaveProfile("w",
- cl::desc("save recorded profile to a file"),
- cl::cat(BoltOutputCategory));
+cl::opt<std::string> SaveProfile("w",
+ cl::desc("save recorded profile to a file"),
+ cl::cat(BoltOutputCategory));
static cl::list<std::string>
SkipFunctionNames("skip-funcs",
``````````
</details>
https://github.com/llvm/llvm-project/pull/76910
More information about the llvm-branch-commits
mailing list