cmd_line.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 extern char *orig_cmd_line;
00040
00041 extern boolean enter_cmd_line_cc_define(char *, char *, boolean);
00042 extern token_values_type get_dir_token_from_str(char *);
00043
00044
00045
00046
00047
00048 static boolean accept_stream = FALSE;
00049
00050 static boolean set_debug_option = FALSE;
00051 static boolean set_aggress_option = FALSE;
00052 static boolean set_bottom_load_option = FALSE;
00053 static boolean set_eu_option = FALSE;
00054 static boolean set_ieeeconform_option = FALSE;
00055 static boolean set_i_option = FALSE;
00056 static boolean set_inlinefrom_option = FALSE;
00057 static boolean set_loop_align_option = FALSE;
00058 static boolean set_pattern_option = FALSE;
00059 static boolean set_pipeline_option = FALSE;
00060 static boolean set_recurrence_option = FALSE;
00061 static boolean set_round_option = FALSE;
00062 static boolean set_scalar_option = FALSE;
00063 static boolean set_source_form_option = FALSE;
00064 static boolean set_stream_option = FALSE;
00065 static boolean set_support_lvl_option = FALSE;
00066 static boolean set_task_option = FALSE;
00067 static boolean set_taskinner_option = FALSE;
00068 static boolean set_trunc_option = FALSE;
00069 static boolean set_vector_option = FALSE;
00070 static boolean set_vsearch_option = FALSE;
00071 static boolean set_zeroinc_option = FALSE;
00072
00073 # if defined(_ACCEPT_CMD_X)
00074 static boolean set_MPP_num_pes = FALSE;
00075 # endif
00076
00077 static boolean no_preprocessing = FALSE;
00078
00079
00080
00081
00082
00083
00084 char *scalar_lvl_str[] = {
00085 "scalar0",
00086 "scalar1",
00087 "scalar2",
00088 "scalar3"
00089 };
00090
00091 char *stream_lvl_str[] = {
00092 "stream0",
00093 "stream1",
00094 "stream2",
00095 "stream3"
00096 };
00097
00098 char *task_lvl_str[] = {
00099 "task0",
00100 "task1",
00101 "task2",
00102 "task3"
00103 };
00104
00105 char *vector_lvl_str[] = {
00106 "vector0",
00107 "vector1",
00108 "vector2",
00109 "vector3"
00110 };
00111
00112
00113
00114
00115
00116
00117
00118
00119 int cft90_dash_e_a_option = 0;
00120 int cft90_dash_e_i_option = 0;
00121 int cft90_dash_e_n_option = 0;
00122
00123 int cft90_dash_e_p_option = 1;
00124 int cft90_dash_e_r_option = 1;
00125 int cft90_dash_e_v_option = 0;
00126
00127
00128
00129
00130
00131
00132
00133 # if defined(_TARGET_SV2)
00134 int cft90_dash_i_option = 32;
00135 int cft90_dash_e_m_option = 1;
00136 int cft90_dash_e_t_option = 0;
00137 int cft90_dash_e_u_option = 1;
00138 int cft90_dash_X_option = 1;
00139 int cft90_dash_a_dalign_option = 1;
00140 # elif defined(_TARGET_OS_UNICOS)
00141 int cft90_dash_i_option = 64;
00142 int cft90_dash_e_m_option = 0;
00143 int cft90_dash_e_t_option = 1;
00144 int cft90_dash_e_u_option = 0;
00145 int cft90_dash_X_option = 1;
00146 int cft90_dash_a_dalign_option = 0;
00147 # elif defined(_TARGET_OS_MAX)
00148 int cft90_dash_i_option = 64;
00149 int cft90_dash_e_m_option = 0;
00150 int cft90_dash_e_t_option = 0;
00151 int cft90_dash_e_u_option = 0;
00152 int cft90_dash_X_option = 0;
00153 int cft90_dash_a_dalign_option = 0;
00154 # elif (defined(_TARGET_OS_IRIX) || defined(_TARGET_OS_LINUX))
00155 int cft90_dash_i_option = 32;
00156 int cft90_dash_e_m_option = 1;
00157 int cft90_dash_e_t_option = 0;
00158 int cft90_dash_e_u_option = 1;
00159 int cft90_dash_X_option = 1;
00160 int cft90_dash_a_dalign_option = 0;
00161 # else
00162 int cft90_dash_i_option = 32;
00163 int cft90_dash_e_m_option = 0;
00164 int cft90_dash_e_t_option = 0;
00165 int cft90_dash_e_u_option = 1;
00166 int cft90_dash_X_option = 1;
00167 int cft90_dash_a_dalign_option = 0;
00168 # endif
00169
00170
00171 int cft90_dash_m_option = 3;
00172
00173
00174 int cft90_dash_N_option = 72;
00175
00176
00177
00178 # if (defined(_TARGET_OS_IRIX) || defined(_TARGET_OS_LINUX))
00179 int cft90_dash_O_bl_option = 0;
00180 int cft90_dash_O_fastint_option = 0;
00181 int cft90_dash_O_fusion_option = 1;
00182 int cft90_dash_O_ieeeconform_option = 0;
00183 int cft90_dash_O_jump_option = 0;
00184 int cft90_dash_O_loopalign_option = 0;
00185 int cft90_dash_O_scalar_option = 1;
00186 int cft90_dash_O_split_option = 0;
00187 int cft90_dash_O_support_option = 1;
00188 int cft90_dash_O_task_option = 0;
00189 int cft90_dash_O_taskinner_option = 1;
00190 int cft90_dash_O_threshold_option = 1;
00191 int cft90_dash_O_unroll_option = 1;
00192 int cft90_dash_O_vector_option = 0;
00193 int cft90_dash_O_vsearch_option = 0;
00194 # elif defined(_TARGET_OS_SOLARIS)
00195 int cft90_dash_O_bl_option = 0;
00196 int cft90_dash_O_fastint_option = 0;
00197 int cft90_dash_O_ieeeconform_option = 0;
00198 int cft90_dash_O_fusion_option = 0;
00199 int cft90_dash_O_jump_option = 0;
00200 int cft90_dash_O_loopalign_option = 0;
00201 int cft90_dash_O_scalar_option = 1;
00202 int cft90_dash_O_split_option = 0;
00203 int cft90_dash_O_support_option = 1;
00204 int cft90_dash_O_task_option = 1;
00205 int cft90_dash_O_taskinner_option = 1;
00206 int cft90_dash_O_threshold_option = 1;
00207 int cft90_dash_O_unroll_option = 0;
00208 int cft90_dash_O_vector_option = 0;
00209 int cft90_dash_O_vsearch_option = 0;
00210 # elif defined(_TARGET_OS_MAX)
00211 int cft90_dash_O_bl_option = 0;
00212 int cft90_dash_O_fastint_option = 0;
00213 int cft90_dash_O_fusion_option = 0;
00214 int cft90_dash_O_ieeeconform_option = 0;
00215 int cft90_dash_O_jump_option = 1;
00216 int cft90_dash_O_loopalign_option = 0;
00217 int cft90_dash_O_scalar_option = 2;
00218 int cft90_dash_O_split_option = 1;
00219 int cft90_dash_O_support_option = 2;
00220 int cft90_dash_O_task_option = 0;
00221 int cft90_dash_O_taskinner_option = 0;
00222 int cft90_dash_O_threshold_option = 0;
00223 int cft90_dash_O_unroll_option = 0;
00224 int cft90_dash_O_vector_option = 2;
00225 int cft90_dash_O_vsearch_option = 0;
00226 # elif defined(_TARGET_SV2)
00227 int cft90_dash_O_bl_option = 0;
00228 int cft90_dash_O_fastint_option = 1;
00229 int cft90_dash_O_fusion_option = 0;
00230 int cft90_dash_O_ieeeconform_option = 0;
00231 int cft90_dash_O_jump_option = 0;
00232 int cft90_dash_O_loopalign_option = 0;
00233 int cft90_dash_O_scalar_option = 2;
00234 int cft90_dash_O_split_option = 0;
00235 int cft90_dash_O_support_option = 2;
00236 int cft90_dash_O_task_option = 0;
00237 int cft90_dash_O_taskinner_option = 0;
00238 int cft90_dash_O_threshold_option = 1;
00239 int cft90_dash_O_vector_option = 2;
00240 int cft90_dash_O_vsearch_option = 1;
00241
00242
00243
00244
00245 int cft90_dash_O_unroll_option = 2;
00246
00247 # elif defined(_TARGET_OS_UNICOS)
00248 int cft90_dash_O_bl_option = 0;
00249 int cft90_dash_O_fastint_option = 1;
00250 int cft90_dash_O_fusion_option = 0;
00251 int cft90_dash_O_ieeeconform_option = 0;
00252 int cft90_dash_O_jump_option = 0;
00253 int cft90_dash_O_loopalign_option = 0;
00254 int cft90_dash_O_scalar_option = 2;
00255 int cft90_dash_O_split_option = 0;
00256 int cft90_dash_O_support_option = 2;
00257 int cft90_dash_O_task_option = 1;
00258 int cft90_dash_O_taskinner_option = 0;
00259 int cft90_dash_O_threshold_option = 1;
00260 int cft90_dash_O_vector_option = 2;
00261 int cft90_dash_O_vsearch_option = 1;
00262
00263
00264
00265
00266 int cft90_dash_O_unroll_option = 2;
00267
00268 # else
00269 int cft90_dash_O_bl_option = 0;
00270 int cft90_dash_O_fastint_option = 0;
00271 int cft90_dash_O_ieeeconform_option = 0;
00272 int cft90_dash_O_fusion_option = 0;
00273 int cft90_dash_O_jump_option = 0;
00274 int cft90_dash_O_loopalign_option = 0;
00275 int cft90_dash_O_scalar_option = 2;
00276 int cft90_dash_O_split_option = 0;
00277 int cft90_dash_O_support_option = 1;
00278 int cft90_dash_O_task_option = 0;
00279 int cft90_dash_O_taskinner_option = 0;
00280 int cft90_dash_O_threshold_option = 0;
00281 int cft90_dash_O_unroll_option = 0;
00282 int cft90_dash_O_vector_option = 0;
00283 int cft90_dash_O_vsearch_option = 0;
00284 # endif
00285
00286
00287
00288
00289
00290 int cft90_dash_O_aggress_option = 0;
00291 int cft90_dash_O_overindex_option = 0;
00292 int cft90_dash_O_pattern_option = 1;
00293 int cft90_dash_O_recurrence_option = 1;
00294 int cft90_dash_O_zeroinc_option = 0;
00295
00296 int cft90_dash_G_debug_option = 4;