summaryrefslogtreecommitdiff
path: root/polly/unittests
diff options
context:
space:
mode:
authorRiccardo Mori <patacca@autistici.org>2021-07-19 10:47:52 +0200
committerRiccardo Mori <patacca@autistici.org>2021-07-19 11:24:53 +0200
commitbad3ebbaae3d5a99c1608f38b1ca597433b89e7c (patch)
tree2a355c4cc5b7b8b87dfdc2910698663225a49451 /polly/unittests
parent3f8f29233067faef6b2c22a6b654abf7e638f2be (diff)
downloadllvm-bad3ebbaae3d5a99c1608f38b1ca597433b89e7c.tar.gz
[Polly][Isl] Stop generating isl::union_{set,map} from isl::space. NFC
This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface. Changes made: - Stop generating `isl::union_set` and isl::union_map` from `isl::space` and instead generate them from `isl::ctx` - Disable clang-format on `isl-noexceptions.h` - Removed `isl::union_{set,map}` generator from `isl::space` from `isl-noexceptions.h` - `isl-noexceptions.h` has been generated by this https://github.com/patacca/isl/commit/87c3413b6f1d62ca3dddf716352f90a0b8533353 Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D106059
Diffstat (limited to 'polly/unittests')
-rw-r--r--polly/unittests/DeLICM/DeLICMTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/unittests/DeLICM/DeLICMTest.cpp b/polly/unittests/DeLICM/DeLICMTest.cpp
index 34a73064246a..b11b146fe39b 100644
--- a/polly/unittests/DeLICM/DeLICMTest.cpp
+++ b/polly/unittests/DeLICM/DeLICMTest.cpp
@@ -23,7 +23,7 @@ namespace {
/// Get the universes of all spaces in @p USet.
isl::union_set unionSpace(const isl::union_set &USet) {
- auto Result = isl::union_set::empty(USet.get_space());
+ auto Result = isl::union_set::empty(USet.ctx());
for (isl::set Set : USet.get_set_list()) {
isl::space Space = Set.get_space();
isl::set Universe = isl::set::universe(Space);
@@ -45,7 +45,7 @@ void completeLifetime(isl::union_set Universe, isl::union_map OccupiedAndKnown,
if (!OccupiedAndKnown.is_null()) {
assert(Known.is_null());
- Known = isl::union_map::empty(ParamSpace);
+ Known = isl::union_map::empty(ParamSpace.ctx());
if (Occupied.is_null())
Occupied = OccupiedAndKnown.domain();
@@ -63,7 +63,7 @@ void completeLifetime(isl::union_set Universe, isl::union_map OccupiedAndKnown,
}
if (Known.is_null()) { // By default, nothing is known.
- Known = isl::union_map::empty(ParamSpace);
+ Known = isl::union_map::empty(ParamSpace.ctx());
}
// Conditions that must hold when returning.
@@ -96,7 +96,7 @@ bool checkIsConflictingNonsymmetricCommon(
isl::union_map ProposedOccupiedAndKnown, isl::union_set ProposedUnused,
isl::union_map ProposedWritten) {
// Determine universe (set of all possible domains).
- auto Universe = isl::union_set::empty(isl::space::params_alloc(Ctx, 0));
+ auto Universe = isl::union_set::empty(Ctx);
if (!ExistingOccupiedAndKnown.is_null())
Universe = Universe.unite(ExistingOccupiedAndKnown.domain());
if (!ExistingUnused.is_null())