Remove the builder signature taking a signed dimension identifier.
Reviewed By: ergawy
Differential Revision: https://reviews.llvm.org/D102055
}
```
}];
- let builders = [
- OpBuilder<(ins "int64_t":$dim),
- [{ build($_builder, $_state, $_builder.getIndexType(), dim); }]>
- ];
let assemblyFormat = [{ $dim attr-dict `:` type($result) }];
}
std::max(producer.getNumLoops(), consumer.getNumLoops());
SmallVector<Value> fusedIndices;
fusedIndices.reserve(numFusedOpLoops);
- llvm::transform(llvm::seq<int64_t>(0, numFusedOpLoops),
- std::back_inserter(fusedIndices), [&](int64_t dim) {
+ llvm::transform(llvm::seq<uint64_t>(0, numFusedOpLoops),
+ std::back_inserter(fusedIndices), [&](uint64_t dim) {
return rewriter.create<IndexOp>(producer.getLoc(), dim);
});
for (IndexOp indexOp :
rewriter.setInsertionPoint(indexOp);
SmallVector<Value> allIndices;
allIndices.reserve(op.getNumLoops());
- llvm::transform(llvm::seq<int64_t>(0, op.getNumLoops()),
- std::back_inserter(allIndices), [&](int64_t dim) {
+ llvm::transform(llvm::seq<uint64_t>(0, op.getNumLoops()),
+ std::back_inserter(allIndices), [&](uint64_t dim) {
return rewriter.create<IndexOp>(indexOp->getLoc(), dim);
});
rewriter.replaceOpWithNewOp<AffineApplyOp>(