[SYCL] Add support for auxiliary triple specification to Frontend
authorAlexey Bader <alexey.bader@intel.com>
Tue, 10 Dec 2019 13:52:58 +0000 (16:52 +0300)
committerAlexey Bader <alexey.bader@intel.com>
Wed, 11 Dec 2019 09:40:43 +0000 (12:40 +0300)
commitcb30ad728f0b7666691c72a6a1399f36ebc60ad5
tree7ac41df3c9efcf1131b3a9f3f776c900060dae18
parentf21c081b78ec7a83a79137c65edd58874b262761
[SYCL] Add support for auxiliary triple specification to Frontend

Summary:
Add host predefined macros to compilation for SYCL device, which is
required for pre-processing host specific includes (e.g. system
headers).

Reviewers: ABataev, jdoerfert

Subscribers: ebevhan, Anastasia, cfe-commits, keryell, Naghasan, Fznamznon

Tags: #clang

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

Signed-off-by: Alexey Bader <alexey.bader@intel.com>
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Frontend/sycl-aux-triple.cpp [new file with mode: 0644]