1 //===--- HLSL.h - HLSL ToolChain 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_HLSL_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
11 
12 #include "clang/Driver/ToolChain.h"
13 
14 namespace clang {
15 namespace driver {
16 
17 namespace toolchains {
18 
19 class LLVM_LIBRARY_VISIBILITY HLSLToolChain : public ToolChain {
20 public:
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 {
25     return false;
26   }
27   bool isPICDefaultForced() const override { return false; }
28 
29   llvm::opt::DerivedArgList *
30   TranslateArgs(const llvm::opt::DerivedArgList &Args, StringRef BoundArch,
31                 Action::OffloadKind DeviceOffloadKind) const override;
32   static std::optional<std::string> parseTargetProfile(StringRef TargetProfile);
33 };
34 
35 } // end namespace toolchains
36 } // end namespace driver
37 } // end namespace clang
38 
39 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
40