llvm::RegisterPassParser

RegisterPassParser class - Handle the addition of new machine passes.

Synopsis

Declared in <llvm/CodeGen/MachinePassRegistry.h>

template<class RegistryClass>
class RegisterPassParser
    : public MachinePassRegistryListener<RegistryClass::FunctionPassCtor>
    , public cl::parser<RegistryClass::FunctionPassCtor>

Base Classes

NameDescription
MachinePassRegistryListener<RegistryClass::FunctionPassCtor>MachinePassRegistryListener - Listener to adds and removals of nodes in registration list.
cl::parser<RegistryClass::FunctionPassCtor>Default mapping parser for custom / enum-like option data types.

Type Aliases

NameDescription
parser_data_type Data type produced by a successful parse.

Member Functions

NameDescription
RegisterPassParser [constructor]Construct a command-line parser that tracks RegistryClass.
~RegisterPassParser [destructor]Destroy the parser and clear the registry listener.
NotifyAdd NotifyAdd overloads
NotifyRemove Remove the command-line option for a deregistered pass.
addLiteralOption Add an entry to the mapping table.
findOption Look up the index of the option named Name.
getDescription [virtual]Return the help description for alternative N.
getExtraOptionNames Append any additional option names this parser recognizes to OptionNames.
getNumOptions [virtual]Return how many literal alternatives are registered.
getOption [virtual]Return the command-line name of alternative N.
getOptionValue [virtual]Return the stored value associated with alternative N.
getOptionWidth [virtual]Return the width of the option tag for printing.
getValueExpectedFlagDefault Return whether this parser expects, forbids, or optionally takes a value.
initialize Initialize the option with already-registered passes and listen for more.
parse Parse Arg / ArgName into V using the literal mapping table.
printGenericOptionDiff Print how value V differs from Default for option O.
printOptionDiff Print the value of an option and its default.
printOptionInfo [virtual]Print help information about option O using GlobalWidth.
removeLiteralOption Remove the specified option.

Protected Types

NameDescription
GenericOptionInfo Name and help text for one literal alternative in a mapping parser.
OptionInfo One literal name/value/help entry in the mapping table.

Protected Data Members

NameDescription
Owner Option that owns this parser instance.
Values Registered literal alternatives for this parser.