Polly
20.0.0git
llvm-project
polly
lib
External
isl
print_yaml_field_templ.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
8
/* Print a key-value pair of a YAML mapping to "p",
9
* with key "name" and value "val".
10
*/
11
static
__isl_give
isl_printer
*
FN
(print_yaml_field,
BASE
)(
12
__isl_take
isl_printer
*
p
,
const
char
*
name
,
__isl_keep
TYPE
*
val
)
13
{
14
p
=
isl_printer_print_str
(
p
,
name
);
15
p
=
isl_printer_yaml_next
(
p
);
16
p
=
isl_printer_print_str
(
p
,
"\""
);
17
p
=
FN
(isl_printer_print,
BASE
)(
p
,
val
);
18
p
=
isl_printer_print_str
(
p
,
"\""
);
19
p
=
isl_printer_yaml_next
(
p
);
20
21
return
p
;
22
}
__isl_take
#define __isl_take
Definition:
ctx.h:22
__isl_give
#define __isl_give
Definition:
ctx.h:19
__isl_keep
#define __isl_keep
Definition:
ctx.h:25
BASE
#define BASE
Definition:
flow_cmp.c:49
val
__isl_export __isl_give ISL_HMAP __isl_take ISL_KEY __isl_take ISL_VAL * val
Definition:
hmap.h:32
p
const char * p
Definition:
isl_test.c:8643
name
const char * name
Definition:
isl_test.c:10938
TYPE
#define TYPE
Definition:
print_yaml_field_templ.c:4
FN
#define FN(TYPE, NAME)
Definition:
print_yaml_field_templ.c:6
isl_printer_yaml_next
__isl_give isl_printer * isl_printer_yaml_next(__isl_take isl_printer *p)
Definition:
isl_printer.c:831
isl_printer_print_str
__isl_give isl_printer * isl_printer_print_str(__isl_take isl_printer *p, const char *s)
Definition:
isl_printer.c:617
isl_printer
Definition:
isl_printer_private.h:26
Generated on Wed Nov 13 2024 03:17:30 for Polly by
1.9.6