Polly
20.0.0git
llvm-project
polly
lib
External
isl
isl_read_from_str_templ.c
Go to the documentation of this file.
1
/*
2
* Copyright 2008 Katholieke Universiteit Leuven
3
*
4
* Use of this software is governed by the MIT license
5
*
6
* Written by Sven Verdoolaege, K.U.Leuven, Departement
7
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8
*/
9
10
#define xCAT(A,B) A ## B
11
#define CAT(A,B) xCAT(A,B)
12
#undef TYPE
13
#define TYPE CAT(isl_,TYPE_BASE)
14
15
/* Read an object of type TYPE from "str" (using an isl_stream).
16
*/
17
__isl_give
TYPE
*
FN
(
isl
,
FN
(
TYPE_BASE
,read_from_str))(
isl_ctx
*ctx,
18
const
char
*
str
)
19
{
20
TYPE
*
obj
;
21
isl_stream
*s =
isl_stream_new_str
(ctx,
str
);
22
if
(!s)
23
return
NULL;
24
obj
=
FN
(isl_stream_read,
TYPE_BASE
)(s);
25
isl_stream_free
(s);
26
return
obj
;
27
}
FN
#define FN(TYPE, NAME)
Definition:
check_parse_fail_test_templ.c:15
__isl_give
#define __isl_give
Definition:
ctx.h:19
TYPE_BASE
#define TYPE_BASE
Definition:
isl_id.c:287
TYPE
#define TYPE
Definition:
isl_read_from_str_templ.c:13
obj
const char * obj
Definition:
isl_test.c:3316
str
const char * str
Definition:
isl_test.c:2095
isl
These are automatically generated checked C++ bindings for isl.
Definition:
ISLTools.h:45
isl_stream_free
void isl_stream_free(__isl_take isl_stream *s)
Definition:
isl_stream.c:805
isl_stream_new_str
__isl_give isl_stream * isl_stream_new_str(isl_ctx *ctx, const char *str)
Definition:
isl_stream.c:228
isl_ctx
Definition:
isl_ctx_private.h:11
isl_stream
Definition:
isl_stream_private.h:41
Generated on Wed Nov 13 2024 03:17:26 for Polly by
1.9.6