class HLSLToolChain

Declaration

class HLSLToolChain : public ToolChain { /* full declaration omitted */ };

Description

ToolChain - Access to tools for a single platform.

Declared at: clang/lib/Driver/ToolChains/HLSL.h:19

Inherits from: ToolChain

Member Variables

Inherited from ToolChain:

protected Multilibs
protected SelectedMultilib

Method Overview

  • public HLSLToolChain(const clang::driver::Driver & D, const llvm::Triple & Triple, const llvm::opt::ArgList & Args)
  • public llvm::opt::DerivedArgList * TranslateArgs(const llvm::opt::DerivedArgList & Args, llvm::StringRef BoundArch, Action::OffloadKind DeviceOffloadKind) const
  • public bool isPICDefault() const
  • public bool isPICDefaultForced() const
  • public bool isPIEDefault(const llvm::opt::ArgList & Args) const
  • public static llvm::Optional<std::string> parseTargetProfile(llvm::StringRef TargetProfile)

Inherited from ToolChain:

Methods

HLSLToolChain(const clang::driver::Driver& D,
              const llvm::Triple& Triple,
              const llvm::opt::ArgList& Args)

Declared at: clang/lib/Driver/ToolChains/HLSL.h:21

Parameters

const clang::driver::Driver& D
const llvm::Triple& Triple
const llvm::opt::ArgList& Args

llvm::opt::DerivedArgList* TranslateArgs(
    const llvm::opt::DerivedArgList& Args,
    llvm::StringRef BoundArch,
    Action::OffloadKind DeviceOffloadKind) const

Description

TranslateArgs - Create a new derived argument list for any argument translations this ToolChain may wish to perform, or 0 if no tool chain specific translations are needed. If \p DeviceOffloadKind is specified the translation specific for that offload kind is performed.

Declared at: clang/lib/Driver/ToolChains/HLSL.h:30

Parameters

const llvm::opt::DerivedArgList& Args
llvm::StringRef BoundArch
- The bound architecture name, or 0.
Action::OffloadKind DeviceOffloadKind
- The device offload kind used for the translation.

bool isPICDefault() const

Description

Test whether this toolchain defaults to PIC.

Declared at: clang/lib/Driver/ToolChains/HLSL.h:23

bool isPICDefaultForced() const

Description

Tests whether this toolchain forces its default for PIC, PIE or non-PIC. If this returns true, any PIC related flags should be ignored and instead the results of \c isPICDefault() and \c isPIEDefault(const llvm::opt::ArgList &Args ) are used exclusively.

Declared at: clang/lib/Driver/ToolChains/HLSL.h:27

bool isPIEDefault(
    const llvm::opt::ArgList& Args) const

Description

Test whether this toolchain defaults to PIE.

Declared at: clang/lib/Driver/ToolChains/HLSL.h:24

Parameters

const llvm::opt::ArgList& Args

static llvm::Optional<std::string>
parseTargetProfile(llvm::StringRef TargetProfile)

Declared at: clang/lib/Driver/ToolChains/HLSL.h:33

Parameters

llvm::StringRef TargetProfile