[clang] [llvm] [KeyInstr] Remove LLVM_EXPERIMENTAL_KEY_INSTRUCTIONS CMake flag (PR #152735)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 08:00:30 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/IR/DebugInfoMetadata.h llvm/lib/IR/DebugInfoMetadata.cpp llvm/lib/IR/LLVMContextImpl.h llvm/unittests/IR/BasicBlockDbgInfoTest.cpp llvm/unittests/IR/MetadataTest.cpp llvm/unittests/Transforms/Utils/CloningTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index 98745abc4..a4e9d1639 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -2537,12 +2537,8 @@ class DILocation : public MDNode {
}
public:
- uint64_t getAtomGroup() const {
- return AtomGroup;
- }
- uint8_t getAtomRank() const {
- return AtomRank;
- }
+ uint64_t getAtomGroup() const { return AtomGroup; }
+ uint8_t getAtomRank() const { return AtomRank; }
const DILocation *getWithoutAtom() const {
if (!getAtomGroup() && !getAtomRank())
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 5229843cb..e03f99329 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -329,15 +329,13 @@ template <> struct MDNodeKeyImpl<DILocation> {
: Scope(L->getRawScope()), InlinedAt(L->getRawInlinedAt()),
AtomGroup(L->getAtomGroup()), AtomRank(L->getAtomRank()),
Line(L->getLine()), Column(L->getColumn()),
- ImplicitCode(L->isImplicitCode()) {
- }
+ ImplicitCode(L->isImplicitCode()) {}
bool isKeyOf(const DILocation *RHS) const {
return Line == RHS->getLine() && Column == RHS->getColumn() &&
Scope == RHS->getRawScope() && InlinedAt == RHS->getRawInlinedAt() &&
- ImplicitCode == RHS->isImplicitCode()
- && AtomGroup == RHS->getAtomGroup() &&
- AtomRank == RHS->getAtomRank();
+ ImplicitCode == RHS->isImplicitCode() &&
+ AtomGroup == RHS->getAtomGroup() && AtomRank == RHS->getAtomRank();
}
unsigned getHashValue() const {
``````````
</details>
https://github.com/llvm/llvm-project/pull/152735
More information about the llvm-commits
mailing list