[Mlir-commits] [mlir] [mlir][affine] Add unit tests for `isProjectedPermutation` (PR #114775)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 4 03:32:00 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 32473864cb4631780095e25a0378663b98a11188 dc8ada18c6e14b3dafa163bcb045c52e4aca5b14 --extensions cpp -- mlir/unittests/IR/AffineMapTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/unittests/IR/AffineMapTest.cpp b/mlir/unittests/IR/AffineMapTest.cpp
index 2c96c69a69..569f0db8c5 100644
--- a/mlir/unittests/IR/AffineMapTest.cpp
+++ b/mlir/unittests/IR/AffineMapTest.cpp
@@ -40,8 +40,8 @@ TEST(AffineMapTest, isProjectedPermutation) {
AffineMap map3 = AffineMap::get(1, 0, {zero}, &ctx);
EXPECT_TRUE(map3.isProjectedPermutation(/*allowZeroInResults=*/true));
- // 4. The result map is {0} - since zero results are _not allowed_, this _is not_
- // a projected permutation.
+ // 4. The result map is {0} - since zero results are _not allowed_, this _is
+ // not_ a projected permutation.
AffineMap map4 = AffineMap::get(1, 0, {zero}, &ctx);
EXPECT_FALSE(map4.isProjectedPermutation(/*allowZeroInResults=*/false));
``````````
</details>
https://github.com/llvm/llvm-project/pull/114775
More information about the Mlir-commits
mailing list