diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-03-05 00:43:48 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-03-05 00:43:48 +0000 |
commit | 7e6424ba5a6d64040346f775e10c7d4e3cb0c92c (patch) | |
tree | b0f9bfbd4718d0418aad51ead1cc695f88f5946e /polly/lib/Exchange | |
parent | 6745822fd1cf54aa68196b317cdbc139418b8aa0 (diff) | |
download | bcm5719-llvm-7e6424ba5a6d64040346f775e10c7d4e3cb0c92c.tar.gz bcm5719-llvm-7e6424ba5a6d64040346f775e10c7d4e3cb0c92c.zip |
Create a dependence struct to hold dependence information for a SCoP.
The new Dependences struct in the DependenceInfo holds all information
that was formerly part of the DependenceInfo. It also provides the
same interface for the user to access this information.
This is another step to a more general ScopPass interface that does
allow multiple SCoPs to be "in flight".
llvm-svn: 231327
Diffstat (limited to 'polly/lib/Exchange')
-rw-r--r-- | polly/lib/Exchange/JSONExporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp index a7ce4c662a8..9d07250fcea 100644 --- a/polly/lib/Exchange/JSONExporter.cpp +++ b/polly/lib/Exchange/JSONExporter.cpp @@ -178,11 +178,11 @@ void JSONImporter::printScop(raw_ostream &OS, Scop &S) const { OS << "New access function '" << *I << "'detected in JSCOP file\n"; } -typedef DependenceInfo::StatementToIslMapTy StatementToIslMapTy; +typedef Dependences::StatementToIslMapTy StatementToIslMapTy; bool JSONImporter::runOnScop(Scop &S) { Region &R = S.getRegion(); - DependenceInfo *D = &getAnalysis<DependenceInfo>(); + const Dependences &D = getAnalysis<DependenceInfo>().getDependences(); const DataLayout &DL = getAnalysis<DataLayoutPass>().getDataLayout(); std::string FileName = ImportDir + "/" + getFileName(S); @@ -239,7 +239,7 @@ bool JSONImporter::runOnScop(Scop &S) { index++; } - if (!D->isValidScattering(&NewScattering)) { + if (!D.isValidScattering(S, &NewScattering)) { errs() << "JScop file contains a scattering that changes the " << "dependences. Use -disable-polly-legality to continue anyways\n"; for (StatementToIslMapTy::iterator SI = NewScattering.begin(), |