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