diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-11-15 11:38:36 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-11-15 11:38:36 +0000 |
| commit | ecf6cd06f0d56d3d410d9fff50a58da154e2f212 (patch) | |
| tree | 15f493b0b97cef0934fe2a947032eee5f542e0ab /polly/lib/Exchange | |
| parent | 9847e744e2889c2b0e11bc36e7665b206472c20d (diff) | |
| download | bcm5719-llvm-ecf6cd06f0d56d3d410d9fff50a58da154e2f212.tar.gz bcm5719-llvm-ecf6cd06f0d56d3d410d9fff50a58da154e2f212.zip | |
Make JScop export/reimport accessible from clang
llvm-svn: 144638
Diffstat (limited to 'polly/lib/Exchange')
| -rwxr-xr-x | polly/lib/Exchange/JSONExporter.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index 3a45cb1a8c7..00c9f88e2e5 100755 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -167,10 +167,13 @@ void JSONExporter::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<ScopInfo>(); } -static RegisterPass<JSONExporter> A("polly-export-jscop", - "Polly - Export Scops as JSON" - " (Writes a .jscop file for each Scop)" - ); +INITIALIZE_PASS_BEGIN(JSONExporter, "polly-export-jscop", + "Polly - Export Scops as JSON" + " (Writes a .jscop file for each Scop)", false, false) +INITIALIZE_PASS_DEPENDENCY(Dependences) +INITIALIZE_PASS_END(JSONExporter, "polly-export-jscop", + "Polly - Export Scops as JSON" + " (Writes a .jscop file for each Scop)", false, false) Pass *polly::createJSONExporterPass() { return new JSONExporter(); @@ -304,10 +307,13 @@ void JSONImporter::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<Dependences>(); } -static RegisterPass<JSONImporter> B("polly-import-jscop", - "Polly - Import Scops from JSON" - " (Reads a .jscop file for each Scop)" - ); +INITIALIZE_PASS_BEGIN(JSONImporter, "polly-import-jscop", + "Polly - Import Scops from JSON" + " (Reads a .jscop file for each Scop)", false, false) +INITIALIZE_PASS_DEPENDENCY(Dependences) +INITIALIZE_PASS_END(JSONImporter, "polly-import-jscop", + "Polly - Import Scops from JSON" + " (Reads a .jscop file for each Scop)", false, false) Pass *polly::createJSONImporterPass() { return new JSONImporter(); |

