[polly] r309835 - Fix r309826: Move intantiation and specialization of OwningScopAnalysisManagerFunctionProxy to the polly namespace.

Philip Pfaffe via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 2 10:25:46 PDT 2017


Author: pfaffe
Date: Wed Aug  2 10:25:45 2017
New Revision: 309835

URL: http://llvm.org/viewvc/llvm-project?rev=309835&view=rev
Log:
Fix r309826: Move intantiation and specialization of OwningScopAnalysisManagerFunctionProxy to the polly namespace.

When compiling with clang, explicit instantiation of the
OwningScopAnalysisManagerFunctionProxy needs to happen within the polly
namespace. Same goes with the specialization of its run method.

Modified:
    polly/trunk/lib/Analysis/ScopPass.cpp

Modified: polly/trunk/lib/Analysis/ScopPass.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopPass.cpp?rev=309835&r1=309834&r2=309835&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopPass.cpp (original)
+++ polly/trunk/lib/Analysis/ScopPass.cpp Wed Aug  2 10:25:45 2017
@@ -41,7 +41,9 @@ void ScopPass::getAnalysisUsage(Analysis
   AU.setPreservesAll();
 }
 
+namespace polly {
 template class OwningInnerAnalysisManagerProxy<ScopAnalysisManager, Function>;
+}
 
 namespace llvm {
 
@@ -132,15 +134,18 @@ bool ScopAnalysisManagerFunctionProxy::R
 }
 
 template <>
-OwningScopAnalysisManagerFunctionProxy::Result
-OwningScopAnalysisManagerFunctionProxy::run(Function &F,
-                                            FunctionAnalysisManager &FAM) {
-  return Result(InnerAM, FAM.getResult<ScopInfoAnalysis>(F));
-}
-template <>
 ScopAnalysisManagerFunctionProxy::Result
 ScopAnalysisManagerFunctionProxy::run(Function &F,
                                       FunctionAnalysisManager &FAM) {
   return Result(*InnerAM, FAM.getResult<ScopInfoAnalysis>(F));
 }
 } // namespace llvm
+
+namespace polly {
+template <>
+OwningScopAnalysisManagerFunctionProxy::Result
+OwningScopAnalysisManagerFunctionProxy::run(Function &F,
+                                            FunctionAnalysisManager &FAM) {
+  return Result(InnerAM, FAM.getResult<ScopInfoAnalysis>(F));
+}
+}




More information about the llvm-commits mailing list