[llvm] [DLCov][NFC] Propagate annotated DebugLocs through transformations (PR #138047)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 10 10:08:32 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 h,cpp -- llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h llvm/include/llvm/IR/DebugLoc.h llvm/include/llvm/IR/IRBuilder.h llvm/include/llvm/IR/Instruction.h llvm/lib/CodeGen/BranchFolding.cpp llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp llvm/lib/CodeGen/MachineBasicBlock.cpp llvm/lib/CodeGen/MachineSink.cpp llvm/lib/IR/DebugInfo.cpp llvm/lib/IR/DebugLoc.cpp llvm/lib/IR/IRBuilder.cpp llvm/lib/IR/Instruction.cpp llvm/lib/Target/BPF/BPFPreserveStaticOffset.cpp llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp llvm/lib/Transforms/InstCombine/InstructionCombining.cpp llvm/lib/Transforms/Scalar/ConstantHoisting.cpp llvm/lib/Transforms/Scalar/LICM.cpp llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp llvm/lib/Transforms/Utils/SimplifyCFG.cpp llvm/lib/Transforms/Vectorize/VPlan.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index 4d33c5260..59295089d 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -116,7 +116,8 @@ class IRBuilderBase {
/// created instructions, excluding !dbg metadata, which is stored in the
/// StoredDL field.
SmallVector<std::pair<unsigned, MDNode *>, 2> MetadataToCopy;
- /// The DebugLoc that will be applied to instructions inserted by this builder.
+ /// The DebugLoc that will be applied to instructions inserted by this
+ /// builder.
DebugLoc StoredDL;
/// Add or update the an entry (Kind, MD) to MetadataToCopy, if \p MD is not
``````````
</details>
https://github.com/llvm/llvm-project/pull/138047
More information about the llvm-commits
mailing list