[llvm] [AMDGPU] Add eventMask function in WaitcntGenerator class (NFC) (PR #85210)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 07:25:22 PDT 2024
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 8f68022f8e6e54d1aeae4ed301f5a015963089b7 e9f4ba5b9b34a189432e563172fd3702e24d56da -- llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 5a0ff86a7f..27621906e4 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -487,7 +487,8 @@ public:
virtual ~WaitcntGenerator() = default;
// Create a mask value from the initializer list of wait event types.
- static constexpr unsigned eventMask(std::initializer_list<WaitEventType> Events) {
+ static constexpr unsigned
+ eventMask(std::initializer_list<WaitEventType> Events) {
unsigned Mask = 0;
for (auto &E : Events)
Mask |= 1 << E;
``````````
</details>
https://github.com/llvm/llvm-project/pull/85210
More information about the llvm-commits
mailing list