[Mlir-commits] [mlir] [mlir][Transform] Create a transform interpreter and a preloader pass (PR #68661)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 9 22:11:57 PDT 2023


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 9ab732f630de94aeac47d95a8d1e6093f432506e 7e284e18f9dd3c2d34b33f0433a8c750e46ebb8f -- mlir/lib/Dialect/Transform/Transforms/InterpreterPass.cpp mlir/lib/Dialect/Transform/Transforms/PreloadLibraryPass.cpp mlir/include/mlir/Dialect/Transform/Transforms/TransformInterpreterUtils.h mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp mlir/lib/Dialect/Transform/IR/TransformOps.cpp mlir/lib/Dialect/Transform/Transforms/TransformInterpreterPassBase.cpp mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index dcbaaf04c494..61f1195b2127 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -1770,7 +1770,7 @@ transform::NamedSequenceOp::apply(transform::TransformRewriter &rewriter,
   // dangling top-level op that does not get "called".
   auto scope = state.make_region_scope(getBody());
   if (failed(detail::mapPossibleTopLevelTransformOpBlockArguments(
-      state, this->getOperation(), getBody())))
+          state, this->getOperation(), getBody())))
     return DiagnosedSilenceableFailure::definiteFailure();
 
   return applySequenceBlock(getBody().front(),
diff --git a/mlir/lib/Dialect/Transform/Transforms/InterpreterPass.cpp b/mlir/lib/Dialect/Transform/Transforms/InterpreterPass.cpp
index 4a6921b8611b..7d25e1f8c6eb 100644
--- a/mlir/lib/Dialect/Transform/Transforms/InterpreterPass.cpp
+++ b/mlir/lib/Dialect/Transform/Transforms/InterpreterPass.cpp
@@ -38,7 +38,8 @@ public:
 
   void runOnOperation() override {
     if (failed(transform::applyTransformNamedSequence(
-            getOperation(), sharedTransformModule->get(), options.enableExpensiveChecks(true), entryPoint)))
+            getOperation(), sharedTransformModule->get(),
+            options.enableExpensiveChecks(true), entryPoint)))
       return signalPassFailure();
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list