[llvm] [AMDGPU] Unify handling of BITOP3 operation (PR #132019)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 19 06:14:03 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 f3f7f08ecaf0889b16bbe11fd6c9d38586979b1e 046e68fa38d5b135569e2666ecd7e89add3004e2 --extensions h,cpp -- llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h b/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
index c200dcaba7..2aed85461b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
@@ -147,7 +147,8 @@ template <> struct BitOp3Helper<SDValue> {
// truth table.
template <typename T>
static std::pair<unsigned, uint8_t>
-BitOp3_Op(llvm::AMDGPU::BitOp3Helper<T> &Helper, T In, SmallVectorImpl<T> &Src) {
+BitOp3_Op(llvm::AMDGPU::BitOp3Helper<T> &Helper, T In,
+ SmallVectorImpl<T> &Src) {
unsigned NumOpcodes = 0;
uint8_t LHSBits, RHSBits;
``````````
</details>
https://github.com/llvm/llvm-project/pull/132019
More information about the llvm-commits
mailing list