introduce new schedule API
[isl.git] / include / isl / ast_type.h
blobc5117714c0ab69158954b5a0a467b3bfb677d8c5
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,
41 isl_ast_op_member
44 enum isl_ast_expr_type {
45 isl_ast_expr_error = -1,
46 isl_ast_expr_op,
47 isl_ast_expr_id,
48 isl_ast_expr_int
51 enum isl_ast_node_type {
52 isl_ast_node_error = -1,
53 isl_ast_node_for = 1,
54 isl_ast_node_if,
55 isl_ast_node_block,
56 isl_ast_node_user
59 struct isl_ast_print_options;
60 typedef struct isl_ast_print_options isl_ast_print_options;
62 ISL_DECLARE_LIST(ast_expr)
63 ISL_DECLARE_LIST(ast_node)
65 #if defined(__cplusplus)
67 #endif
69 #endif