[polly] r229254 - Add getSize() to the SCoP class.

Johannes Doerfert doerfert at cs.uni-saarland.de
Sat Feb 14 04:13:18 PST 2015


Author: jdoerfert
Date: Sat Feb 14 06:13:17 2015
New Revision: 229254

URL: http://llvm.org/viewvc/llvm-project?rev=229254&view=rev
Log:
Add getSize() to the SCoP class.

Modified:
    polly/trunk/include/polly/ScopInfo.h

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=229254&r1=229253&r2=229254&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sat Feb 14 06:13:17 2015
@@ -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.





More information about the llvm-commits mailing list