[Mlir-commits] [mlir] [mlir][emitc] Add op modelling C expressions (PR #71631)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Nov 7 23:10:22 PST 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 5f295552f1eb9b00efe0d83c5f8e6c9b948cb238 fd7b19c9c70db48b0eecb487eb458e8213b708f2 -- mlir/include/mlir/Dialect/EmitC/TransformOps/EmitCTransformOps.h mlir/include/mlir/Dialect/EmitC/Transforms/Passes.h mlir/include/mlir/Dialect/EmitC/Transforms/Transforms.h mlir/lib/Dialect/EmitC/TransformOps/EmitCTransformOps.cpp mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp mlir/lib/Dialect/EmitC/Transforms/Transforms.cpp mlir/include/mlir/InitAllExtensions.h mlir/include/mlir/InitAllPasses.h mlir/lib/Dialect/EmitC/IR/EmitC.cpp mlir/lib/Target/Cpp/TranslateToCpp.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp b/mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp
index ed35c914f060..45ac0f9682c3 100644
--- a/mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp
+++ b/mlir/lib/Dialect/EmitC/Transforms/FormExpressions.cpp
@@ -11,10 +11,10 @@
//
//===----------------------------------------------------------------------===//
-#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "mlir/Dialect/EmitC/IR/EmitC.h"
#include "mlir/Dialect/EmitC/Transforms/Passes.h"
#include "mlir/Dialect/EmitC/Transforms/Transforms.h"
+#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
namespace mlir {
namespace emitc {
@@ -28,7 +28,7 @@ using namespace emitc;
namespace {
struct FormExpressionsPass
- : public emitc::impl::FormExpressionsBase<FormExpressionsPass> {
+ : public emitc::impl::FormExpressionsBase<FormExpressionsPass> {
void runOnOperation() override {
Operation *rootOp = getOperation();
MLIRContext *context = rootOp->getContext();
``````````
</details>
https://github.com/llvm/llvm-project/pull/71631
More information about the Mlir-commits
mailing list