forked from OSchip/llvm-project
Mark Scop::getDomainConditions as const [NFC]
llvm-svn: 266738
This commit is contained in:
parent
86f1bf98dc
commit
fff283df7a
|
@ -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;
|
||||
|
|
|
@ -2179,11 +2179,11 @@ static inline __isl_give isl_set *addDomainDimId(__isl_take isl_set *Domain,
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue