[llvm] [BOLT][AArch64] Handle OpNegateRAState to enable optimizing binaries with pac-ret hardening (PR #120064)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 02:47:13 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- bolt/include/bolt/Passes/InsertNegateRAStatePass.h bolt/include/bolt/Passes/MarkRAStates.h bolt/lib/Passes/InsertNegateRAStatePass.cpp bolt/lib/Passes/MarkRAStates.cpp bolt/include/bolt/Core/BinaryFunction.h bolt/include/bolt/Core/MCPlus.h bolt/include/bolt/Core/MCPlusBuilder.h bolt/include/bolt/Utils/CommandLineOpts.h bolt/lib/Core/BinaryBasicBlock.cpp bolt/lib/Core/BinaryFunction.cpp bolt/lib/Core/Exceptions.cpp bolt/lib/Core/MCPlusBuilder.cpp bolt/lib/Rewrite/BinaryPassManager.cpp bolt/lib/Rewrite/RewriteInstance.cpp bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/lib/Utils/CommandLineOpts.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp
index 6211359cb..490652689 100644
--- a/bolt/lib/Utils/CommandLineOpts.cpp
+++ b/bolt/lib/Utils/CommandLineOpts.cpp
@@ -227,8 +227,7 @@ cl::opt<unsigned>
cl::opt<bool> AllowPacret(
"allow-experimental-pacret",
cl::desc("Enable processing binaries with pac-ret (experimental)"),
- cl::init(false),
- cl::cat(BoltOptCategory));
+ cl::init(false), cl::cat(BoltOptCategory));
bool processAllFunctions() {
if (opts::AggregateOnly)
``````````
</details>
https://github.com/llvm/llvm-project/pull/120064
More information about the llvm-commits
mailing list