1 //===--- HLSL.h - HLSL ToolChain 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_HLSL_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
12 #include "clang/Driver/ToolChain.h"
17 namespace toolchains
{
19 class LLVM_LIBRARY_VISIBILITY HLSLToolChain
: public ToolChain
{
21 HLSLToolChain(const Driver
&D
, const llvm::Triple
&Triple
,
22 const llvm::opt::ArgList
&Args
);
23 bool isPICDefault() const override
{ return false; }
24 bool isPIEDefault(const llvm::opt::ArgList
&Args
) const override
{
27 bool isPICDefaultForced() const override
{ return false; }
29 llvm::opt::DerivedArgList
*
30 TranslateArgs(const llvm::opt::DerivedArgList
&Args
, StringRef BoundArch
,
31 Action::OffloadKind DeviceOffloadKind
) const override
;
32 static llvm::Optional
<std::string
>
33 parseTargetProfile(StringRef TargetProfile
);
36 } // end namespace toolchains
37 } // end namespace driver
38 } // end namespace clang
40 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H