[Mlir-commits] [mlir] [MLIR] Change getBackwardSlice to return a logicalresult rather than … (PR #140961)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed May 21 14:21:05 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- mlir/include/mlir/Analysis/SliceAnalysis.h mlir/include/mlir/Query/Matcher/SliceMatchers.h mlir/lib/Analysis/SliceAnalysis.cpp mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp mlir/lib/Dialect/Linalg/Transforms/HoistPadding.cpp mlir/lib/Dialect/NVGPU/TransformOps/NVGPUTransformOps.cpp mlir/lib/Dialect/SCF/Transforms/TileUsingInterface.cpp mlir/lib/Transforms/Utils/RegionUtils.cpp mlir/test/lib/Dialect/Affine/TestVectorizationUtils.cpp mlir/test/lib/IR/TestSlicing.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Analysis/SliceAnalysis.cpp b/mlir/lib/Analysis/SliceAnalysis.cpp
index fea1356ea..492777161 100644
--- a/mlir/lib/Analysis/SliceAnalysis.cpp
+++ b/mlir/lib/Analysis/SliceAnalysis.cpp
@@ -143,9 +143,9 @@ static LogicalResult getBackwardSliceImpl(Operation *op,
   return success(succeeded);
 }
 
-LogicalResult
-mlir::getBackwardSlice(Operation *op, SetVector<Operation *> *backwardSlice,
-                       const BackwardSliceOptions &options) {
+LogicalResult mlir::getBackwardSlice(Operation *op,
+                                     SetVector<Operation *> *backwardSlice,
+                                     const BackwardSliceOptions &options) {
   LogicalResult result = getBackwardSliceImpl(op, backwardSlice, options);
 
   if (!options.inclusive) {

``````````

</details>


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


More information about the Mlir-commits mailing list