[Mlir-commits] [mlir] [mlir][memref] Fix type conversion in emulate-wide-int and emulate-narrow-type (PR #112214)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 14 15:58:43 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 11f625cb877cd86282d37ef4c92b848d415d336f 7c1b27bec8d74e9435007bd1da64faa65ceeead1 --extensions cpp -- mlir/lib/Dialect/Arith/Transforms/EmulateNarrowType.cpp mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp mlir/lib/Dialect/MemRef/Transforms/EmulateWideInt.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp b/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
index dc60a60022..28f9061d98 100644
--- a/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
+++ b/mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
@@ -170,7 +170,8 @@ struct ConvertMemRefAllocation final : OpConversionPattern<OpTy> {
                   "expected only memref::AllocOp or memref::AllocaOp");
     auto currentType = cast<MemRefType>(op.getMemref().getType());
     auto newResultType =
-        this->getTypeConverter()->template convertType<MemRefType>(op.getType());
+        this->getTypeConverter()->template convertType<MemRefType>(
+            op.getType());
     if (!newResultType) {
       return rewriter.notifyMatchFailure(
           op->getLoc(),

``````````

</details>


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


More information about the Mlir-commits mailing list