]> granicus.if.org Git - clang/commit
[Driver][CUDA][OpenMP] Reimplement tool selection in the driver.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 16:29:20 +0000 (16:29 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 27 Oct 2016 16:29:20 +0000 (16:29 +0000)
commitae5b8bc484d2de5f73148daa469210f8d53c727e
tree9a00d4cb6c413f526bc93cce093860250ad62146
parentf1efcdf25d26f49357249b05ce119a3ba1e30933
[Driver][CUDA][OpenMP] Reimplement tool selection in the driver.

Summary:
This creates a tool selector in the driver that replaces the existing one. The goal is to better organize the code and make the selector easier to scale, in particular in the presence of offload actions that can be collapsed.

The current implementation became more confusing when the support for offloading actions was added. This concern was expressed by Eric in http://reviews.llvm.org/D9888.

This patch does not add new testing, it preserves the existing functionality.

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

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

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285307 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Action.h
lib/Driver/Driver.cpp