[llvm-branch-commits] [llvm] [KeyInstr] Add Atom Group waterline to LLVMContext (PR #133478)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Mar 28 10:53:40 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 a124bd2afc5b330a0679dc61b4b4faa59fb567e2 d12e993d5e22cae5c6eeb7088eedbf8e3ec2cb98 --extensions h,cpp -- llvm/include/llvm/IR/LLVMContext.h llvm/lib/IR/DebugInfoMetadata.cpp llvm/lib/IR/LLVMContext.cpp llvm/lib/IR/LLVMContextImpl.h llvm/unittests/IR/MetadataTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp
index 4781085b30..5a11c28671 100644
--- a/llvm/lib/IR/LLVMContext.cpp
+++ b/llvm/lib/IR/LLVMContext.cpp
@@ -382,6 +382,4 @@ void LLVMContext::updateAtomGroupWaterline(uint64_t V) {
pImpl->NextAtomGroup = std::max(pImpl->NextAtomGroup, V);
}
-uint64_t LLVMContext::incNextAtomGroup() {
- return pImpl->NextAtomGroup++;
-}
+uint64_t LLVMContext::incNextAtomGroup() { return pImpl->NextAtomGroup++; }
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index 8a1c1f9d30..a94a5aaf5f 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#include "../lib/IR/LLVMContextImpl.h"
#include "llvm/IR/Metadata.h"
+#include "../lib/IR/LLVMContextImpl.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/Constants.h"
@@ -1371,7 +1371,8 @@ TEST_F(DILocationTest, KeyInstructions) {
Context.pImpl->NextAtomGroup = 1;
EXPECT_EQ(Context.pImpl->NextAtomGroup, 1u);
- DILocation *A1 = DILocation::get(Context, 1, 0, getSubprogram(), nullptr, false, 1, 2);
+ DILocation *A1 =
+ DILocation::get(Context, 1, 0, getSubprogram(), nullptr, false, 1, 2);
// The group is only applied to the DILocation if the build has opted into
// the additional DILocation fields needed for the feature.
#ifdef EXPERIMENTAL_KEY_INSTRUCTIONS
``````````
</details>
https://github.com/llvm/llvm-project/pull/133478
More information about the llvm-branch-commits
mailing list