[llvm] [polly] [IR] Add CallBr intrinsics support (PR #133907)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 14 09:39:01 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 -- llvm/include/llvm/Analysis/RegionInfoImpl.h llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h llvm/lib/IR/Verifier.cpp llvm/lib/Transforms/Scalar/StructurizeCFG.cpp llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
index 98115c109..81e8877e5 100644
--- a/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
@@ -609,7 +609,8 @@ LLVM_ABI void InvertBranch(BranchInst *PBI, IRBuilderBase &Builder);
// Check whether the function only has blocks with simple terminators:
// br/brcond/unreachable/ret (or callbr if AllowCallBr)
-LLVM_ABI bool hasOnlySimpleTerminator(const Function &F, bool AllowCallBr = true);
+LLVM_ABI bool hasOnlySimpleTerminator(const Function &F,
+ bool AllowCallBr = true);
} // end namespace llvm
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index a65381112..87e79e115 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3489,10 +3489,10 @@ void SelectionDAGBuilder::visitCallBr(const CallBrInst &I) {
for (BasicBlock *Dest : I.getIndirectDests()) {
MachineBasicBlock *Target = FuncInfo.getMBB(Dest);
Target->setIsInlineAsmBrIndirectTarget();
- // If we introduce a type of asm goto statement that is permitted to use an
- // indirect call instruction to jump to its labels, then we should add a
- // call to Target->setMachineBlockAddressTaken() here, to mark the target
- // block as requiring a BTI.
+ // If we introduce a type of asm goto statement that is permitted to use
+ // an indirect call instruction to jump to its labels, then we should add
+ // a call to Target->setMachineBlockAddressTaken() here, to mark the
+ // target block as requiring a BTI.
Target->setLabelMustBeEmitted();
// Don't add duplicate machine successors.
``````````
</details>
https://github.com/llvm/llvm-project/pull/133907
More information about the llvm-commits
mailing list