[Mlir-commits] [mlir] Refactor tblgen-to-irdl script and support more types (PR #105505)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 21 05:08:46 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 768598bcc3528ff5c4cd2c8a9b74d023614e1a9e 27176df9b1bf44e121e115ccdb50a886b0983b6a --extensions cpp -- mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp b/mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp
index 181d02c660..2a3dec3201 100644
--- a/mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp
+++ b/mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp
@@ -291,10 +291,10 @@ irdl::OperationOp createIRDLOperation(OpBuilder &builder,
   // Create the operands and results operations.
   if (!operands.empty())
     consBuilder.create<irdl::OperandsOp>(UnknownLoc::get(ctx), operands,
-					 operandVariadicity);
+                                         operandVariadicity);
   if (!results.empty())
     consBuilder.create<irdl::ResultsOp>(UnknownLoc::get(ctx), results,
-					resultVariadicity);
+                                        resultVariadicity);
 
   return op;
 }

``````````

</details>


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


More information about the Mlir-commits mailing list