[llvm] AMDGPU/NFC: Remove some bits from TSFlags (PR #81525)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 12:30:32 PST 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 ab702513f1ee2268ce216d11c310a08cae24a0e7 1c06810b36335708360303029852801ee53fb599 -- llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp llvm/lib/Target/AMDGPU/SIDefines.h llvm/lib/Target/AMDGPU/SIInstrInfo.cpp llvm/lib/Target/AMDGPU/SIInstrInfo.h llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.h b/llvm/lib/Target/AMDGPU/SIInstrInfo.h
index 51df7897f8..7a6c28421c 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.h
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.h
@@ -845,13 +845,10 @@ public:
// Most sopk treat the immediate as a signed 16-bit, however some
// use it as unsigned.
static bool sopkIsZext(unsigned Opcode) {
- return Opcode == AMDGPU::S_CMPK_EQ_U32 ||
- Opcode == AMDGPU::S_CMPK_LG_U32 ||
- Opcode == AMDGPU::S_CMPK_GT_U32 ||
- Opcode == AMDGPU::S_CMPK_GE_U32 ||
- Opcode == AMDGPU::S_CMPK_LT_U32 ||
- Opcode == AMDGPU::S_CMPK_LE_U32 ||
- Opcode == AMDGPU:: S_GETREG_B32;
+ return Opcode == AMDGPU::S_CMPK_EQ_U32 || Opcode == AMDGPU::S_CMPK_LG_U32 ||
+ Opcode == AMDGPU::S_CMPK_GT_U32 || Opcode == AMDGPU::S_CMPK_GE_U32 ||
+ Opcode == AMDGPU::S_CMPK_LT_U32 || Opcode == AMDGPU::S_CMPK_LE_U32 ||
+ Opcode == AMDGPU::S_GETREG_B32;
}
/// \returns true if this is an s_store_dword* instruction. This is more
``````````
</details>
https://github.com/llvm/llvm-project/pull/81525
More information about the llvm-commits
mailing list