[polly] fc115f2 - [Polly] Move SimplifyVisitor into polly namespace.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 16 17:00:43 PST 2020
Author: Michael Kruse
Date: 2020-11-16T18:59:08-06:00
New Revision: fc115f2e73a2049211efa231b6c54c29248efdf5
URL: https://github.com/llvm/llvm-project/commit/fc115f2e73a2049211efa231b6c54c29248efdf5
DIFF: https://github.com/llvm/llvm-project/commit/fc115f2e73a2049211efa231b6c54c29248efdf5.diff
LOG: [Polly] Move SimplifyVisitor into polly namespace.
Declarations in headers should not be in the anonymous
namespace. Compilers also warn about the use of
<anon namespace>::SimplifyVisitor as a public field in
polly::SimplifyPass and polly::SimplifyPrinterPass.
Added:
Modified:
polly/include/polly/Simplify.h
polly/lib/Transform/Simplify.cpp
Removed:
################################################################################
diff --git a/polly/include/polly/Simplify.h b/polly/include/polly/Simplify.h
index aa8c8a2cd2e3..952f937a91c4 100644
--- a/polly/include/polly/Simplify.h
+++ b/polly/include/polly/Simplify.h
@@ -22,7 +22,7 @@ class PassRegistry;
class Pass;
} // namespace llvm
-namespace {
+namespace polly {
class SimplifyVisitor {
private:
/// The invocation id (if there are multiple instances in the pass manager's
@@ -114,7 +114,7 @@ class SimplifyVisitor {
void releaseMemory();
};
-} // namespace
+} // namespace polly
namespace polly {
diff --git a/polly/lib/Transform/Simplify.cpp b/polly/lib/Transform/Simplify.cpp
index bad17ce92c45..c25a2eff72df 100644
--- a/polly/lib/Transform/Simplify.cpp
+++ b/polly/lib/Transform/Simplify.cpp
@@ -116,6 +116,7 @@ static isl::union_map underapproximatedAddMap(isl::union_map UMap,
return UResult;
}
+} // namespace
/// Return whether at least one simplification has been applied.
bool SimplifyVisitor::isModified() const {
@@ -678,6 +679,7 @@ void SimplifyVisitor::releaseMemory() {
StmtsRemoved = 0;
}
+namespace {
class SimplifyLegacyPass : public ScopPass {
public:
static char ID;
More information about the llvm-commits
mailing list