[Frontend] Allow OpenMP offloading to aarch64
authorBryan Chan <bryan.chan@huawei.com>
Fri, 22 Nov 2019 04:35:51 +0000 (23:35 -0500)
committerBryan Chan <bryan.chan@huawei.com>
Sun, 8 Dec 2019 19:45:16 +0000 (14:45 -0500)
commit74e6ce2529fae2c3318731c6f4f77bfa92eb6eb7
treed503e4f95147baec405213bd847b61e2076f7b6f
parent1c4dd3ae2f34541e53ad0110f261421083bc0157
[Frontend] Allow OpenMP offloading to aarch64

Summary:
D30644 added OpenMP offloading to AArch64 targets, then D32035 changed the
frontend to throw an error when offloading is requested for an unsupported
target architecture. However the latter did not include AArch64 in the list
of supported architectures, causing the following unit tests to fail:

    libomptarget :: api/omp_get_num_devices.c
    libomptarget :: mapping/pr38704.c
    libomptarget :: offloading/offloading_success.c
    libomptarget :: offloading/offloading_success.cpp

Reviewers: pawosm01, gtbercea, jdoerfert, ABataev

Subscribers: kristof.beyls, guansong, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70804
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/OpenMP/openmp_offload_registration.cpp