Skip to content

Commit 0ceec3e

Browse files
committed
[mlir][sparse] Fixing -Wignored-reference-qualifiers in MergerTest.cpp
These warnings were introduced by D146561. Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D147090
1 parent 75d2032 commit 0ceec3e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

mlir/unittests/Dialect/SparseTensor/MergerTest.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,9 @@ class MergerTest3T1LSo : public MergerTestBase {
429429
const auto t0 = tid(0); \
430430
const auto t1 = tid(1); \
431431
const auto t2 = tid(2); \
432-
const PatternRef p0 = tensorPattern(t0); \
433-
const PatternRef p1 = tensorPattern(t1); \
434-
const PatternRef p2 = tensorPattern(t2); \
432+
PatternRef p0 = tensorPattern(t0); \
433+
PatternRef p1 = tensorPattern(t1); \
434+
PatternRef p2 = tensorPattern(t2); \
435435
auto s = merger.buildLattices(e, l0); \
436436
expectNumLatPoints(s, 1); \
437437
expectLatPoint(s, 0, CONJ2##Pattern(CONJ1##Pattern(p0, p1), p2), \
@@ -466,9 +466,9 @@ FOREVERY_PAIR_OF_COMMON_CONJ_CONJ_BINOP(IMPL_MERGER_TEST_CONJ_CONJ_UNDEF)
466466
const auto t1 = tid(1); \
467467
const auto t2 = tid(2); \
468468
const auto t3 = tid(3); \
469-
const PatternRef p0 = tensorPattern(t0); \
470-
const PatternRef p1 = tensorPattern(t1); \
471-
const PatternRef p2 = tensorPattern(t2); \
469+
PatternRef p0 = tensorPattern(t0); \
470+
PatternRef p1 = tensorPattern(t1); \
471+
PatternRef p2 = tensorPattern(t2); \
472472
auto s = merger.buildLattices(e, l0); \
473473
expectNumLatPoints(s, 1); \
474474
expectLatPoint(s, 0, CONJ2##Pattern(CONJ1##Pattern(p0, p1), p2), \
@@ -504,8 +504,8 @@ FOREVERY_PAIR_OF_COMMON_CONJ_CONJ_BINOP(IMPL_MERGER_TEST_CONJ_CONJ_SPARSE_OUT)
504504
const auto l0 = lid(0); \
505505
const auto t0 = tid(0); \
506506
const auto t1 = tid(1); \
507-
const PatternRef p0 = tensorPattern(t0); \
508-
const PatternRef p1 = tensorPattern(t1); \
507+
PatternRef p0 = tensorPattern(t0); \
508+
PatternRef p1 = tensorPattern(t1); \
509509
auto s = merger.buildLattices(e, l0); \
510510
\
511511
expectNumLatPoints(s, 3); \
@@ -538,8 +538,8 @@ FOREVERY_COMMON_DISJ_BINOP(IMPL_MERGER_TEST_DISJ)
538538
const auto l0 = lid(0); \
539539
const auto t0 = tid(0); \
540540
const auto t1 = tid(1); \
541-
const PatternRef p0 = tensorPattern(t0); \
542-
const PatternRef p1 = tensorPattern(t1); \
541+
PatternRef p0 = tensorPattern(t0); \
542+
PatternRef p1 = tensorPattern(t1); \
543543
auto s = merger.buildLattices(e, l0); \
544544
\
545545
expectNumLatPoints(s, 1); \
@@ -572,9 +572,9 @@ FOREVERY_COMMON_CONJ_BINOP(IMPL_MERGER_TEST_CONJ)
572572
const auto t0 = tid(0); \
573573
const auto t1 = tid(1); \
574574
const auto t2 = tid(2); \
575-
const PatternRef p0 = tensorPattern(t0); \
576-
const PatternRef p1 = tensorPattern(t1); \
577-
const PatternRef p2 = tensorPattern(t2); \
575+
PatternRef p0 = tensorPattern(t0); \
576+
PatternRef p1 = tensorPattern(t1); \
577+
PatternRef p2 = tensorPattern(t2); \
578578
auto s = merger.buildLattices(e, l0); \
579579
\
580580
expectNumLatPoints(s, 3); \
@@ -617,9 +617,9 @@ FOREVERY_PAIR_OF_COMMON_CONJ_DISJ_BINOP(IMPL_MERGER_TEST_CONJ_DISJ)
617617
const auto t0 = tid(0); \
618618
const auto t1 = tid(1); \
619619
const auto t2 = tid(2); \
620-
const PatternRef p0 = tensorPattern(t0); \
621-
const PatternRef p1 = tensorPattern(t1); \
622-
const PatternRef p2 = tensorPattern(t2); \
620+
PatternRef p0 = tensorPattern(t0); \
621+
PatternRef p1 = tensorPattern(t1); \
622+
PatternRef p2 = tensorPattern(t2); \
623623
auto s = merger.buildLattices(e, l0); \
624624
\
625625
expectNumLatPoints(s, 7); \
@@ -668,9 +668,9 @@ FOREVERY_PAIR_OF_COMMON_DISJ_DISJ_BINOP(IMPL_MERGER_TEST_DISJ_DISJ)
668668
const auto t0 = tid(0); \
669669
const auto t1 = tid(1); \
670670
const auto t2 = tid(2); \
671-
const PatternRef p0 = tensorPattern(t0); \
672-
const PatternRef p1 = tensorPattern(t1); \
673-
const PatternRef p2 = tensorPattern(t2); \
671+
PatternRef p0 = tensorPattern(t0); \
672+
PatternRef p1 = tensorPattern(t1); \
673+
PatternRef p2 = tensorPattern(t2); \
674674
auto s = merger.buildLattices(e, l0); \
675675
expectNumLatPoints(s, 1); \
676676
expectLatPoint(s, 0, CONJ2##Pattern(CONJ1##Pattern(p0, p1), p2), \
@@ -707,8 +707,8 @@ FOREVERY_PAIR_OF_COMMON_CONJ_CONJ_BINOP(IMPL_MERGER_TEST_CONJ_CONJ)
707707
const auto l0 = lid(0); \
708708
const auto t0 = tid(0); \
709709
const auto t1 = tid(1); \
710-
const PatternRef p0 = tensorPattern(t0); \
711-
const PatternRef p1 = tensorPattern(t1); \
710+
PatternRef p0 = tensorPattern(t0); \
711+
PatternRef p1 = tensorPattern(t1); \
712712
auto s = merger.buildLattices(e, l0); \
713713
\
714714
expectNumLatPoints(s, 3); \
@@ -745,8 +745,8 @@ FOREVERY_COMMON_DISJ_BINOP(IMPL_MERGER_TEST_OPTIMIZED_DISJ)
745745
const auto l0 = lid(0); \
746746
const auto t0 = tid(0); \
747747
const auto t1 = tid(1); \
748-
const PatternRef p0 = tensorPattern(t0); \
749-
const PatternRef p1 = tensorPattern(t1); \
748+
PatternRef p0 = tensorPattern(t0); \
749+
PatternRef p1 = tensorPattern(t1); \
750750
auto s = merger.buildLattices(e, l0); \
751751
\
752752
expectNumLatPoints(s, 1); \

0 commit comments

Comments
 (0)