[Mlir-commits] [mlir] [mlir][Transforms] Improve `replaceOpWithMultiple` API (PR #132608)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Mar 24 00:56:40 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 c482b8faeace855332a8c070cffaf3d0732cc79e 09f16b2fc932f51f5a04f9eabf72e7db2b372214 --extensions h,cpp -- mlir/include/mlir/Transforms/DialectConversion.h mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp mlir/test/lib/Dialect/Test/TestPatterns.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Transforms/DialectConversion.h b/mlir/include/mlir/Transforms/DialectConversion.h
index 00a5389b41..66a5e6a889 100644
--- a/mlir/include/mlir/Transforms/DialectConversion.h
+++ b/mlir/include/mlir/Transforms/DialectConversion.h
@@ -899,7 +899,7 @@ public:
/// results and value ranges must match. The given operation is erased.
void replaceOpWithMultiple(Operation *op, ArrayRef<ValueRange> newValues);
template <typename RangeT>
- void replaceOpWithMultiple(Operation *op, RangeT&& newValues) {
+ void replaceOpWithMultiple(Operation *op, RangeT &&newValues) {
replaceOpWithMultiple(op,
ArrayRef(llvm::to_vector_of<ValueRange>(newValues)));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/132608
More information about the Mlir-commits
mailing list