1 | //===--- SPIRVOpenMP.h - SPIR-V OpenMP Tool Implementations ------*- 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_LIB_DRIVER_TOOLCHAINS_SPIRV_OPENMP_H |
10 | #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_SPIRV_OPENMP_H |
11 | |
12 | #include "SPIRV.h" |
13 | #include "clang/Driver/Tool.h" |
14 | #include "clang/Driver/ToolChain.h" |
15 | |
16 | namespace clang::driver::toolchains { |
17 | class LLVM_LIBRARY_VISIBILITY SPIRVOpenMPToolChain : public SPIRVToolChain { |
18 | public: |
19 | SPIRVOpenMPToolChain(const Driver &D, const llvm::Triple &Triple, |
20 | const ToolChain &HostTC, const llvm::opt::ArgList &Args); |
21 | |
22 | void addClangTargetOptions( |
23 | const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, |
24 | Action::OffloadKind DeviceOffloadingKind) const override; |
25 | |
26 | const ToolChain &HostTC; |
27 | }; |
28 | } // namespace clang::driver::toolchains |
29 | #endif |
30 | |