Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/Mesh/Transforms/ShardingPropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ static llvm::raw_ostream &operator<<(llvm::raw_ostream &stream,
template <typename Stream, typename Range>
static Stream &printRange(Stream &stream, Range &&range) {
stream << "[";
llvm::for_each(range, [&stream](auto &v) {
for (auto &v : range) {
stream << v;
stream << ", ";
});
}
return stream << "]";
}

Expand Down
4 changes: 2 additions & 2 deletions mlir/lib/Dialect/Tosa/Transforms/TosaReduceTransposes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ void TosaReduceTransposes::runOnOperation() {
!llvm::isa<RankedTensorType>(output.getType()))
return;

llvm::for_each(transposeOp.getPerms(),
[&perms](const auto i) { perms.emplace_back(i); });
for (const auto i : transposeOp.getPerms())
perms.emplace_back(i);

// We let --canonicalize deal with identity transpose.
if (llvm::equal(llvm::seq<int32_t>(0, perms.size()), perms))
Expand Down
3 changes: 1 addition & 2 deletions mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,8 @@ void DefGen::createParentWithTraits() {
? cast<NativeTrait>(&trait)->getFullyQualifiedTraitName()
: cast<InterfaceTrait>(&trait)->getFullyQualifiedTraitName();
}));
llvm::for_each(traitNames, [&](auto &traitName) {
for (auto &traitName : traitNames)
defParent.addTemplateParam(traitName);
});

// Add OpAsmInterface::Trait if we automatically generate mnemonic alias
// method.
Expand Down
Loading