[Mlir-commits] [mlir] [mlir] Add the concept of ASM dialect aliases (PR #86033)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 20 16:10:51 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 a7d5f73a03c81cab8df64dbd099e8acb40f5dfe1 a00f2cb303988c5e11d7764b46d4a5e620e47321 -- mlir/include/mlir/IR/OpImplementation.h mlir/lib/AsmParser/DialectSymbolParser.cpp mlir/lib/IR/AsmPrinter.cpp mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp b/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
index 6713f83668..8ef3cb82fe 100644
--- a/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
+++ b/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
@@ -279,8 +279,7 @@ struct TestOpAsmInterface : public OpAsmDialectInterface {
       // Alias tensor<3x!test.int<...>> to !test.tensor_int3<!test.int<...>>
       ArrayRef<int64_t> shape = tensorTy.getShape();
       if (shape.size() == 1 && shape[0] == 3)
-        printer << "tensor_int3"
-                << "<" << tensorTy.getElementType() << ">";
+        printer << "tensor_int3" << "<" << tensorTy.getElementType() << ">";
     }
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list