[ARM/AArch64][testsuite] Add vmull tests.
[official-gcc.git] / gcc / common / common-target.h
blob66cba2cdf2dc98266ed78147ebc12df2f1c10180
1 /* Data structure definitions for common hooks.
2 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 3, or (at your option) any
7 later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>.
18 In other words, you are welcome to use, share and improve this program.
19 You are forbidden to forbid anyone else to use, share and improve
20 what you give them. Help stamp out software-hoarding! */
22 #ifndef GCC_COMMON_TARGET_H
23 #define GCC_COMMON_TARGET_H
25 #include "input.h"
27 /* Sets of optimization levels at which an option may be enabled by
28 default_options_optimization. */
29 enum opt_levels
31 OPT_LEVELS_NONE, /* No levels (mark end of array). */
32 OPT_LEVELS_ALL, /* All levels (used by targets to disable options
33 enabled in target-independent code). */
34 OPT_LEVELS_0_ONLY, /* -O0 only. */
35 OPT_LEVELS_1_PLUS, /* -O1 and above, including -Os and -Og. */
36 OPT_LEVELS_1_PLUS_SPEED_ONLY, /* -O1 and above, but not -Os or -Og. */
37 OPT_LEVELS_1_PLUS_NOT_DEBUG, /* -O1 and above, but not -Og. */
38 OPT_LEVELS_2_PLUS, /* -O2 and above, including -Os. */
39 OPT_LEVELS_2_PLUS_SPEED_ONLY, /* -O2 and above, but not -Os or -Og. */
40 OPT_LEVELS_3_PLUS, /* -O3 and above. */
41 OPT_LEVELS_3_PLUS_AND_SIZE, /* -O3 and above and -Os. */
42 OPT_LEVELS_SIZE, /* -Os only. */
43 OPT_LEVELS_FAST /* -Ofast only. */
46 /* Description of options to enable by default at given levels. */
47 struct default_options
49 /* The levels at which to enable the option. */
50 enum opt_levels levels;
52 /* The option index and argument or enabled/disabled sense of the
53 option, as passed to handle_generated_option. If ARG is NULL and
54 the option allows a negative form, the option is considered to be
55 passed in negative form when the optimization level is not one of
56 those in LEVELS (in order to handle changes to the optimization
57 level with the "optimize" attribute). */
58 size_t opt_index;
59 const char *arg;
60 int value;
63 #define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME;
64 #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;
65 #define DEFHOOK_UNDOC DEFHOOK
66 #define HOOKSTRUCT(FRAGMENT) FRAGMENT
68 #include "common-target.def"
70 extern struct gcc_targetm_common targetm_common;
72 #endif /* GCC_C_TARGET_H */