[mlir][Linalg] NFC - Hotfix GenericLoopNestBuilder compilation error (-fpermissive)

This should fix the error:
```
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h:72:3: error:   from definition of 'template<class LoopTy> mlir::edsc::GenericLoopNestRangeBuilder<LoopTy>::GenericLoopNestRangeBuilder(llvm::ArrayRef<mlir::edsc::ValueHandle*>, llvm::ArrayRef<mlir::Value>)' [-fpermissive]
   GenericLoopNestRangeBuilder(ArrayRef<edsc::ValueHandle *> ivs,
```
This commit is contained in:
Nicolas Vasilache 2020-01-03 14:28:32 -05:00
parent 9c2b72821b
commit aaaf6c4560
1 changed files with 6 additions and 4 deletions

View File

@ -98,14 +98,16 @@ ValueHandle LoopNestRangeBuilder::LoopNestRangeBuilder::operator()(
}
template <>
GenericLoopNestRangeBuilder<loop::ForOp>::GenericLoopNestRangeBuilder(
ArrayRef<edsc::ValueHandle *> ivs, ArrayRef<Value> ranges) {
mlir::edsc::GenericLoopNestRangeBuilder<
loop::ForOp>::GenericLoopNestRangeBuilder(ArrayRef<edsc::ValueHandle *> ivs,
ArrayRef<Value> ranges) {
builder = std::make_unique<LoopNestRangeBuilder>(ivs, ranges);
}
template <>
GenericLoopNestRangeBuilder<AffineForOp>::GenericLoopNestRangeBuilder(
ArrayRef<ValueHandle *> ivs, ArrayRef<Value> ranges) {
mlir::edsc::GenericLoopNestRangeBuilder<
AffineForOp>::GenericLoopNestRangeBuilder(ArrayRef<ValueHandle *> ivs,
ArrayRef<Value> ranges) {
SmallVector<ValueHandle, 4> lbs;
SmallVector<ValueHandle, 4> ubs;
SmallVector<int64_t, 4> steps;