2 * Use of this software is governed by the MIT license
5 #define xFN(TYPE,NAME) TYPE ## _ ## NAME
6 #define FN(TYPE,NAME) xFN(TYPE,NAME)
8 /* Drop all parameters not referenced by "obj".
10 __isl_give TYPE
*FN(TYPE
,drop_unused_params
)(__isl_take TYPE
*obj
)
15 n
= FN(TYPE
,dim
)(obj
, isl_dim_param
);
16 if (n
< 0 || FN(TYPE
,check_named_params
)(obj
) < 0)
17 return FN(TYPE
,free
)(obj
);
19 for (i
= n
- 1; i
>= 0; i
--) {
22 involves
= FN(TYPE
,involves_dims
)(obj
, isl_dim_param
, i
, 1);
24 return FN(TYPE
,free
)(obj
);
26 obj
= FN(TYPE
,drop_dims
)(obj
, isl_dim_param
, i
, 1);