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 7c2f6b68d81536889deae221db5df3565089b60b 
9192d2d5329910bbc2e641ac979eef455550760f --extensions cpp,h -- 
mlir/include/mlir/Dialect/Bufferization/Transforms/Bufferize.h 
mlir/include/mlir/Dialect/Func/Transforms/Passes.h 
mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp 
mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp 
b/mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp
index da77a735cd..b11803da19 100644
--- a/mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp
+++ b/mlir/lib/Dialect/Bufferization/Transforms/BufferUtils.cpp
@@ -140,7 +140,8 @@ bufferization::getGlobalFor(arith::ConstantOp constantOp, 
uint64_t alignment,
       alignment > 0 ? IntegerAttr::get(globalBuilder.getI64Type(), alignment)
                     : IntegerAttr();
 
-  auto memrefType = 
cast<MemRefType>(getMemRefTypeWithStaticIdentityLayout(type));
+  auto memrefType =
+      cast<MemRefType>(getMemRefTypeWithStaticIdentityLayout(type));
   if (memorySpace)
     memrefType = MemRefType::Builder(memrefType).setMemorySpace(memorySpace);
   auto global = globalBuilder.create<memref::GlobalOp>(

``````````

</details>


https://github.com/llvm/llvm-project/pull/114155
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to