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

Commit cae6a9a

Browse files
author
Sven Verdoolaege
committed
Scop::domainRef: use templated isl types
1 parent 26d5f4a commit cae6a9a

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
@@ -509,7 +509,7 @@ struct Scop {
509509
// By analogy with generalized functions, the domain is the "support" part
510510
// of the ScheduleTree "function".
511511
private:
512-
isl::union_set& domainRef();
512+
isl::UnionSet<Statement>& domainRef();
513513

514514
public:
515515
const isl::UnionSet<Statement> domain() const;

0 commit comments

Comments
 (0)