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 SYCL runtime library (libsycl.so), that
26 // was detected.
27 StringRef getSYCLRTLibPath() const { return SYCLRTLibPath; }
28
29private:
30 const Driver &D;
31 SmallString<0> SYCLRTLibPath;
32};
33
34} // namespace driver
35} // namespace clang
36
37#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:35
The JSON file list parser is used to communicate input to InstallAPI.