This repository was archived by the owner on Apr 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ ScopUPtr Scop::makeScop(isl::ctx ctx, const lang::TreeRef& treeRef) {
78
78
return makeScop (ctx, tc2halide::translate (ctx, treeRef));
79
79
}
80
80
81
- isl::union_set& Scop::domain () {
81
+ isl::union_set& Scop::domainRef () {
82
82
auto dom = scheduleRoot ()->elemAs <ScheduleTreeElemDomain>();
83
83
CHECK (dom) << " root is not a domain in: " << *scheduleRoot ();
84
84
// TODO: activate this when the invariant has a chance of working (i.e. we
@@ -92,7 +92,7 @@ isl::union_set& Scop::domain() {
92
92
}
93
93
94
94
const isl::union_set Scop::domain () const {
95
- return const_cast <Scop*>(this )->domain ();
95
+ return const_cast <Scop*>(this )->domainRef ();
96
96
}
97
97
98
98
std::ostream& operator <<(std::ostream& os, const Scop& s) {
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ struct Scop {
110
110
111
111
// Specialize the Scop with respect to its globalParameterContext.
112
112
void specializeToContext () {
113
- domain () = domain ().intersect_params (globalParameterContext);
113
+ domainRef () = domain ().intersect_params (globalParameterContext);
114
114
reads = reads.intersect_params (globalParameterContext);
115
115
writes = writes.intersect_params (globalParameterContext);
116
116
}
@@ -489,7 +489,9 @@ struct Scop {
489
489
// state is kept.
490
490
// By analogy with generalized functions, the domain is the "support" part
491
491
// of the ScheduleTree "function".
492
- isl::union_set& domain ();
492
+ private:
493
+ isl::union_set& domainRef ();
494
+ public:
493
495
const isl::union_set domain () const ;
494
496
// The parameter values of a specialized Scop.
495
497
std::unordered_map<std::string, int > parameterValues;
You can’t perform that action at this time.
0 commit comments