annotate gcc/config/aarch64/aarch64-opts.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1 /* Copyright (C) 2011-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
2 Contributed by ARM Ltd.
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
7 under the terms of the GNU General Public License as published
kono
parents:
diff changeset
8 by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
9 option) any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
14 License for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 /* Definitions for option handling for AArch64. */
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 #ifndef GCC_AARCH64_OPTS_H
kono
parents:
diff changeset
23 #define GCC_AARCH64_OPTS_H
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 /* The various cores that implement AArch64. */
kono
parents:
diff changeset
26 enum aarch64_processor
kono
parents:
diff changeset
27 {
kono
parents:
diff changeset
28 #define AARCH64_CORE(NAME, INTERNAL_IDENT, SCHED, ARCH, FLAGS, COSTS, IMP, PART, VARIANT) \
kono
parents:
diff changeset
29 INTERNAL_IDENT,
kono
parents:
diff changeset
30 #include "aarch64-cores.def"
kono
parents:
diff changeset
31 /* Used to indicate that no processor has been specified. */
kono
parents:
diff changeset
32 generic,
kono
parents:
diff changeset
33 /* Used to mark the end of the processor table. */
kono
parents:
diff changeset
34 aarch64_none
kono
parents:
diff changeset
35 };
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 enum aarch64_arch
kono
parents:
diff changeset
38 {
kono
parents:
diff changeset
39 #define AARCH64_ARCH(NAME, CORE, ARCH_IDENT, ARCH_REV, FLAGS) \
kono
parents:
diff changeset
40 AARCH64_ARCH_##ARCH_IDENT,
kono
parents:
diff changeset
41 #include "aarch64-arches.def"
kono
parents:
diff changeset
42 aarch64_no_arch
kono
parents:
diff changeset
43 };
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 /* TLS types. */
kono
parents:
diff changeset
46 enum aarch64_tls_type {
kono
parents:
diff changeset
47 TLS_TRADITIONAL,
kono
parents:
diff changeset
48 TLS_DESCRIPTORS
kono
parents:
diff changeset
49 };
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 /* The code model defines the address generation strategy.
kono
parents:
diff changeset
52 Most have a PIC and non-PIC variant. */
kono
parents:
diff changeset
53 enum aarch64_code_model {
kono
parents:
diff changeset
54 /* Static code and data fit within a 1MB region.
kono
parents:
diff changeset
55 Not fully implemented, mostly treated as SMALL. */
kono
parents:
diff changeset
56 AARCH64_CMODEL_TINY,
kono
parents:
diff changeset
57 /* Static code, data and GOT/PLT fit within a 1MB region.
kono
parents:
diff changeset
58 Not fully implemented, mostly treated as SMALL_PIC. */
kono
parents:
diff changeset
59 AARCH64_CMODEL_TINY_PIC,
kono
parents:
diff changeset
60 /* Static code and data fit within a 4GB region.
kono
parents:
diff changeset
61 The default non-PIC code model. */
kono
parents:
diff changeset
62 AARCH64_CMODEL_SMALL,
kono
parents:
diff changeset
63 /* Static code, data and GOT/PLT fit within a 4GB region.
kono
parents:
diff changeset
64 The default PIC code model. */
kono
parents:
diff changeset
65 AARCH64_CMODEL_SMALL_PIC,
kono
parents:
diff changeset
66 /* -fpic for small memory model.
kono
parents:
diff changeset
67 GOT size to 28KiB (4K*8-4K) or 3580 entries. */
kono
parents:
diff changeset
68 AARCH64_CMODEL_SMALL_SPIC,
kono
parents:
diff changeset
69 /* No assumptions about addresses of code and data.
kono
parents:
diff changeset
70 The PIC variant is not yet implemented. */
kono
parents:
diff changeset
71 AARCH64_CMODEL_LARGE
kono
parents:
diff changeset
72 };
kono
parents:
diff changeset
73
kono
parents:
diff changeset
74 /* Function types -msign-return-address should sign. */
kono
parents:
diff changeset
75 enum aarch64_function_type {
kono
parents:
diff changeset
76 /* Don't sign any function. */
kono
parents:
diff changeset
77 AARCH64_FUNCTION_NONE,
kono
parents:
diff changeset
78 /* Non-leaf functions. */
kono
parents:
diff changeset
79 AARCH64_FUNCTION_NON_LEAF,
kono
parents:
diff changeset
80 /* All functions. */
kono
parents:
diff changeset
81 AARCH64_FUNCTION_ALL
kono
parents:
diff changeset
82 };
kono
parents:
diff changeset
83
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
84 /* SVE vector register sizes. */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
85 enum aarch64_sve_vector_bits_enum {
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
86 SVE_SCALABLE,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
87 SVE_128 = 128,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
88 SVE_256 = 256,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
89 SVE_512 = 512,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
90 SVE_1024 = 1024,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
91 SVE_2048 = 2048
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
92 };
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
93
111
kono
parents:
diff changeset
94 #endif