Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit cff2073

Browse files
author
Sven Verdoolaege
committed
Scop::domainRef: use templated isl types
1 parent eddcc7a commit cff2073

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tc/core/polyhedral/scop.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ScopUPtr Scop::makeScop(
8585
return makeScop(ctx, tc2halide::translate(ctx, treeRef, compilerOptions));
8686
}
8787

88-
isl::union_set& Scop::domainRef() {
88+
isl::UnionSet<Statement>& Scop::domainRef() {
8989
auto dom = scheduleRoot()->as<ScheduleTreeDomain>();
9090
TC_CHECK(dom) << "root is not a domain in: " << *scheduleRoot();
9191
// TODO: activate this when the invariant has a chance of working (i.e. we
@@ -99,7 +99,7 @@ isl::union_set& Scop::domainRef() {
9999
}
100100

101101
const isl::UnionSet<Statement> Scop::domain() const {
102-
return isl::UnionSet<Statement>(const_cast<Scop*>(this)->domainRef());
102+
return const_cast<Scop*>(this)->domainRef();
103103
}
104104

105105
std::ostream& operator<<(std::ostream& os, const Scop& s) {

tc/core/polyhedral/scop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ struct Scop {
511511
// By analogy with generalized functions, the domain is the "support" part
512512
// of the ScheduleTree "function".
513513
private:
514-
isl::union_set& domainRef();
514+
isl::UnionSet<Statement>& domainRef();
515515

516516
public:
517517
const isl::UnionSet<Statement> domain() const;

0 commit comments

Comments
 (0)