[Mlir-commits] [mlir] [mlir][linalg] Add support to pass attributes to the packed ops (PR #79526)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jan 29 11:23:50 PST 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 b788d6283d160f0fcff9ca9109ea97960185dc71 99ba898fc11854e9b340352dfec301b42735a1fe -- mlir/include/mlir/Dialect/Linalg/Utils/Utils.h mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
index 16c968ecb3..ebe2b0ef03 100644
--- a/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
+++ b/mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
@@ -367,10 +367,10 @@ struct GenerateLoopNest {
};
/// Returns an attribute list that excludes pre-defined attributes.
-/// If the input is linalg::LinalgOp, there is no method of `op.getAttributeNames()`.
-/// For this special case, using function template specialization to get attribute
-/// names from linalg::GenericOp, because all Linalg ops have the same attributes
-/// as linalg.generic ops.
+/// If the input is linalg::LinalgOp, there is no method of
+/// `op.getAttributeNames()`. For this special case, using function template
+/// specialization to get attribute names from linalg::GenericOp, because all
+/// Linalg ops have the same attributes as linalg.generic ops.
template <typename OpTy>
SmallVector<NamedAttribute> getPrunedAttributeList(OpTy op) {
auto elidedAttrs = llvm::to_vector(op.getAttributeNames());
``````````
</details>
https://github.com/llvm/llvm-project/pull/79526
More information about the Mlir-commits
mailing list