[polly] c971b53 - [Polly] Use llvm::function_ref. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 11:16:07 PDT 2020
Author: Michael Kruse
Date: 2020-08-26T13:15:23-05:00
New Revision: c971b53b22a5cd43b54bf4773fe3c59ea1b805fb
URL: https://github.com/llvm/llvm-project/commit/c971b53b22a5cd43b54bf4773fe3c59ea1b805fb
DIFF: https://github.com/llvm/llvm-project/commit/c971b53b22a5cd43b54bf4773fe3c59ea1b805fb.diff
LOG: [Polly] Use llvm::function_ref. NFC.
As suggested by David Blaike at
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20200824/822584.html
Added:
Modified:
polly/include/polly/ScopInfo.h
polly/lib/Analysis/ScopInfo.cpp
Removed:
################################################################################
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index b6fcddc6379a..5d18582a07ed 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -2319,7 +2319,7 @@ class Scop {
/// 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.
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index fdb06be00546..a50e1a7f91af 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -1752,7 +1752,7 @@ void Scop::removeFromStmtMap(ScopStmt &Stmt) {
}
}
-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)) {
More information about the llvm-commits
mailing list