@@ -84,51 +84,6 @@ namespace isl {
84
84
// multi_aff is a vector-valued function, but just a plain aff is a
85
85
// scalar-valued multivariate function plus parameters everywhere.
86
86
87
- // Use the following API as follows:
88
- // isl::MUPA M(mupa);
89
- // cout << "MUPA: " << M.mupa << endl;
90
- // cout << "UPA: " << M[0].upa << endl;
91
- // cout << "PA: " << M[0][0].pa << endl;
92
- // cout << "PA[0] set: " << M[0][0][0].first << endl;
93
- // cout << "PA[0] aff: " << M[0][0][0].second << endl;
94
- //
95
-
96
- /* WARNING: this does not allow inplace modifications .. ugh */
97
- struct PA : std::vector<std::pair<isl::set, isl::aff>> {
98
- explicit PA (isl::pw_aff pa_) : pa(pa_) {
99
- this ->reserve (pa.n_piece ());
100
- auto f = [&](isl::set s, isl::aff a) {
101
- this ->push_back (std::make_pair (s, a));
102
- };
103
- pa.foreach_piece (f);
104
- }
105
- isl::pw_aff pa;
106
- };
107
-
108
- /* WARNING: this does not allow inplace modifications .. ugh */
109
- struct UPA : std::vector<PA> {
110
- explicit UPA (isl::union_pw_aff upa_) : upa(upa_) {
111
- std::vector<PA> res;
112
- auto f = [&](isl::pw_aff pa) { this ->push_back (PA (pa)); };
113
- upa.foreach_pw_aff (f);
114
- }
115
- PA extract (isl::space s) const {
116
- return PA (upa.extract_pw_aff (s));
117
- }
118
- isl::union_pw_aff upa;
119
- };
120
-
121
- /* WARNING: this does not allow inplace modifications .. ugh */
122
- struct MUPA : std::vector<UPA> {
123
- explicit MUPA (isl::multi_union_pw_aff mupa_) : mupa(mupa_) {
124
- this ->reserve (mupa.dim (isl::dim_type::set));
125
- for (size_t i = 0 ; i < mupa.dim (isl::dim_type::set); ++i) {
126
- this ->push_back (UPA (mupa.get_union_pw_aff (i)));
127
- }
128
- }
129
- isl::multi_union_pw_aff mupa;
130
- };
131
-
132
87
template <typename T, isl::dim_type DT>
133
88
struct DimIds : public std ::vector<isl::id> {
134
89
DimIds (T s) {
0 commit comments