class SPIRVToolChain

Declaration

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

Description

ToolChain - Access to tools for a single platform.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:58

Inherits from: ToolChain

Member Variables

private std::unique_ptr<Tool> Translator

Inherited from ToolChain:

protected Multilibs
protected SelectedMultilib

Method Overview

Inherited from ToolChain:

Methods

bool IsIntegratedBackendDefault() const

Description

IsIntegratedBackendDefault - Does this tool chain enable -fintegrated-objemitter by default.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:68

bool IsMathErrnoDefault() const

Description

IsMathErrnoDefault - Does this tool chain use -fmath-errno by default.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:70

bool IsNonIntegratedBackendSupported() const

Description

IsNonIntegratedBackendSupported - Does this tool chain support -fno-integrated-objemitter.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:69

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

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:62

Parameters

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

clang::driver::Tool* SelectTool(
    const clang::driver::JobAction& JA) const

Description

Choose a tool to use to handle the action \p JA. This can be overridden when a particular ToolChain needs to use a compiler other than Clang.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:79

Parameters

const clang::driver::JobAction& JA

bool SupportsProfiling() const

Description

SupportsProfiling - Does this tool chain support -pg.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:77

clang::driver::Tool* buildLinker() const

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:83

clang::driver::Tool* getTool(
    Action::ActionClass AC) const

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:82

Parameters

Action::ActionClass AC

clang::driver::Tool* getTranslator() const

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:86

bool isCrossCompiling() const

Description

Returns true if the toolchain is targeting a non-native architecture.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:71

bool isPICDefault() const

Description

Test whether this toolchain defaults to PIC.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:72

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/SPIRV.h:76

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

Description

Test whether this toolchain defaults to PIE.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:73

Parameters

const llvm::opt::ArgList& Args

bool useIntegratedAs() const

Description

Check if the toolchain should use the integrated assembler.

Declared at: clang/lib/Driver/ToolChains/SPIRV.h:66