[polly] r266738 - Mark Scop::getDomainConditions as const [NFC]

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 07:48:22 PDT 2016


Author: jdoerfert
Date: Tue Apr 19 09:48:22 2016
New Revision: 266738

URL: http://llvm.org/viewvc/llvm-project?rev=266738&view=rev
Log:
Mark Scop::getDomainConditions as const [NFC]

Modified:
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=266738&r1=266737&r2=266738&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Tue Apr 19 09:48:22 2016
@@ -2128,12 +2128,12 @@ public:
   /// @brief Return the domain of @p Stmt.
   ///
   /// @param Stmt The statement for which the conditions should be returned.
-  __isl_give isl_set *getDomainConditions(ScopStmt *Stmt);
+  __isl_give isl_set *getDomainConditions(const ScopStmt *Stmt) const;
 
   /// @brief Return the domain of @p BB.
   ///
   /// @param BB The block for which the conditions should be returned.
-  __isl_give isl_set *getDomainConditions(BasicBlock *BB);
+  __isl_give isl_set *getDomainConditions(BasicBlock *BB) const;
 
   /// @brief Get a union set containing the iteration domains of all statements.
   __isl_give isl_union_set *getDomains() const;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=266738&r1=266737&r2=266738&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Apr 19 09:48:22 2016
@@ -2179,11 +2179,11 @@ static inline __isl_give isl_set *addDom
   return isl_set_set_dim_id(Domain, isl_dim_set, Dim, DimId);
 }
 
-__isl_give isl_set *Scop::getDomainConditions(ScopStmt *Stmt) {
+__isl_give isl_set *Scop::getDomainConditions(const ScopStmt *Stmt) const {
   return getDomainConditions(Stmt->getEntryBlock());
 }
 
-__isl_give isl_set *Scop::getDomainConditions(BasicBlock *BB) {
+__isl_give isl_set *Scop::getDomainConditions(BasicBlock *BB) const {
   auto DIt = DomainMap.find(BB);
   if (DIt != DomainMap.end())
     return isl_set_copy(DIt->getSecond());




More information about the llvm-commits mailing list