As suggested by David Blaike at
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-
20200824/822584.html
/// ScopBuilder::buildAccessRelations. Therefore, if this
/// method is called before buildAccessRelations, false
/// must be passed.
- void removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
+ void removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
bool AfterHoisting = true);
/// Get an isl string representing the context.
}
}
-void Scop::removeStmts(std::function<bool(ScopStmt &)> ShouldDelete,
+void Scop::removeStmts(function_ref<bool(ScopStmt &)> ShouldDelete,
bool AfterHoisting) {
for (auto StmtIt = Stmts.begin(), StmtEnd = Stmts.end(); StmtIt != StmtEnd;) {
if (!ShouldDelete(*StmtIt)) {