[llvm] [RISCV][GISEL] Add legalizer for G_BSWAP (PR #70226)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 10:07:40 PDT 2023
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 7ce613fc77af092dd6e9db71ce3747b75bc5616e 62d66abf5d4a6ed48b0763d7796fe99a07872c30 -- llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index fff6f46caa39..8888762a5085 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -112,11 +112,12 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
.clampScalar(0, s32, XLenLLT)
.lower();
- auto &ZExtLoadActions = getActionDefinitionsBuilder(G_ZEXTLOAD)
- .legalForTypesWithMemDesc({{s32, p0, s8, 8},
- {s32, p0, s16, 16},
- {XLenLLT, p0, s8, 8},
- {XLenLLT, p0, s16, 16}});
+ auto &ZExtLoadActions =
+ getActionDefinitionsBuilder(G_ZEXTLOAD)
+ .legalForTypesWithMemDesc({{s32, p0, s8, 8},
+ {s32, p0, s16, 16},
+ {XLenLLT, p0, s8, 8},
+ {XLenLLT, p0, s16, 16}});
if (XLen == 64)
ZExtLoadActions.legalForTypesWithMemDesc({{XLenLLT, p0, s32, 32}});
ZExtLoadActions.lower();
``````````
</details>
https://github.com/llvm/llvm-project/pull/70226
More information about the llvm-commits
mailing list