extract out isl/ast_type.h
[isl.git] / include / isl / ast_type.h
blob472628877aa2507f9765775f36c2507555dd4fa8
1 #ifndef ISL_AST_TYPE_H
2 #define ISL_AST_TYPE_H
4 #include <isl/list.h>
6 #if defined(__cplusplus)
7 extern "C" {
8 #endif
10 struct isl_ast_expr;
11 typedef struct isl_ast_expr isl_ast_expr;
13 struct isl_ast_node;
14 typedef struct isl_ast_node isl_ast_node;
16 enum isl_ast_op_type {
17 isl_ast_op_error = -1,
18 isl_ast_op_and,
19 isl_ast_op_and_then,
20 isl_ast_op_or,
21 isl_ast_op_or_else,
22 isl_ast_op_max,
23 isl_ast_op_min,
24 isl_ast_op_minus,
25 isl_ast_op_add,
26 isl_ast_op_sub,
27 isl_ast_op_mul,
28 isl_ast_op_div,
29 isl_ast_op_fdiv_q, /* Round towards -infty */
30 isl_ast_op_pdiv_q, /* Dividend is non-negative */
31 isl_ast_op_pdiv_r, /* Dividend is non-negative */
32 isl_ast_op_cond,
33 isl_ast_op_select,
34 isl_ast_op_eq,
35 isl_ast_op_le,
36 isl_ast_op_lt,
37 isl_ast_op_ge,
38 isl_ast_op_gt,
39 isl_ast_op_call,
40 isl_ast_op_access
43 enum isl_ast_expr_type {
44 isl_ast_expr_error = -1,
45 isl_ast_expr_op,
46 isl_ast_expr_id,
47 isl_ast_expr_int
50 enum isl_ast_node_type {
51 isl_ast_node_error = -1,
52 isl_ast_node_for = 1,
53 isl_ast_node_if,
54 isl_ast_node_block,
55 isl_ast_node_user
58 struct isl_ast_print_options;
59 typedef struct isl_ast_print_options isl_ast_print_options;
61 ISL_DECLARE_LIST(ast_expr)
62 ISL_DECLARE_LIST(ast_node)
64 #if defined(__cplusplus)
66 #endif
68 #endif