Polly 20.0.0git
print_templ_yaml.c
Go to the documentation of this file.
1#define xCAT(A,B) A ## B
2#define CAT(A,B) xCAT(A,B)
3#undef TYPE
4#define TYPE CAT(isl_,BASE)
5#define xFN(TYPE,NAME) TYPE ## _ ## NAME
6#define FN(TYPE,NAME) xFN(TYPE,NAME)
7
8void FN(TYPE,dump)(__isl_keep TYPE *obj)
9{
11
12 if (!obj)
13 return;
14
15 p = isl_printer_to_file(FN(TYPE,get_ctx)(obj), stderr);
17 p = FN(isl_printer_print,BASE)(p, obj);
19}
20
21/* Return a string representation of "obj".
22 * Print the object in flow format.
23 */
25{
27 char *s;
28
29 if (!obj)
30 return NULL;
31
32 p = isl_printer_to_str(FN(TYPE,get_ctx)(obj));
34 p = FN(isl_printer_print,BASE)(p, obj);
37
38 return s;
39}
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
#define BASE
Definition: flow_cmp.c:49
const char * p
Definition: isl_test.c:8643
const char * obj
Definition: isl_test.c:3316
#define TYPE
#define FN(TYPE, NAME)
#define ISL_YAML_STYLE_FLOW
Definition: printer.h:39
__isl_null isl_printer * isl_printer_free(__isl_take isl_printer *printer)
Definition: isl_printer.c:269
__isl_give char * isl_printer_get_str(__isl_keep isl_printer *printer)
Definition: isl_printer.c:677
__isl_give isl_printer * isl_printer_to_file(isl_ctx *ctx, FILE *file)
Definition: isl_printer.c:217
#define ISL_YAML_STYLE_BLOCK
Definition: printer.h:38
__isl_give isl_printer * isl_printer_set_yaml_style(__isl_take isl_printer *p, int yaml_style)
Definition: isl_printer.c:464
__isl_give isl_printer * isl_printer_to_str(isl_ctx *ctx)
Definition: isl_printer.c:240