[llvm] [AMDGPU][True16][MC] fp conversion in true/fake16 format (PR #104449)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 10:02:30 PDT 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 eae1d65f3435b1399e1468cb27bfe745f95d4df2 70f43d89442af1b1d2be3b48179a4081969f8660 --extensions cpp -- llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
index 056aa0bc1a..96ce1196e1 100644
--- a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -282,7 +282,7 @@ public:
 
   template <bool IsFake16> bool isRegOrImmWithIntT16InputMods() const {
     return isRegOrImmWithInputMods(
-			IsFake16 ? AMDGPU::VS_32RegClassID : AMDGPU::VS_16RegClassID, MVT::i16);
+        IsFake16 ? AMDGPU::VS_32RegClassID : AMDGPU::VS_16RegClassID, MVT::i16);
   }
 
   bool isRegOrImmWithInt32InputMods() const {
@@ -295,7 +295,7 @@ public:
 
   template <bool IsFake16> bool isRegOrInlineImmWithIntT16InputMods() const {
     return isRegOrInline(
-			IsFake16 ? AMDGPU::VS_32RegClassID : AMDGPU::VS_16RegClassID, MVT::i16);
+        IsFake16 ? AMDGPU::VS_32RegClassID : AMDGPU::VS_16RegClassID, MVT::i16);
   }
 
   bool isRegOrInlineImmWithInt32InputMods() const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/104449


More information about the llvm-commits mailing list