clang  7.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::driver::InputAction Class Reference

#include "clang/Driver/Action.h"

Inheritance diagram for clang::driver::InputAction:
Inheritance graph
Collaboration diagram for clang::driver::InputAction:
Collaboration graph

Public Member Functions

 InputAction (const llvm::opt::Arg &Input, types::ID Type)
const llvm::opt::Arg & getInputArg () const
- Public Member Functions inherited from clang::driver::Action
virtual ~Action ()
const char * getClassName () const
ActionClass getKind () const
types::ID getType () const
ActionListgetInputs ()
const ActionListgetInputs () const
size_type size () const
input_iterator input_begin ()
input_iterator input_end ()
input_range inputs ()
input_const_iterator input_begin () const
input_const_iterator input_end () const
input_const_range inputs () const
void setCannotBeCollapsedWithNextDependentAction ()
 Mark this action as not legal to collapse. More...
bool isCollapsingWithNextDependentActionLegal () const
 Return true if this function can be collapsed with others. More...
std::string getOffloadingKindPrefix () const
 Return a string containing the offload kind of the action. More...
void propagateDeviceOffloadInfo (OffloadKind OKind, const char *OArch)
 Set the device offload info of this action and propagate it to its dependences. More...
void propagateHostOffloadInfo (unsigned OKinds, const char *OArch)
 Append the host offload info of this action and propagate it to its dependences. More...
void propagateOffloadInfo (const Action *A)
 Set the offload info of this action to be the same as the provided action, and propagate it to its dependences. More...
unsigned getOffloadingHostActiveKinds () const
OffloadKind getOffloadingDeviceKind () const
const char * getOffloadingArch () const
bool isHostOffloading (OffloadKind OKind) const
 Check if this action have any offload kinds. More...
bool isDeviceOffloading (OffloadKind OKind) const
bool isOffloading (OffloadKind OKind) const

Static Public Member Functions

static bool classof (const Action *A)
- Static Public Member Functions inherited from clang::driver::Action
static const char * getClassName (ActionClass AC)
static std::string GetOffloadingFileNamePrefix (OffloadKind Kind, llvm::StringRef NormalizedTriple, bool CreatePrefixForHost=false)
 Return a string that can be used as prefix in order to generate unique files for each offloading kind. More...
static StringRef GetOffloadKindName (OffloadKind Kind)
 Return a string containing a offload kind name. More...

Additional Inherited Members

- Public Types inherited from clang::driver::Action
enum  ActionClass {
  InputClass = 0, BindArchClass, OffloadClass, PreprocessJobClass,
  PrecompileJobClass, AnalyzeJobClass, MigrateJobClass, CompileJobClass,
  BackendJobClass, AssembleJobClass, LinkJobClass, LipoJobClass,
  DsymutilJobClass, VerifyDebugInfoJobClass, VerifyPCHJobClass, OffloadBundlingJobClass,
  OffloadUnbundlingJobClass, JobClassFirst = PreprocessJobClass, JobClassLast = OffloadUnbundlingJobClass
enum  OffloadKind { OFK_None = 0x00, OFK_Host = 0x01, OFK_Cuda = 0x02, OFK_OpenMP = 0x04 }
typedef ActionList::size_type size_type
typedef ActionList::iterator input_iterator
typedef ActionList::const_iterator input_const_iterator
typedef llvm::iterator_range< input_iteratorinput_range
typedef llvm::iterator_range< input_const_iteratorinput_const_range
- Protected Member Functions inherited from clang::driver::Action
 Action (ActionClass Kind, types::ID Type)
 Action (ActionClass Kind, Action *Input, types::ID Type)
 Action (ActionClass Kind, Action *Input)
 Action (ActionClass Kind, const ActionList &Inputs, types::ID Type)
- Protected Attributes inherited from clang::driver::Action
unsigned ActiveOffloadKindMask = 0u
 Offload information. More...
OffloadKind OffloadingDeviceKind = OFK_None
 Offloading kind of the device. More...
const char * OffloadingArch = nullptr
 The Offloading architecture associated with this action. More...

Detailed Description

Definition at line 198 of file Action.h.

Constructor & Destructor Documentation

◆ InputAction()

InputAction::InputAction ( const llvm::opt::Arg &  Input,
types::ID  Type 

Definition at line 155 of file Action.cpp.

Member Function Documentation

◆ classof()

static bool clang::driver::InputAction::classof ( const Action A)

Definition at line 207 of file Action.h.

References clang::driver::Action::getKind().

◆ getInputArg()

const llvm::opt::Arg& clang::driver::InputAction::getInputArg ( ) const

Definition at line 205 of file Action.h.

The documentation for this class was generated from the following files: