[Mlir-commits] [mlir] [mlir][amdgpu] Align Chipset with TargetParser (PR #107720)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Sep 7 14:28:41 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 0e775b8c6f14fb72892d0c838a66bf24a2dc8959 2c62efbdfb8351d26a3fd0582fee0afac92dda93 --extensions cpp,h -- mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp mlir/lib/Conversion/ArithToAMDGPU/ArithToAMDGPU.cpp mlir/lib/Dialect/AMDGPU/Transforms/EmulateAtomics.cpp mlir/lib/Dialect/AMDGPU/Utils/Chipset.cpp mlir/unittests/Dialect/AMDGPU/AMDGPUUtilsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h b/mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h
index 8ee7c03730..a5dab1ab89 100644
--- a/mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h
+++ b/mlir/include/mlir/Dialect/AMDGPU/Utils/Chipset.h
@@ -26,7 +26,7 @@ struct Chipset {
 
   constexpr Chipset() = default;
   constexpr Chipset(unsigned major, unsigned minor, unsigned stepping)
-      : majorVersion(major), minorVersion(minor), steppingVersion(stepping){};
+      : majorVersion(major), minorVersion(minor), steppingVersion(stepping) {};
 
   /// Parses the chipset version string and returns the chipset on success, and
   /// failure otherwise.

``````````

</details>


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


More information about the Mlir-commits mailing list