File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1337,7 +1337,7 @@ Block &emitc::SwitchOp::getCaseBlock(unsigned idx) {
1337
1337
1338
1338
void SwitchOp::getSuccessorRegions (
1339
1339
RegionBranchPoint point, SmallVectorImpl<RegionSuccessor> &successors) {
1340
- llvm::copy ( getRegions (), std::back_inserter (successors ));
1340
+ llvm::append_range (successors, getRegions ( ));
1341
1341
}
1342
1342
1343
1343
void SwitchOp::getEntrySuccessorRegions (
@@ -1348,7 +1348,7 @@ void SwitchOp::getEntrySuccessorRegions(
1348
1348
// If a constant was not provided, all regions are possible successors.
1349
1349
auto arg = dyn_cast_or_null<IntegerAttr>(adaptor.getArg ());
1350
1350
if (!arg) {
1351
- llvm::copy ( getRegions (), std::back_inserter (successors ));
1351
+ llvm::append_range (successors, getRegions ( ));
1352
1352
return ;
1353
1353
}
1354
1354
Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ LoopNest mlir::scf::buildLoopNest(
758
758
759
759
// Return the loops.
760
760
ValueVector nestResults;
761
- llvm::copy ( loops.front ().getResults (), std::back_inserter (nestResults ));
761
+ llvm::append_range (nestResults, loops.front ().getResults ());
762
762
return LoopNest{std::move (loops), std::move (nestResults)};
763
763
}
764
764
@@ -4281,7 +4281,7 @@ void IndexSwitchOp::getSuccessorRegions(
4281
4281
return ;
4282
4282
}
4283
4283
4284
- llvm::copy ( getRegions (), std::back_inserter (successors ));
4284
+ llvm::append_range (successors, getRegions ( ));
4285
4285
}
4286
4286
4287
4287
void IndexSwitchOp::getEntrySuccessorRegions (
@@ -4292,7 +4292,7 @@ void IndexSwitchOp::getEntrySuccessorRegions(
4292
4292
// If a constant was not provided, all regions are possible successors.
4293
4293
auto arg = dyn_cast_or_null<IntegerAttr>(adaptor.getArg ());
4294
4294
if (!arg) {
4295
- llvm::copy ( getRegions (), std::back_inserter (successors ));
4295
+ llvm::append_range (successors, getRegions ( ));
4296
4296
return ;
4297
4297
}
4298
4298
Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ bool OpTrait::util::getBroadcastedShape(ArrayRef<int64_t> shape1,
70
70
71
71
resultShape.clear ();
72
72
if (shape1.size () > shape2.size ()) {
73
- std::copy (shape1. begin () , shape1. end (), std::back_inserter (resultShape) );
73
+ llvm::append_range (resultShape , shape1);
74
74
} else {
75
- std::copy (shape2. begin () , shape2. end (), std::back_inserter (resultShape) );
75
+ llvm::append_range (resultShape , shape2);
76
76
}
77
77
78
78
auto i1 = shape1.rbegin (), e1 = shape1.rend ();
You can’t perform that action at this time.
0 commit comments