Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ void AffineDataCopyGeneration::runOnBlock(Block *block,
// moment; we do a check later and report an error with location info.

// Get to the first load, store, or for op (that is not a copy nest itself).
auto curBegin =
std::find_if(block->begin(), block->end(), [&](Operation &op) {
return isa<AffineLoadOp, AffineStoreOp, AffineForOp>(op) &&
copyNests.count(&op) == 0;
});
auto curBegin = llvm::find_if(*block, [&](Operation &op) {
return isa<AffineLoadOp, AffineStoreOp, AffineForOp>(op) &&
copyNests.count(&op) == 0;
});

// Create [begin, end) ranges.
auto it = curBegin;
Expand Down
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ LogicalResult SparseTensorEncodingAttr::verify(
return emitError() << "unexpected coordinate bitwidth: " << crdWidth;

// Verify every COO segment.
auto *it = std::find_if(lvlTypes.begin(), lvlTypes.end(), isSingletonLT);
auto *it = llvm::find_if(lvlTypes, isSingletonLT);
while (it != lvlTypes.end()) {
if (it == lvlTypes.begin() ||
!(it - 1)->isa<LevelFormat::Compressed, LevelFormat::LooseCompressed>())
Expand Down Expand Up @@ -829,7 +829,7 @@ LogicalResult SparseTensorEncodingAttr::verify(
}

// TODO: audit formats that actually are supported by backend.
if (auto it = std::find_if(lvlTypes.begin(), lvlTypes.end(), isNOutOfMLT);
if (auto it = llvm::find_if(lvlTypes, isNOutOfMLT);
it != std::end(lvlTypes)) {
if (it != lvlTypes.end() - 1)
return emitError() << "expected n_out_of_m to be the last level type";
Expand Down