]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/nvptx/gen-copyright.sh
[nvptx] Add nvptx-gen.h and nvptx-gen.opt
authorTom de Vries <tdevries@suse.de>
Fri, 25 Feb 2022 10:49:01 +0000 (11:49 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 1 Mar 2022 07:58:36 +0000 (08:58 +0100)
commitd59d13c89503baf92d14b04c05708a6296916fad
tree1fc7c4f552cca79736bb2a5ff74071248f5700af
parent22adaa5e565a0355dc013b4c1eeefd8ff4a96d9a
[nvptx] Add nvptx-gen.h and nvptx-gen.opt

Use nvptx-sm.def to generate new files nvptx-gen.h and nvptx-gen.opt, and:
- include nvptx-gen.h in nvptx.h, and
- add nvptx-gen.opt to extra_options (before nvptx.opt, in case that matters).

Tested on nvptx.

gcc/ChangeLog:

2022-02-25  Tom de Vries  <tdevries@suse.de>

* config.gcc (nvptx*-*-*): Add nvptx/nvptx-gen.opt to extra_options.
* config/nvptx/gen-copyright.sh: New file.
* config/nvptx/gen-h.sh: New file.
* config/nvptx/gen-opt.sh: New file.
* config/nvptx/nvptx.h (TARGET_SM35, TARGET_SM53, TARGET_SM70)
(TARGET_SM75, TARGET_SM80): Move ...
* config/nvptx/nvptx-gen.h: ... here.  New file, generate.
* config/nvptx/nvptx.opt (Enum ptx_isa): Move ...
* config/nvptx/nvptx-gen.opt: ... here.  New file, generate.
* config/nvptx/t-nvptx ($(srcdir)/config/nvptx/nvptx-gen.h)
($(srcdir)/config/nvptx/nvptx-gen.opt): New make target.
gcc/config.gcc
gcc/config/nvptx/gen-copyright.sh [new file with mode: 0644]
gcc/config/nvptx/gen-h.sh [new file with mode: 0644]
gcc/config/nvptx/gen-opt.sh [new file with mode: 0644]
gcc/config/nvptx/nvptx-gen.h [new file with mode: 0644]
gcc/config/nvptx/nvptx-gen.opt [new file with mode: 0644]
gcc/config/nvptx/nvptx.h
gcc/config/nvptx/nvptx.opt
gcc/config/nvptx/t-nvptx