[all-commits] [llvm/llvm-project] 24f88f: [OpenMP] Accept shortened triples for -Xopenmp-tar...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jan 28 15:22:39 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24f88f57de588817bd21e799e2ac1069c025674c
https://github.com/llvm/llvm-project/commit/24f88f57de588817bd21e799e2ac1069c025674c
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-01-28 (Fri, 28 Jan 2022)
Changed paths:
M clang/include/clang/Driver/ToolChain.h
M clang/lib/Driver/Driver.cpp
M clang/lib/Driver/ToolChain.cpp
M clang/test/Driver/openmp-offload-gpu.c
Log Message:
-----------
[OpenMP] Accept shortened triples for -Xopenmp-target=
This patch builds on the change in D117634 that expanded the short
triples when passed in by the user. This patch adds the same
functionality for the `-Xopenmp-target=` flag. Previously it was
unintuitive that passing `-fopenmp-targets=nvptx64
-Xopenmp-target=nvptx64 <arg>` would not forward the arg because the
triples did not match on account of `nvptx64` being expanded to
`nvptx64-nvidia-cuda`.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D118495
More information about the All-commits
mailing list