diff options
author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-02-14 12:13:17 +0000 |
---|---|---|
committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2015-02-14 12:13:17 +0000 |
commit | 48d75034de6726f902494404114949a2ec82e5fb (patch) | |
tree | ea32a95cae723636f98138ae892378790e030218 | |
parent | 6f7921f2be74369d36d5aff11656bd18beb0bbf8 (diff) | |
download | bcm5719-llvm-48d75034de6726f902494404114949a2ec82e5fb.tar.gz bcm5719-llvm-48d75034de6726f902494404114949a2ec82e5fb.zip |
Add getSize() to the SCoP class.
llvm-svn: 229254
-rw-r--r-- | polly/include/polly/ScopInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 44ae6e27c36..d8324e2e6da 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -855,6 +855,9 @@ public: /// @brief Return the stmt for the given @p BB or nullptr if none. ScopStmt *getStmtForBasicBlock(BasicBlock *BB) const; + /// @brief Return the number of statements in the SCoP. + size_t getSize() const { return Stmts.size(); } + /// @name Statements Iterators /// /// These iterators iterate over all statements of this Scop. |