Polly 20.0.0git
stream.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2009 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#ifndef ISL_STREAM_H
11#define ISL_STREAM_H
12
13#include <stdio.h>
14#include <isl/hash.h>
15#include <isl/aff_type.h>
16#include <isl/obj.h>
17#include <isl/val_type.h>
18#include <isl/schedule_type.h>
19
20#if defined(__cplusplus)
21extern "C" {
22#endif
23
43
44struct isl_token;
45
48__isl_give char *isl_token_get_str(isl_ctx *ctx, struct isl_token *tok);
49int isl_token_get_type(struct isl_token *tok);
50void isl_token_free(struct isl_token *tok);
51
52struct isl_stream;
53typedef struct isl_stream isl_stream;
54
58
60
62 char *msg);
63
74
76 const char *name);
77
90
96
97#if defined(__cplusplus)
98}
99#endif
100
101#endif
struct isl_multi_aff isl_multi_aff
Definition: aff_type.h:29
#define __isl_take
Definition: ctx.h:22
isl_stat
Definition: ctx.h:84
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
isl_bool
Definition: ctx.h:89
enum isl_fold type
Definition: isl_test.c:4017
const char * name
Definition: isl_test.c:10938
const char * str
Definition: isl_test.c:2095
struct isl_set isl_set
Definition: map_type.h:26
struct isl_basic_set isl_basic_set
Definition: map_type.h:20
void isl_stream_error(__isl_keep isl_stream *s, struct isl_token *tok, char *msg)
Definition: isl_stream.c:142
isl_stat isl_stream_yaml_read_start_sequence(__isl_keep isl_stream *s)
Definition: isl_stream.c:1139
void isl_token_free(struct isl_token *tok)
Definition: isl_stream.c:127
struct isl_obj isl_stream_read_obj(__isl_keep isl_stream *s)
Definition: isl_input.c:3135
__isl_give isl_val * isl_stream_read_val(__isl_keep isl_stream *s)
Definition: isl_input.c:191
__isl_give isl_schedule * isl_stream_read_schedule(isl_stream *s)
int isl_stream_skip_line(__isl_keep isl_stream *s)
Definition: isl_stream.c:376
isl_bool isl_stream_yaml_next(__isl_keep isl_stream *s)
Definition: isl_stream.c:966
isl_token_type
Definition: stream.h:24
@ ISL_TOKEN_ERROR
Definition: stream.h:24
@ ISL_TOKEN_AND
Definition: stream.h:31
@ ISL_TOKEN_FLOOR
Definition: stream.h:39
@ ISL_TOKEN_EXISTS
Definition: stream.h:32
@ ISL_TOKEN_LE
Definition: stream.h:27
@ ISL_TOKEN_TRUE
Definition: stream.h:35
@ ISL_TOKEN_LT
Definition: stream.h:27
@ ISL_TOKEN_DEF
Definition: stream.h:33
@ ISL_TOKEN_INFTY
Definition: stream.h:33
@ ISL_TOKEN_STRING
Definition: stream.h:37
@ ISL_TOKEN_LEX_GE
Definition: stream.h:29
@ ISL_TOKEN_MOD
Definition: stream.h:36
@ ISL_TOKEN_NOT
Definition: stream.h:32
@ ISL_TOKEN_NE
Definition: stream.h:28
@ ISL_TOKEN_VALUE
Definition: stream.h:25
@ ISL_TOKEN_CEIL
Definition: stream.h:39
@ ISL_TOKEN_LEX_LE
Definition: stream.h:29
@ ISL_TOKEN_FLOORD
Definition: stream.h:36
@ ISL_TOKEN_CEILD
Definition: stream.h:36
@ ISL_TOKEN_MAP
Definition: stream.h:38
@ ISL_TOKEN_GE
Definition: stream.h:26
@ ISL_TOKEN_RAT
Definition: stream.h:34
@ ISL_TOKEN_INT_DIV
Definition: stream.h:41
@ ISL_TOKEN_LEX_GT
Definition: stream.h:30
@ ISL_TOKEN_TO
Definition: stream.h:31
@ ISL_TOKEN_GT
Definition: stream.h:27
@ ISL_TOKEN_UNKNOWN
Definition: stream.h:25
@ ISL_TOKEN_LAST
Definition: stream.h:42
@ ISL_TOKEN_OR
Definition: stream.h:32
@ ISL_TOKEN_NAN
Definition: stream.h:33
@ ISL_TOKEN_LEX_LT
Definition: stream.h:30
@ ISL_TOKEN_IDENT
Definition: stream.h:26
@ ISL_TOKEN_FALSE
Definition: stream.h:35
@ ISL_TOKEN_IMPLIES
Definition: stream.h:40
@ ISL_TOKEN_EQ_EQ
Definition: stream.h:28
@ ISL_TOKEN_AFF
Definition: stream.h:38
@ ISL_TOKEN_MAX
Definition: stream.h:34
@ ISL_TOKEN_MIN
Definition: stream.h:34
char * isl_stream_read_ident_if_available(__isl_keep isl_stream *s)
Definition: isl_stream.c:731
void isl_stream_push_token(__isl_keep isl_stream *s, struct isl_token *tok)
Definition: isl_stream.c:311
int isl_stream_is_empty(__isl_keep isl_stream *s)
Definition: isl_stream.c:766
enum isl_token_type isl_stream_register_keyword(__isl_keep isl_stream *s, const char *name)
Definition: isl_stream.c:31
void isl_stream_flush_tokens(__isl_keep isl_stream *s)
Definition: isl_stream.c:789
isl_ctx * isl_stream_get_ctx(__isl_keep isl_stream *s)
Definition: isl_stream.c:800
isl_stat isl_stream_yaml_read_start_mapping(__isl_keep isl_stream *s)
Definition: isl_stream.c:1070
int isl_stream_eat(__isl_keep isl_stream *s, int type)
Definition: isl_stream.c:747
struct isl_token * isl_stream_next_token(__isl_keep isl_stream *s)
Definition: isl_stream.c:693
__isl_give isl_pw_qpolynomial * isl_stream_read_pw_qpolynomial(__isl_keep isl_stream *s)
Definition: isl_input.c:3429
__isl_give isl_stream * isl_stream_new_file(isl_ctx *ctx, FILE *file)
Definition: isl_stream.c:219
__isl_give isl_union_set * isl_stream_read_union_set(__isl_keep isl_stream *s)
Definition: isl_input.c:3226
isl_stat isl_stream_yaml_read_end_mapping(__isl_keep isl_stream *s)
Definition: isl_stream.c:1102
struct isl_token * isl_stream_next_token_on_same_line(__isl_keep isl_stream *s)
Definition: isl_stream.c:698
int isl_stream_next_token_is(__isl_keep isl_stream *s, int type)
Definition: isl_stream.c:718
__isl_give isl_multi_aff * isl_stream_read_multi_aff(__isl_keep isl_stream *s)
Definition: isl_input.c:3855
__isl_give char * isl_token_get_str(isl_ctx *ctx, struct isl_token *tok)
Definition: isl_stream.c:115
__isl_give isl_basic_set * isl_stream_read_basic_set(__isl_keep isl_stream *s)
Definition: isl_input.c:3269
__isl_give isl_set * isl_stream_read_set(__isl_keep isl_stream *s)
Definition: isl_input.c:3158
void isl_stream_free(__isl_take isl_stream *s)
Definition: isl_stream.c:805
__isl_give isl_map * isl_stream_read_map(__isl_keep isl_stream *s)
Definition: isl_input.c:3140
isl_stat isl_stream_yaml_read_end_sequence(__isl_keep isl_stream *s)
Definition: isl_stream.c:1172
__isl_give isl_val * isl_token_get_val(isl_ctx *ctx, struct isl_token *tok)
Definition: isl_stream.c:93
isl_bool isl_token_has_str(struct isl_token *tok)
Definition: isl_stream.c:106
int isl_token_get_type(struct isl_token *tok)
Definition: isl_stream.c:86
__isl_give isl_union_map * isl_stream_read_union_map(__isl_keep isl_stream *s)
Definition: isl_input.c:3177
__isl_give isl_stream * isl_stream_new_str(isl_ctx *ctx, const char *str)
Definition: isl_stream.c:228
__isl_give isl_id * isl_stream_read_id(__isl_keep isl_stream *s)
Definition: isl_id.c:261
int isl_stream_eat_if_available(__isl_keep isl_stream *s, int type)
Definition: isl_stream.c:703
Definition: obj.h:48
struct isl_ctx * ctx
struct isl_union_set isl_union_set