Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.3/genfft/c.mli @ 95:89f5e221ed7b
Add FFTW3
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 20 Mar 2013 15:35:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
94:d278df1123f9 | 95:89f5e221ed7b |
---|---|
1 (* | |
2 * Copyright (c) 1997-1999 Massachusetts Institute of Technology | |
3 * Copyright (c) 2003, 2007-11 Matteo Frigo | |
4 * Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
19 * | |
20 *) | |
21 | |
22 type stride = | |
23 | SVar of string | |
24 | SConst of string | |
25 | SInteger of int | |
26 | SNeg of stride | |
27 val array_subscript : string -> stride -> int -> string | |
28 val varray_subscript : string -> stride -> stride -> int -> int -> string | |
29 | |
30 val real_of : string -> string | |
31 val imag_of : string -> string | |
32 | |
33 val realtype : string | |
34 val realtypep : string | |
35 val constrealtype : string | |
36 val constrealtypep : string | |
37 val stridetype : string | |
38 | |
39 type c_decl = | |
40 | Decl of string * string | |
41 | Tdecl of string (* arbitrary text declaration *) | |
42 | |
43 and c_ast = | |
44 | Asch of Annotate.annotated_schedule | |
45 | Simd_leavefun | |
46 | Return of c_ast | |
47 | For of c_ast * c_ast * c_ast * c_ast | |
48 | If of c_ast * c_ast | |
49 | Block of (c_decl list) * (c_ast list) | |
50 | Binop of string * c_ast * c_ast | |
51 | Expr_assign of c_ast * c_ast | |
52 | Stmt_assign of c_ast * c_ast | |
53 | Comma of c_ast * c_ast | |
54 | Integer of int | |
55 | CVar of string | |
56 | CCall of string * c_ast | |
57 | CPlus of c_ast list | |
58 | ITimes of c_ast * c_ast | |
59 | CUminus of c_ast | |
60 and c_fcn = | Fcn of string * string * c_decl list * c_ast | |
61 | |
62 val unparse_expr : Expr.expr -> string | |
63 val unparse_assignment : Expr.assignment -> string | |
64 val unparse_annotated : bool -> Annotate.annotated_schedule -> string | |
65 val unparse_decl : c_decl -> string | |
66 val unparse_ast : c_ast -> string | |
67 val unparse_function : c_fcn -> string | |
68 | |
69 val flops_of : c_fcn -> string | |
70 val print_cost : c_fcn -> string | |
71 | |
72 val ast_to_expr_list : c_ast -> Expr.expr list | |
73 val extract_constants : c_ast -> c_decl list | |
74 val ctimes : (c_ast * c_ast) -> c_ast |