[llvm] [AMDGPU] Use different values for SISrcMods::NEG and SISrcMods::SEXT (PR #147964)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 06:45:54 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 -- llvm/lib/Target/AMDGPU/SIDefines.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIDefines.h b/llvm/lib/Target/AMDGPU/SIDefines.h
index a3f60b58d..2a7a290da 100644
--- a/llvm/lib/Target/AMDGPU/SIDefines.h
+++ b/llvm/lib/Target/AMDGPU/SIDefines.h
@@ -260,16 +260,16 @@ enum OperandType : unsigned {
// Input operand modifiers bit-masks
// NEG and SEXT share same bit-mask because they can't be set simultaneously.
namespace SISrcMods {
- enum : unsigned {
- NONE = 0,
- NEG = 1 << 0, // Floating-point negate modifier
- ABS = 1 << 1, // Floating-point absolute modifier
- SEXT = 1 << 4, // Integer sign-extend modifier
- NEG_HI = ABS, // Floating-point negate high packed component modifier.
- OP_SEL_0 = 1 << 2,
- OP_SEL_1 = 1 << 3,
- DST_OP_SEL = 1 << 3 // VOP3 dst op_sel (share mask with OP_SEL_1)
- };
+enum : unsigned {
+ NONE = 0,
+ NEG = 1 << 0, // Floating-point negate modifier
+ ABS = 1 << 1, // Floating-point absolute modifier
+ SEXT = 1 << 4, // Integer sign-extend modifier
+ NEG_HI = ABS, // Floating-point negate high packed component modifier.
+ OP_SEL_0 = 1 << 2,
+ OP_SEL_1 = 1 << 3,
+ DST_OP_SEL = 1 << 3 // VOP3 dst op_sel (share mask with OP_SEL_1)
+};
}
namespace SIOutMods {
``````````
</details>
https://github.com/llvm/llvm-project/pull/147964
More information about the llvm-commits
mailing list