[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)
commit9c9d9cdcf8e996455318bbe334d1d36622338b70
treec9ae8337cbf6b611a14c19f6f1988c1d370907ca
parent8df64e940da39899c78493b9b2e330bba5ab48ee
[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

llvm-svn: 285307
clang/include/clang/Driver/Action.h
clang/lib/Driver/Driver.cpp