[flang] Add AMDGPU target in flang
authorJan Sjodin <jan_sjodin@yahoo.com>
Wed, 1 Feb 2023 20:09:59 +0000 (15:09 -0500)
committerJan Sjodin <jan_sjodin@yahoo.com>
Tue, 7 Feb 2023 19:48:46 +0000 (14:48 -0500)
commit08749a9137a562a52d3ff99aad1535e3879ecfeb
tree7257817c2cea3f7af48d7695b432cd6aee8ea404
parentaf1315c28f9bab76d3c2e1492a3d41e7c48215f8
[flang] Add AMDGPU target in flang

This is the first patch of several that will enable generating code for AMD
GPUs. It adds the AMDGPU target so it can be used with the --target and -mcpu
options.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D143102
flang/lib/Optimizer/CodeGen/Target.cpp
flang/test/Driver/target-gpu-features.f90 [new file with mode: 0644]
flang/test/Fir/target-rewrite-boxchar.fir