Debian Codegraph @

gcc/config/nvptx/nvptx-opts.h

raw
1 /* Definitions for the NVPTX port needed for option handling.
2 Copyright (C) 2015-2025 Free Software Foundation, Inc.
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 #ifndef NVPTX_OPTS_H
21 #define NVPTX_OPTS_H
22
23 enum ptx_isa
24 {
25 PTX_ISA_unset,
26 #define NVPTX_SM(XX, SEP) PTX_ISA_SM ## XX SEP
27 #define NVPTX_SM_SEP ,
28 #include "nvptx-sm.def"
29 #undef NVPTX_SM_SEP
30 #undef NVPTX_SM
31 };
32
33 /* 'PTX_VERSION_[...]'s smaller than 'PTX_VERSION_3_1' are not listed here:
34 our baseline is PTX ISA Version 3.1. */
35
36 enum ptx_version
37 {
38 PTX_VERSION_unset,
39 PTX_VERSION_default = PTX_VERSION_unset,
40 PTX_VERSION_3_1,
41 PTX_VERSION_4_1,
42 PTX_VERSION_4_2,
43 PTX_VERSION_5_0,
44 PTX_VERSION_6_0,
45 PTX_VERSION_6_3,
46 PTX_VERSION_7_0,
47 PTX_VERSION_7_3,
48 PTX_VERSION_7_8
49 };
50
51 #endif
52