annotate src/fftw-3.3.5/genfft/magic.ml @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 7867fa7e1b6b
children
rev   line source
cannam@127 1 (*
cannam@127 2 * Copyright (c) 1997-1999 Massachusetts Institute of Technology
cannam@127 3 * Copyright (c) 2003, 2007-14 Matteo Frigo
cannam@127 4 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
cannam@127 5 *
cannam@127 6 * This program is free software; you can redistribute it and/or modify
cannam@127 7 * it under the terms of the GNU General Public License as published by
cannam@127 8 * the Free Software Foundation; either version 2 of the License, or
cannam@127 9 * (at your option) any later version.
cannam@127 10 *
cannam@127 11 * This program is distributed in the hope that it will be useful,
cannam@127 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@127 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@127 14 * GNU General Public License for more details.
cannam@127 15 *
cannam@127 16 * You should have received a copy of the GNU General Public License
cannam@127 17 * along with this program; if not, write to the Free Software
cannam@127 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
cannam@127 19 *
cannam@127 20 *)
cannam@127 21
cannam@127 22 (* magic parameters *)
cannam@127 23 let verbose = ref false
cannam@127 24 let vneg = ref false
cannam@127 25 let karatsuba_min = ref 15
cannam@127 26 let karatsuba_variant = ref 2
cannam@127 27 let circular_min = ref 64
cannam@127 28 let rader_min = ref 13
cannam@127 29 let rader_list = ref [5]
cannam@127 30 let alternate_convolution = ref 17
cannam@127 31 let threemult = ref false
cannam@127 32 let inline_single = ref true
cannam@127 33 let inline_loads = ref false
cannam@127 34 let inline_loads_constants = ref false
cannam@127 35 let inline_constants = ref true
cannam@127 36 let trivial_stores = ref false
cannam@127 37 let locations_are_special = ref false
cannam@127 38 let strength_reduce_mul = ref false
cannam@127 39 let number_of_variables = ref 4
cannam@127 40 let codelet_name = ref "unnamed"
cannam@127 41 let randomized_cse = ref true
cannam@127 42 let dif_split_radix = ref false
cannam@127 43 let enable_fma = ref false
cannam@127 44 let deep_collect_depth = ref 1
cannam@127 45 let schedule_type = ref 0
cannam@127 46 let compact = ref false
cannam@127 47 let dag_dump_file = ref ""
cannam@127 48 let alist_dump_file = ref ""
cannam@127 49 let asched_dump_file = ref ""
cannam@127 50 let lisp_syntax = ref false
cannam@127 51 let network_transposition = ref true
cannam@127 52 let inklude = ref ""
cannam@127 53 let generic_arith = ref false
cannam@127 54 let reorder_insns = ref false
cannam@127 55 let reorder_loads = ref false
cannam@127 56 let reorder_stores = ref false
cannam@127 57 let precompute_twiddles = ref false
cannam@127 58 let newsplit = ref false
cannam@127 59 let standalone = ref false
cannam@127 60 let pipeline_latency = ref 0
cannam@127 61 let schedule_for_pipeline = ref false
cannam@127 62 let generate_bytw = ref true
cannam@127 63
cannam@127 64 (* command-line parser for magic parameters *)
cannam@127 65 let undocumented = " Undocumented voodoo parameter"
cannam@127 66
cannam@127 67 let set_bool var = Arg.Unit (fun () -> var := true)
cannam@127 68 let unset_bool var = Arg.Unit (fun () -> var := false)
cannam@127 69 let set_int var = Arg.Int(fun i -> var := i)
cannam@127 70 let set_string var = Arg.String(fun s -> var := s)
cannam@127 71
cannam@127 72 let speclist = [
cannam@127 73 "-name", set_string codelet_name, " set codelet name";
cannam@127 74 "-standalone", set_bool standalone, " standalone codelet (no desc)";
cannam@127 75 "-include", set_string inklude, undocumented;
cannam@127 76
cannam@127 77 "-verbose", set_bool verbose, " Enable verbose logging messages to stderr";
cannam@127 78
cannam@127 79 "-rader-min", set_int rader_min,
cannam@127 80 "<n> : Use Rader's algorithm for prime sizes >= <n>";
cannam@127 81
cannam@127 82 "-threemult", set_bool threemult,
cannam@127 83 " Use 3-multiply complex multiplications";
cannam@127 84
cannam@127 85 "-karatsuba-min", set_int karatsuba_min, undocumented;
cannam@127 86 "-karatsuba-variant", set_int karatsuba_variant, undocumented;
cannam@127 87 "-circular-min", set_int circular_min, undocumented;
cannam@127 88
cannam@127 89 "-compact", set_bool compact,
cannam@127 90 " Mangle variable names to reduce size of source code";
cannam@127 91 "-no-compact", unset_bool compact,
cannam@127 92 " Disable -compact";
cannam@127 93
cannam@127 94 "-dump-dag", set_string dag_dump_file, undocumented;
cannam@127 95 "-dump-alist", set_string alist_dump_file, undocumented;
cannam@127 96 "-dump-asched", set_string asched_dump_file, undocumented;
cannam@127 97 "-lisp-syntax", set_bool lisp_syntax, undocumented;
cannam@127 98
cannam@127 99 "-alternate-convolution", set_int alternate_convolution, undocumented;
cannam@127 100 "-deep-collect-depth", set_int deep_collect_depth, undocumented;
cannam@127 101 "-schedule-type", set_int schedule_type, undocumented;
cannam@127 102 "-pipeline-latency", set_int pipeline_latency, undocumented;
cannam@127 103 "-schedule-for-pipeline", set_bool schedule_for_pipeline, undocumented;
cannam@127 104
cannam@127 105 "-dif-split-radix", set_bool dif_split_radix, undocumented;
cannam@127 106 "-dit-split-radix", unset_bool dif_split_radix, undocumented;
cannam@127 107
cannam@127 108 "-generic-arith", set_bool generic_arith, undocumented;
cannam@127 109 "-no-generic-arith", unset_bool generic_arith, undocumented;
cannam@127 110
cannam@127 111 "-precompute-twiddles", set_bool precompute_twiddles, undocumented;
cannam@127 112 "-no-precompute-twiddles", unset_bool precompute_twiddles, undocumented;
cannam@127 113
cannam@127 114 "-inline-single", set_bool inline_single, undocumented;
cannam@127 115 "-no-inline-single", unset_bool inline_single, undocumented;
cannam@127 116
cannam@127 117 "-inline-loads", set_bool inline_loads, undocumented;
cannam@127 118 "-no-inline-loads", unset_bool inline_loads, undocumented;
cannam@127 119
cannam@127 120 "-inline-loads-constants", set_bool inline_loads_constants, undocumented;
cannam@127 121 "-no-inline-loads-constants",
cannam@127 122 unset_bool inline_loads_constants, undocumented;
cannam@127 123
cannam@127 124 "-inline-constants", set_bool inline_constants, undocumented;
cannam@127 125 "-no-inline-constants", unset_bool inline_constants, undocumented;
cannam@127 126
cannam@127 127 "-trivial-stores", set_bool trivial_stores, undocumented;
cannam@127 128 "-no-trivial-stores", unset_bool trivial_stores, undocumented;
cannam@127 129
cannam@127 130 "-locations-are-special", set_bool locations_are_special, undocumented;
cannam@127 131 "-no-locations-are-special", unset_bool locations_are_special, undocumented;
cannam@127 132
cannam@127 133 "-randomized-cse", set_bool randomized_cse, undocumented;
cannam@127 134 "-no-randomized-cse", unset_bool randomized_cse, undocumented;
cannam@127 135
cannam@127 136 "-network-transposition", set_bool network_transposition, undocumented;
cannam@127 137 "-no-network-transposition", unset_bool network_transposition, undocumented;
cannam@127 138
cannam@127 139 "-reorder-insns", set_bool reorder_insns, undocumented;
cannam@127 140 "-no-reorder-insns", unset_bool reorder_insns, undocumented;
cannam@127 141 "-reorder-loads", set_bool reorder_loads, undocumented;
cannam@127 142 "-no-reorder-loads", unset_bool reorder_loads, undocumented;
cannam@127 143 "-reorder-stores", set_bool reorder_stores, undocumented;
cannam@127 144 "-no-reorder-stores", unset_bool reorder_stores, undocumented;
cannam@127 145
cannam@127 146 "-newsplit", set_bool newsplit, undocumented;
cannam@127 147
cannam@127 148 "-vneg", set_bool vneg, undocumented;
cannam@127 149 "-fma", set_bool enable_fma, undocumented;
cannam@127 150 "-no-fma", unset_bool enable_fma, undocumented;
cannam@127 151
cannam@127 152 "-variables", set_int number_of_variables, undocumented;
cannam@127 153
cannam@127 154 "-strength-reduce-mul", set_bool strength_reduce_mul, undocumented;
cannam@127 155 "-no-strength-reduce-mul", unset_bool strength_reduce_mul, undocumented;
cannam@127 156
cannam@127 157 "-generate-bytw", set_bool generate_bytw, undocumented;
cannam@127 158 "-no-generate-bytw", unset_bool generate_bytw, undocumented;
cannam@127 159 ]
cannam@127 160
cannam@127 161