[Driver][OpenMP] Add logic for offloading-specific argument translation.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:39:44 +0000 (17:39 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 17:39:44 +0000 (17:39 +0000)
commit31fef989934d38385567f9df8016e0d567a62bd0
treecb0c20475700c8b276cfe0fb6a9b70e9e66a3cf2
parent59efaede56bebf15853f06faa9a799b6963b43de
[Driver][OpenMP] Add logic for offloading-specific argument translation.

Summary:
This patch includes support for argument translation that is specific of a given offloading kind. Additionally, it implements the translation for OpenMP device kinds in the gcc tool chain.

With this patch, it is possible to compile a functional OpenMP application with offloading capabilities with no separate compilation.

Reviewers: echristo, tra, jlebar, rsmith, ABataev, hfinkel

Subscribers: whchung, mehdi_amini, cfe-commits, Hahnfeld, andreybokhanko, arpith-jacob, carlo.bertolli, caomhin

Differential Revision: https://reviews.llvm.org/D21848

llvm-svn: 285320
clang/include/clang/Driver/Compilation.h
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Compilation.cpp
clang/lib/Driver/Driver.cpp
clang/lib/Driver/MSVCToolChain.cpp
clang/lib/Driver/ToolChains.cpp
clang/lib/Driver/ToolChains.h
clang/test/Driver/openmp-offload.c