forked from OSchip/llvm-project
[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:
parent
9c2b72821b
commit
aaaf6c4560
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue