Skip to content

Commit 88380b9

Browse files
author
Nicolas Vasilache
committed
[mlir][Linalg] NFC - Hotfix for gcc-5 build
1 parent 7741de9 commit 88380b9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

mlir/lib/Dialect/Linalg/EDSC/Builders.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ operator()(std::function<void(void)> fun) {
8787
return ValueHandle::null();
8888
}
8989

90+
namespace mlir {
91+
namespace edsc {
9092
template <>
91-
mlir::edsc::GenericLoopNestRangeBuilder<
92-
loop::ForOp>::GenericLoopNestRangeBuilder(ArrayRef<edsc::ValueHandle *> ivs,
93-
ArrayRef<Value> ranges) {
93+
GenericLoopNestRangeBuilder<loop::ForOp>::GenericLoopNestRangeBuilder(
94+
ArrayRef<edsc::ValueHandle *> ivs, ArrayRef<Value> ranges) {
9495
builder = std::make_unique<LoopNestRangeBuilder>(ivs, ranges);
9596
}
9697

9798
template <>
98-
mlir::edsc::GenericLoopNestRangeBuilder<
99-
AffineForOp>::GenericLoopNestRangeBuilder(ArrayRef<ValueHandle *> ivs,
100-
ArrayRef<Value> ranges) {
99+
GenericLoopNestRangeBuilder<AffineForOp>::GenericLoopNestRangeBuilder(
100+
ArrayRef<ValueHandle *> ivs, ArrayRef<Value> ranges) {
101101
SmallVector<ValueHandle, 4> lbs;
102102
SmallVector<ValueHandle, 4> ubs;
103103
SmallVector<int64_t, 4> steps;
@@ -111,6 +111,8 @@ mlir::edsc::GenericLoopNestRangeBuilder<
111111
}
112112
builder = std::make_unique<AffineLoopNestBuilder>(ivs, lbs, ubs, steps);
113113
}
114+
} // namespace edsc
115+
} // namespace mlir
114116

115117
static void getMaxDimIndex(ArrayRef<StructuredIndexed> structuredIndices,
116118
unsigned &pos) {

0 commit comments

Comments
 (0)