pet 0.11.8
[pet.git] / pet_expr_to_isl_pw_aff.c
blob9aa6408c53564f5ad5538ede5a21fa677e55fd0e
1 /*
2 * Copyright 2016 Sven Verdoolaege. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following
13 * disclaimer in the documentation and/or other materials provided
14 * with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY SVEN VERDOOLAEGE ''AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SVEN VERDOOLAEGE OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 * The views and conclusions contained in the software and documentation
29 * are those of the authors and should not be interpreted as
30 * representing official policies, either expressed or implied, of
31 * Sven Verdoolaege.
34 #include <isl/aff.h>
35 #include "expr.h"
36 #include "pet_expr_to_isl_pw_aff.h"
38 #define ISL_KEY pet_expr
39 #define ISL_VAL isl_pw_aff
40 #define ISL_HMAP_SUFFIX pet_expr_to_isl_pw_aff
41 #define ISL_HMAP pet_expr_to_isl_pw_aff
42 #define ISL_KEY_IS_EQUAL pet_expr_is_equal
43 #define ISL_VAL_IS_EQUAL isl_pw_aff_plain_is_equal
44 #define ISL_KEY_PRINT(p,key) pet_expr_print(key,p)
45 #define ISL_VAL_PRINT isl_printer_print_pw_aff
47 #include <isl/hmap_templ.c>