buildtools/gcc/isl/isl_project_out_all_params_templ.c
Fredrik Holmqvist c8db99d323 Redo Update to ISL 0.22.1
GCC had a horrible .gitignore, untracked files were not applied
2020-07-22 10:07:48 +02:00

22 lines
489 B
C

/*
* Use of this software is governed by the MIT license
*
* Written by Sven Verdoolaege
*/
#define xFN(TYPE,NAME) TYPE ## _ ## NAME
#define FN(TYPE,NAME) xFN(TYPE,NAME)
/* Project out all parameters from "obj" by existentially quantifying
* over them.
*/
__isl_give TYPE *FN(TYPE,project_out_all_params)(__isl_take TYPE *obj)
{
isl_size n;
n = FN(TYPE,dim)(obj, isl_dim_param);
if (n < 0)
return FN(TYPE,free)(obj);
return FN(TYPE,project_out)(obj, isl_dim_param, 0, n);
}