[Mlir-commits] [mlir] [MLIR][DLTI] Pretty parsing and printing for DLTI attrs (PR #113365)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 22 12:02:44 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 0764e55c91514734ff79ca4d666fbce2fa89fc9d aa49d39c3f48b66f5dabab5f9ef662d8d6cff286 --extensions cpp,h -- mlir/include/mlir/Interfaces/DataLayoutInterfaces.h mlir/lib/Dialect/DLTI/DLTI.cpp mlir/lib/Interfaces/DataLayoutInterfaces.cpp mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
index e3fdf85b15..7a7b659724 100644
--- a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
+++ b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
@@ -33,8 +33,7 @@ using DataLayoutEntryKey = llvm::PointerUnion<Type, StringAttr>;
 using DataLayoutEntryList = llvm::SmallVector<DataLayoutEntryInterface, 4>;
 using DataLayoutEntryListRef = llvm::ArrayRef<DataLayoutEntryInterface>;
 using TargetDeviceSpecListRef = llvm::ArrayRef<TargetDeviceSpecInterface>;
-using TargetDeviceSpecEntry =
-    std::pair<StringAttr, TargetDeviceSpecInterface>;
+using TargetDeviceSpecEntry = std::pair<StringAttr, TargetDeviceSpecInterface>;
 class DataLayoutOpInterface;
 class DataLayoutSpecInterface;
 class ModuleOp;

``````````

</details>


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


More information about the Mlir-commits mailing list