projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add isl_token_get_type
[platform/upstream/isl.git]
/
include
/
isl
/
stream.h
diff --git
a/include/isl/stream.h
b/include/isl/stream.h
index
c421030
..
7484af1
100644
(file)
--- a/
include/isl/stream.h
+++ b/
include/isl/stream.h
@@
-1,7
+1,7
@@
/*
* Copyright 2008-2009 Katholieke Universiteit Leuven
*
/*
* Copyright 2008-2009 Katholieke Universiteit Leuven
*
- * Use of this software is governed by the
GNU LGPLv2.1
license
+ * Use of this software is governed by the
MIT
license
*
* Written by Sven Verdoolaege, K.U.Leuven, Departement
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*
* Written by Sven Verdoolaege, K.U.Leuven, Departement
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
@@
-14,6
+14,7
@@
#include <isl/hash.h>
#include <isl/aff_type.h>
#include <isl/obj.h>
#include <isl/hash.h>
#include <isl/aff_type.h>
#include <isl/obj.h>
+#include <isl/val.h>
#if defined(__cplusplus)
extern "C" {
#if defined(__cplusplus)
extern "C" {
@@
-23,7
+24,7
@@
enum isl_token_type { ISL_TOKEN_ERROR = -1,
ISL_TOKEN_UNKNOWN = 256, ISL_TOKEN_VALUE,
ISL_TOKEN_IDENT, ISL_TOKEN_GE,
ISL_TOKEN_LE, ISL_TOKEN_GT, ISL_TOKEN_LT,
ISL_TOKEN_UNKNOWN = 256, ISL_TOKEN_VALUE,
ISL_TOKEN_IDENT, ISL_TOKEN_GE,
ISL_TOKEN_LE, ISL_TOKEN_GT, ISL_TOKEN_LT,
- ISL_TOKEN_NE,
+ ISL_TOKEN_NE,
ISL_TOKEN_EQ_EQ,
ISL_TOKEN_LEX_GE, ISL_TOKEN_LEX_LE,
ISL_TOKEN_LEX_GT, ISL_TOKEN_LEX_LT,
ISL_TOKEN_TO, ISL_TOKEN_AND,
ISL_TOKEN_LEX_GE, ISL_TOKEN_LEX_LE,
ISL_TOKEN_LEX_GT, ISL_TOKEN_LEX_LT,
ISL_TOKEN_TO, ISL_TOKEN_AND,
@@
-37,7
+38,7
@@
enum isl_token_type { ISL_TOKEN_ERROR = -1,
ISL_TOKEN_LAST };
struct isl_token {
ISL_TOKEN_LAST };
struct isl_token {
-
enum isl_token_type
type;
+
int
type;
unsigned int on_new_line : 1;
unsigned is_keyword : 1;
unsigned int on_new_line : 1;
unsigned is_keyword : 1;
@@
-52,6
+53,9
@@
struct isl_token {
} u;
};
} u;
};
+__isl_give isl_val *isl_token_get_val(isl_ctx *ctx, struct isl_token *tok);
+__isl_give char *isl_token_get_str(isl_ctx *ctx, struct isl_token *tok);
+int isl_token_get_type(struct isl_token *tok);
void isl_token_free(struct isl_token *tok);
struct isl_stream {
void isl_token_free(struct isl_token *tok);
struct isl_stream {
@@
-97,6
+101,7
@@
enum isl_token_type isl_stream_register_keyword(struct isl_stream *s,
const char *name);
struct isl_obj isl_stream_read_obj(struct isl_stream *s);
const char *name);
struct isl_obj isl_stream_read_obj(struct isl_stream *s);
+__isl_give isl_multi_aff *isl_stream_read_multi_aff(struct isl_stream *s);
__isl_give isl_map *isl_stream_read_map(struct isl_stream *s);
__isl_give isl_set *isl_stream_read_set(struct isl_stream *s);
__isl_give isl_pw_qpolynomial *isl_stream_read_pw_qpolynomial(
__isl_give isl_map *isl_stream_read_map(struct isl_stream *s);
__isl_give isl_set *isl_stream_read_set(struct isl_stream *s);
__isl_give isl_pw_qpolynomial *isl_stream_read_pw_qpolynomial(