summaryrefslogtreecommitdiffstats
path: root/polly/include
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-08-30 13:04:39 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-08-30 13:04:39 +0000
commitf6eb3a2ed26ca318cb5dc85554b2b1be01c50c00 (patch)
tree0b434f288f6a510f7839b7bb3957eaa91345c60f /polly/include
parent860870b7b0de15d667a9954bed9dba0fa381e4a3 (diff)
downloadbcm5719-llvm-f6eb3a2ed26ca318cb5dc85554b2b1be01c50c00.tar.gz
bcm5719-llvm-f6eb3a2ed26ca318cb5dc85554b2b1be01c50c00.zip
[ScopBuilder/ScopInfo] Move and inline Scop::init into ScopBuilder::buildScop. NFC.
The method is only needed in the SCoP building phase, and doesn't need to be part of the general API. llvm-svn: 312114
Diffstat (limited to 'polly/include')
-rw-r--r--polly/include/polly/ScopInfo.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 3556379de6c..d9d8cea9615 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -1189,6 +1189,8 @@ using InvariantEquivClassesTy = SmallVector<InvariantEquivClassTy, 8>;
/// accesses.
/// At the moment every statement represents a single basic block of LLVM-IR.
class ScopStmt {
+ friend class ScopBuilder;
+
public:
/// Create the ScopStmt from a BasicBlock.
ScopStmt(Scop &parent, BasicBlock &bb, Loop *SurroundingLoop,
@@ -1211,9 +1213,6 @@ public:
const ScopStmt &operator=(const ScopStmt &) = delete;
~ScopStmt();
- /// Initialize members after all MemoryAccesses have been added.
- void init(LoopInfo &LI);
-
private:
/// Polyhedral description
//@{
OpenPOWER on IntegriCloud