buildtools/gcc/isl/has_single_reference_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

13 lines
288 B
C

#define xFN(TYPE,NAME) TYPE ## _ ## NAME
#define FN(TYPE,NAME) xFN(TYPE,NAME)
/* Does "obj" have a single reference?
* That is, can "obj" be changed inplace?
*/
isl_bool FN(TYPE,has_single_reference)(__isl_keep TYPE *obj)
{
if (!obj)
return isl_bool_error;
return obj->ref == 1;
}