[llvm-branch-commits] [llvm] [KeyInstr][DwarfDebug] Add is_stmt emission support (PR #133495)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 28 10:55:52 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 b49eb510a934913c691d8c05fc9af5918de0e5a8 0b206ae0569191c8b05f9b77d92ceda3a5271fe2 --extensions cpp,h -- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 71abef1d23..3990286063 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2412,7 +2412,8 @@ void DwarfDebug::findKeyInstructions(const MachineFunction *MF) {
uint8_t Rank = MI.getDebugLoc()->getAtomRank();
if (Group && Rank) {
auto *InlinedAt = MI.getDebugLoc()->getInlinedAt();
- auto &[CandidateRank, CandidateInsts] = GroupCandidates[{InlinedAt, Group}];
+ auto &[CandidateRank, CandidateInsts] =
+ GroupCandidates[{InlinedAt, Group}];
// This looks similar to the non-call handling code, except that
// we don't put the call into CandidateInsts so that they can't be
@@ -2470,7 +2471,8 @@ void DwarfDebug::findKeyInstructions(const MachineFunction *MF) {
BuoyAtom = MI.getDebugLoc()->getAtomGroup();
}
- auto &[CandidateRank, CandidateInsts] = GroupCandidates[{InlinedAt, Group}];
+ auto &[CandidateRank, CandidateInsts] =
+ GroupCandidates[{InlinedAt, Group}];
if (CandidateRank == 0) {
// This is the first time we're seeing an instruction in this atom
``````````
</details>
https://github.com/llvm/llvm-project/pull/133495
More information about the llvm-branch-commits
mailing list