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

Commit a67767d

Browse files
author
Sven Verdoolaege
committed
[RFC] use templated isl types Scop::makeContext
Templated isl types require the user to specify the domain and range universes of isl objects, allowing the compiler to check whether it makes sense to combine pairs of objects. This RFC only converts isPromotableToRegistersBelow and some related functions to illustrate the effect. The isPromotableToRegistersBelow was already applying operations correctly, so the code itself did not require any changes. However, one variable was reused to store different types of intermediate result and this one had to be split up into several variables because they now have different types.
1 parent 0b611f4 commit a67767d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/core/polyhedral/scop.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct Scop {
131131
// Returns a set that specializes the named scop's subset of
132132
// parameter space to the integer values passed to the function.
133133
template <typename T>
134-
isl::set makeContext(
134+
isl::Set<> makeContext(
135135
const std::unordered_map<std::string, T>& sizes =
136136
std::unordered_map<std::string, T>()) const {
137137
auto s = isl::Space<>(domain().get_space());

0 commit comments

Comments
 (0)