]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Add preprocessor builtins for every processor type
authorPaul-Antoine Arras <pa@codesourcery.com>
Thu, 1 Dec 2022 14:09:54 +0000 (15:09 +0100)
committerPaul-Antoine Arras <pa@codesourcery.com>
Tue, 6 Dec 2022 13:55:38 +0000 (14:55 +0100)
commita8db05dcf5819c7ddd5c71da40bb08a533551ae9
treeb99e454dd6c510b05c55b3725d7be90d693c1d7a
parented4d5b848e8f888c9f217fa55d096eb8304ae7ff
amdgcn: Add preprocessor builtins for every processor type

Provide a specific builtin for each possible value of '-march'.

gcc/ChangeLog:

* config/gcn/gcn-opts.h (TARGET_FIJI): -march=fiji.
(TARGET_VEGA10): -march=gfx900.
(TARGET_VEGA20): -march=gfx906.
(TARGET_GFX908): -march=gfx908.
(TARGET_GFX90a): -march=gfx90a.
* config/gcn/gcn.h (TARGET_CPU_CPP_BUILTINS): Define a builtin that
uniquely maps to '-march'.

(cherry picked from commit e41b243302e9964e642924329826448afb21d28e)
gcc/ChangeLog.omp
gcc/config/gcn/gcn-opts.h
gcc/config/gcn/gcn.h