[llvm] [AMDGPU][GISel] RegBankLegalize rules for SWMMAC instructions (PR #190997)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 08:56:35 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
index 93ddad3b4..137b05595 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
@@ -1840,24 +1840,22 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
amdgcn_wmma_i32_16x16x64_iu8, amdgcn_wmma_f32_16x16x128_f8f6f4,
amdgcn_wmma_scale_f32_16x16x128_f8f6f4,
amdgcn_wmma_scale16_f32_16x16x128_f8f6f4, amdgcn_wmma_f32_32x16x128_f4,
- amdgcn_wmma_scale_f32_32x16x128_f4,
- amdgcn_wmma_scale16_f32_32x16x128_f4,
+ amdgcn_wmma_scale_f32_32x16x128_f4, amdgcn_wmma_scale16_f32_32x16x128_f4,
// SWMMAC GFX12
amdgcn_swmmac_f32_16x16x32_f16, amdgcn_swmmac_f32_16x16x32_bf16,
amdgcn_swmmac_f16_16x16x32_f16, amdgcn_swmmac_bf16_16x16x32_bf16,
amdgcn_swmmac_i32_16x16x32_iu8, amdgcn_swmmac_i32_16x16x32_iu4,
- amdgcn_swmmac_i32_16x16x64_iu4,
- amdgcn_swmmac_f32_16x16x32_fp8_fp8, amdgcn_swmmac_f32_16x16x32_fp8_bf8,
- amdgcn_swmmac_f32_16x16x32_bf8_fp8, amdgcn_swmmac_f32_16x16x32_bf8_bf8,
+ amdgcn_swmmac_i32_16x16x64_iu4, amdgcn_swmmac_f32_16x16x32_fp8_fp8,
+ amdgcn_swmmac_f32_16x16x32_fp8_bf8, amdgcn_swmmac_f32_16x16x32_bf8_fp8,
+ amdgcn_swmmac_f32_16x16x32_bf8_bf8,
// SWMMAC GFX1250
amdgcn_swmmac_f32_16x16x64_f16, amdgcn_swmmac_f32_16x16x64_bf16,
amdgcn_swmmac_f16_16x16x64_f16, amdgcn_swmmac_bf16_16x16x64_bf16,
- amdgcn_swmmac_bf16f32_16x16x64_bf16,
- amdgcn_swmmac_f32_16x16x128_fp8_fp8, amdgcn_swmmac_f32_16x16x128_fp8_bf8,
- amdgcn_swmmac_f32_16x16x128_bf8_fp8, amdgcn_swmmac_f32_16x16x128_bf8_bf8,
- amdgcn_swmmac_f16_16x16x128_fp8_fp8, amdgcn_swmmac_f16_16x16x128_fp8_bf8,
- amdgcn_swmmac_f16_16x16x128_bf8_fp8, amdgcn_swmmac_f16_16x16x128_bf8_bf8,
- amdgcn_swmmac_i32_16x16x128_iu8})
+ amdgcn_swmmac_bf16f32_16x16x64_bf16, amdgcn_swmmac_f32_16x16x128_fp8_fp8,
+ amdgcn_swmmac_f32_16x16x128_fp8_bf8, amdgcn_swmmac_f32_16x16x128_bf8_fp8,
+ amdgcn_swmmac_f32_16x16x128_bf8_bf8, amdgcn_swmmac_f16_16x16x128_fp8_fp8,
+ amdgcn_swmmac_f16_16x16x128_fp8_bf8, amdgcn_swmmac_f16_16x16x128_bf8_fp8,
+ amdgcn_swmmac_f16_16x16x128_bf8_bf8, amdgcn_swmmac_i32_16x16x128_iu8})
.Any({{}, {{}, {}, ApplyAllVgpr}});
} // end initialize rules
``````````
</details>
https://github.com/llvm/llvm-project/pull/190997
More information about the llvm-commits
mailing list