diff options
author | Bryan Chan <bryan.chan@huawei.com> | 2019-11-21 23:35:51 -0500 |
---|---|---|
committer | Bryan Chan <bryan.chan@huawei.com> | 2019-12-08 14:45:16 -0500 |
commit | 74e6ce2529fae2c3318731c6f4f77bfa92eb6eb7 (patch) | |
tree | d503e4f95147baec405213bd847b61e2076f7b6f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1c4dd3ae2f34541e53ad0110f261421083bc0157 (diff) | |
download | llvm-74e6ce2529fae2c3318731c6f4f77bfa92eb6eb7.zip llvm-74e6ce2529fae2c3318731c6f4f77bfa92eb6eb7.tar.gz llvm-74e6ce2529fae2c3318731c6f4f77bfa92eb6eb7.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 198ae69b7..1af2bda 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -3070,7 +3070,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, llvm::Triple TT(A->getValue(i)); if (TT.getArch() == llvm::Triple::UnknownArch || - !(TT.getArch() == llvm::Triple::ppc || + !(TT.getArch() == llvm::Triple::aarch64 || + TT.getArch() == llvm::Triple::ppc || TT.getArch() == llvm::Triple::ppc64 || TT.getArch() == llvm::Triple::ppc64le || TT.getArch() == llvm::Triple::nvptx || |