clang 23.0.0git
SyclInstallationDetector.h
Go to the documentation of this file.
1//===-- SyclInstallationDetector.h - SYCL Instalation Detector --*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_DRIVER_SYCLINSTALLATIONDETECTOR_H
10#define LLVM_CLANG_DRIVER_SYCLINSTALLATIONDETECTOR_H
11
12#include "clang/Driver/Driver.h"
13
14namespace clang {
15namespace driver {
16
18public:
19 SYCLInstallationDetector(const Driver &D, const llvm::Triple &HostTriple,
20 const llvm::opt::ArgList &Args);
21
22 void addSYCLIncludeArgs(const llvm::opt::ArgList &DriverArgs,
23 llvm::opt::ArgStringList &CC1Args) const;
24
25 // Return the filesystem path to the detected SYCL runtime library.
26 StringRef getSYCLRTLibPath() const { return SYCLRTLibPath; }
27
28private:
29 const Driver &D;
30 SmallString<0> SYCLRTLibPath;
31};
32
33} // namespace driver
34} // namespace clang
35
36#endif // LLVM_CLANG_DRIVER_SYCLINSTALLATIONDETECTOR_H
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition Driver.h:99
SYCLInstallationDetector(const Driver &D, const llvm::Triple &HostTriple, const llvm::opt::ArgList &Args)
Definition SYCL.cpp:18
void addSYCLIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const
Definition SYCL.cpp:48
The JSON file list parser is used to communicate input to InstallAPI.