clang  15.0.0git
HLSL.h
Go to the documentation of this file.
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;
33  parseTargetProfile(StringRef TargetProfile);
34 };
35 
36 } // end namespace toolchains
37 } // end namespace driver
38 } // end namespace clang
39 
40 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
clang::driver::toolchains::HLSLToolChain::isPICDefault
bool isPICDefault() const override
Test whether this toolchain defaults to PIC.
Definition: HLSL.h:23
llvm::Optional< std::string >
clang::driver::toolchains::HLSLToolChain::isPIEDefault
bool isPIEDefault(const llvm::opt::ArgList &Args) const override
Test whether this toolchain defaults to PIE.
Definition: HLSL.h:24
ToolChain.h
clang::driver::toolchains::HLSLToolChain
Definition: HLSL.h:19
clang::driver::toolchains::HLSLToolChain::isPICDefaultForced
bool isPICDefaultForced() const override
Tests whether this toolchain forces its default for PIC, PIE or non-PIC.
Definition: HLSL.h:27
clang::driver::ToolChain
ToolChain - Access to tools for a single platform.
Definition: ToolChain.h:91
clang
Definition: CalledOnceCheck.h:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:72
clang::driver::Action::OffloadKind
OffloadKind
Definition: Action.h:88