]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/aarch64/aarch64-opts.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / aarch64 / aarch64-opts.h
1 /* Copyright (C) 2011-2016 Free Software Foundation, Inc.
2 Contributed by ARM Ltd.
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published
8 by the Free Software Foundation; either version 3, or (at your
9 option) any later version.
10
11 GCC is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
19
20 /* Definitions for option handling for AArch64. */
21
22 #ifndef GCC_AARCH64_OPTS_H
23 #define GCC_AARCH64_OPTS_H
24
25 /* The various cores that implement AArch64. */
26 enum aarch64_processor
27 {
28 #define AARCH64_CORE(NAME, INTERNAL_IDENT, SCHED, ARCH, FLAGS, COSTS, IMP, PART) \
29 INTERNAL_IDENT,
30 #include "aarch64-cores.def"
31 #undef AARCH64_CORE
32 /* Used to indicate that no processor has been specified. */
33 generic,
34 /* Used to mark the end of the processor table. */
35 aarch64_none
36 };
37
38 enum aarch64_arch
39 {
40 #define AARCH64_ARCH(NAME, CORE, ARCH_IDENT, ARCH_REV, FLAGS) \
41 AARCH64_ARCH_##ARCH_IDENT,
42 #include "aarch64-arches.def"
43 #undef AARCH64_ARCH
44 aarch64_no_arch
45 };
46
47 /* TLS types. */
48 enum aarch64_tls_type {
49 TLS_TRADITIONAL,
50 TLS_DESCRIPTORS
51 };
52
53 /* The code model defines the address generation strategy.
54 Most have a PIC and non-PIC variant. */
55 enum aarch64_code_model {
56 /* Static code and data fit within a 1MB region.
57 Not fully implemented, mostly treated as SMALL. */
58 AARCH64_CMODEL_TINY,
59 /* Static code, data and GOT/PLT fit within a 1MB region.
60 Not fully implemented, mostly treated as SMALL_PIC. */
61 AARCH64_CMODEL_TINY_PIC,
62 /* Static code and data fit within a 4GB region.
63 The default non-PIC code model. */
64 AARCH64_CMODEL_SMALL,
65 /* Static code, data and GOT/PLT fit within a 4GB region.
66 The default PIC code model. */
67 AARCH64_CMODEL_SMALL_PIC,
68 /* -fpic for small memory model.
69 GOT size to 28KiB (4K*8-4K) or 3580 entries. */
70 AARCH64_CMODEL_SMALL_SPIC,
71 /* No assumptions about addresses of code and data.
72 The PIC variant is not yet implemented. */
73 AARCH64_CMODEL_LARGE
74 };
75
76 #endif