Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSON][PM] Port json import/export over to new pm
Summary: I pulled out all functionality into static functions, and use those both in the legacy passes and in the new ones. Reviewers: grosser, Meinersbur, bollu Reviewed By: Meinersbur Subscribers: llvm-commits, pollydev Differential Revision: https://reviews.llvm.org/D36578 llvm-svn: 310597
- Loading branch information
Showing
4 changed files
with
149 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef POLLY_JSONEXPORTER_H | ||
#define POLLY_JSONEXPORTER_H | ||
|
||
#include "polly/ScopPass.h" | ||
#include "llvm/IR/PassManager.h" | ||
|
||
namespace polly { | ||
/// This pass exports a scop to a jscop file. The filename is generated from the | ||
/// concatenation of the function and scop name. | ||
struct JSONExportPass : public llvm::PassInfoMixin<JSONExportPass> { | ||
llvm::PreservedAnalyses run(Scop &, ScopAnalysisManager &, | ||
ScopStandardAnalysisResults &, SPMUpdater &); | ||
}; | ||
|
||
/// This pass imports a scop from a jscop file. The filename is deduced from the | ||
/// concatenation of the function and scop name. | ||
struct JSONImportPass : public llvm::PassInfoMixin<JSONExportPass> { | ||
llvm::PreservedAnalyses run(Scop &, ScopAnalysisManager &, | ||
ScopStandardAnalysisResults &, SPMUpdater &); | ||
}; | ||
} // namespace polly | ||
|
||
#endif /* POLLY_JSONEXPORTER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.