[llvm] [BOLT][BTI] Add MCPlusBuilder::createBTI (PR #167305)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 20 04:20:07 PST 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 origin/main HEAD --extensions cpp,h -- bolt/include/bolt/Core/MCPlusBuilder.h bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/unittests/Core/MCPlusBuilder.cpp llvm/lib/Target/AArch64/AArch64BranchTargets.cpp llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
index 851a8a183..505fbf905 100644
--- a/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+++ b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
@@ -2748,7 +2748,8 @@ public:
return Insts;
}
- void createBTI(MCInst &Inst, bool CallTarget, bool JumpTarget) const override {
+ void createBTI(MCInst &Inst, bool CallTarget,
+ bool JumpTarget) const override {
Inst.setOpcode(AArch64::HINT);
unsigned HintNum = getBTIHintNum(CallTarget, JumpTarget);
Inst.addOperand(MCOperand::createImm(HintNum));
``````````
</details>
https://github.com/llvm/llvm-project/pull/167305
More information about the llvm-commits
mailing list