class Flang

Declaration

class Flang : public Tool { /* full declaration omitted */ };

Description

Flang compiler tool.

Declared at: clang/lib/Driver/ToolChains/Flang.h:25

Inherits from: Tool

Member Variables

Method Overview

  • private void AddFortranDialectOptions(const llvm::opt::ArgList & Args, llvm::opt::ArgStringList & CmdArgs) const
  • private void AddOtherOptions(const llvm::opt::ArgList & Args, llvm::opt::ArgStringList & CmdArgs) const
  • private void AddPreprocessingOptions(const llvm::opt::ArgList & Args, llvm::opt::ArgStringList & CmdArgs) const
  • public void ConstructJob(clang::driver::Compilation & C, const clang::driver::JobAction & JA, const clang::driver::InputInfo & Output, const clang::driver::InputInfoList & Inputs, const llvm::opt::ArgList & TCArgs, const char * LinkingOutput) const
  • public Flang(const clang::driver::ToolChain & TC)
  • public bool canEmitIR() const
  • public bool hasGoodDiagnostics() const
  • public bool hasIntegratedAssembler() const
  • public bool hasIntegratedCPP() const
  • public ~Flang()

Inherited from Tool:

Methods

void AddFortranDialectOptions(
    const llvm::opt::ArgList& Args,
    llvm::opt::ArgStringList& CmdArgs) const

Description

Extract fortran dialect options from the driver arguments and add them to the list of arguments for the generated command/job.

Declared at: clang/lib/Driver/ToolChains/Flang.h:32

Parameters

const llvm::opt::ArgList& Args
The list of input driver arguments
llvm::opt::ArgStringList& CmdArgs
The list of output command arguments

void AddOtherOptions(
    const llvm::opt::ArgList& Args,
    llvm::opt::ArgStringList& CmdArgs) const

Description

Extract other compilation options from the driver arguments and add them to the command arguments.

Declared at: clang/lib/Driver/ToolChains/Flang.h:47

Parameters

const llvm::opt::ArgList& Args
The list of input driver arguments
llvm::opt::ArgStringList& CmdArgs
The list of output command arguments

void AddPreprocessingOptions(
    const llvm::opt::ArgList& Args,
    llvm::opt::ArgStringList& CmdArgs) const

Description

Extract preprocessing options from the driver arguments and add them to the preprocessor command arguments.

Declared at: clang/lib/Driver/ToolChains/Flang.h:40

Parameters

const llvm::opt::ArgList& Args
The list of input driver arguments
llvm::opt::ArgStringList& CmdArgs
The list of output command arguments

void ConstructJob(
    clang::driver::Compilation& C,
    const clang::driver::JobAction& JA,
    const clang::driver::InputInfo& Output,
    const clang::driver::InputInfoList& Inputs,
    const llvm::opt::ArgList& TCArgs,
    const char* LinkingOutput) const

Description

ConstructJob - Construct jobs to perform the action \p JA, writing to \p Output and with \p Inputs, and add the jobs to\p C.

Declared at: clang/lib/Driver/ToolChains/Flang.h:59

Parameters

clang::driver::Compilation& C
const clang::driver::JobAction& JA
const clang::driver::InputInfo& Output
const clang::driver::InputInfoList& Inputs
const llvm::opt::ArgList& TCArgs
- The argument list for this toolchain, with any tool chain specific translations applied.
const char* LinkingOutput
- If this output will eventually feed the linker, then this is the final output name of the linked image.

Flang(const clang::driver::ToolChain& TC)

Declared at: clang/lib/Driver/ToolChains/Flang.h:51

Parameters

const clang::driver::ToolChain& TC

bool canEmitIR() const

Declared at: clang/lib/Driver/ToolChains/Flang.h:57

bool hasGoodDiagnostics() const

Description

Does this tool have "good" standardized diagnostics, or should the driver add an additional "command failed" diagnostic on failures.

Declared at: clang/lib/Driver/ToolChains/Flang.h:54

bool hasIntegratedAssembler() const

Declared at: clang/lib/Driver/ToolChains/Flang.h:55

bool hasIntegratedCPP() const

Declared at: clang/lib/Driver/ToolChains/Flang.h:56

~Flang()

Declared at: clang/lib/Driver/ToolChains/Flang.h:52