]>
Commit | Line | Data |
---|---|---|
8d9254fc | 1 | /* Copyright (C) 2016-2020 Free Software Foundation, Inc. |
5326695a AS |
2 | |
3 | This file is free software; you can redistribute it and/or modify it under | |
4 | the terms of the GNU General Public License as published by the Free | |
5 | Software Foundation; either version 3 of the License, or (at your option) | |
6 | any later version. | |
7 | ||
8 | This file is distributed in the hope that it will be useful, but WITHOUT | |
9 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
10 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
11 | for more details. | |
12 | ||
13 | You should have received a copy of the GNU General Public License | |
14 | along with GCC; see the file COPYING3. If not see | |
15 | <http://www.gnu.org/licenses/>. */ | |
16 | ||
17 | #ifndef GCN_OPTS_H | |
18 | #define GCN_OPTS_H | |
19 | ||
20 | /* Which processor to generate code or schedule for. */ | |
21 | enum processor_type | |
22 | { | |
f062c3f1 AS |
23 | PROCESSOR_FIJI, // gfx803 |
24 | PROCESSOR_VEGA10, // gfx900 | |
25 | PROCESSOR_VEGA20 // gfx906 | |
5326695a AS |
26 | }; |
27 | ||
28 | /* Set in gcn_option_override. */ | |
29 | extern int gcn_isa; | |
30 | ||
31 | #define TARGET_GCN3 (gcn_isa == 3) | |
32 | #define TARGET_GCN3_PLUS (gcn_isa >= 3) | |
33 | #define TARGET_GCN5 (gcn_isa == 5) | |
34 | #define TARGET_GCN5_PLUS (gcn_isa >= 5) | |
35 | ||
36 | #endif |