LLVM 22.0.0git
|
#include "llvm/Support/CommandLine.h"
Classes | |
class | GenericOptionInfo |
Public Member Functions | |
generic_parser_base (Option &O) | |
virtual | ~generic_parser_base ()=default |
virtual unsigned | getNumOptions () const =0 |
virtual StringRef | getOption (unsigned N) const =0 |
virtual StringRef | getDescription (unsigned N) const =0 |
virtual size_t | getOptionWidth (const Option &O) const |
virtual const GenericOptionValue & | getOptionValue (unsigned N) const =0 |
virtual void | printOptionInfo (const Option &O, size_t GlobalWidth) const |
void | printGenericOptionDiff (const Option &O, const GenericOptionValue &V, const GenericOptionValue &Default, size_t GlobalWidth) const |
template<class AnyOptionValue> | |
void | printOptionDiff (const Option &O, const AnyOptionValue &V, const AnyOptionValue &Default, size_t GlobalWidth) const |
void | initialize () |
void | getExtraOptionNames (SmallVectorImpl< StringRef > &OptionNames) |
enum ValueExpected | getValueExpectedFlagDefault () const |
unsigned | findOption (StringRef Name) |
Protected Attributes | |
Option & | Owner |
Definition at line 729 of file CommandLine.h.
|
inline |
Definition at line 740 of file CommandLine.h.
References Owner.
Referenced by llvm::cl::parser< DataType >::parser().
|
virtualdefault |
Definition at line 2089 of file CommandLine.cpp.
References getNumOptions(), and getOption().
Referenced by llvm::cl::parser< DataType >::addLiteralOption(), llvm::PassNameParser::passRegistered(), and llvm::cl::parser< DataType >::removeLiteralOption().
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< bool >, llvm::cl::parser< boolOrDefault >, llvm::cl::parser< char >, llvm::cl::parser< const PassInfo * >, llvm::cl::parser< double >, llvm::cl::parser< float >, llvm::cl::parser< int >, llvm::cl::parser< long >, llvm::cl::parser< long long >, llvm::cl::parser< RegAllocType >, llvm::cl::parser< RegistryClass::FunctionPassCtor >, llvm::cl::parser< std::optional< uint64_t > >, llvm::cl::parser< std::set< SPIRV::Extension::Extension > >, llvm::cl::parser< std::string >, llvm::cl::parser< unsigned >, llvm::cl::parser< unsigned long >, and llvm::cl::parser< unsigned long long >.
References getOptionWidth(), and N.
Referenced by getOptionWidth(), and printOptionInfo().
|
inline |
Definition at line 783 of file CommandLine.h.
References getNumOptions(), getOption(), Owner, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
pure virtual |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< bool >, llvm::cl::parser< boolOrDefault >, llvm::cl::parser< char >, llvm::cl::parser< const PassInfo * >, llvm::cl::parser< double >, llvm::cl::parser< float >, llvm::cl::parser< int >, llvm::cl::parser< long >, llvm::cl::parser< long long >, llvm::cl::parser< RegAllocType >, llvm::cl::parser< RegistryClass::FunctionPassCtor >, llvm::cl::parser< std::optional< uint64_t > >, llvm::cl::parser< std::set< SPIRV::Extension::Extension > >, llvm::cl::parser< std::string >, llvm::cl::parser< unsigned >, llvm::cl::parser< unsigned long >, and llvm::cl::parser< unsigned long long >.
Referenced by findOption(), getExtraOptionNames(), getOptionWidth(), printGenericOptionDiff(), and printOptionInfo().
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< bool >, llvm::cl::parser< boolOrDefault >, llvm::cl::parser< char >, llvm::cl::parser< const PassInfo * >, llvm::cl::parser< double >, llvm::cl::parser< float >, llvm::cl::parser< int >, llvm::cl::parser< long >, llvm::cl::parser< long long >, llvm::cl::parser< RegAllocType >, llvm::cl::parser< RegistryClass::FunctionPassCtor >, llvm::cl::parser< std::optional< uint64_t > >, llvm::cl::parser< std::set< SPIRV::Extension::Extension > >, llvm::cl::parser< std::string >, llvm::cl::parser< unsigned >, llvm::cl::parser< unsigned long >, and llvm::cl::parser< unsigned long long >.
References N.
Referenced by findOption(), getExtraOptionNames(), getOptionWidth(), printGenericOptionDiff(), and printOptionInfo().
|
pure virtual |
Implemented in llvm::cl::parser< DataType >, llvm::cl::parser< bool >, llvm::cl::parser< boolOrDefault >, llvm::cl::parser< char >, llvm::cl::parser< const PassInfo * >, llvm::cl::parser< double >, llvm::cl::parser< float >, llvm::cl::parser< int >, llvm::cl::parser< long >, llvm::cl::parser< long long >, llvm::cl::parser< RegAllocType >, llvm::cl::parser< RegistryClass::FunctionPassCtor >, llvm::cl::parser< std::optional< uint64_t > >, llvm::cl::parser< std::set< SPIRV::Extension::Extension > >, llvm::cl::parser< std::string >, llvm::cl::parser< unsigned >, llvm::cl::parser< unsigned long >, and llvm::cl::parser< unsigned long long >.
References llvm::Default, N, printGenericOptionDiff(), and printOptionInfo().
Referenced by printGenericOptionDiff().
Definition at line 2113 of file CommandLine.cpp.
References argPlusPrefixesSize(), EmptyOption, EqValue, getDescription(), getNumOptions(), getOption(), getOptionPrefixesSize(), llvm::XCOFF::NameSize, shouldPrintOption(), Size, and llvm::size().
Referenced by getDescription().
|
inline |
Definition at line 792 of file CommandLine.h.
References Owner, llvm::cl::ValueDisallowed, and llvm::cl::ValueRequired.
|
inline |
Definition at line 781 of file CommandLine.h.
Referenced by llvm::PassNameParser::initialize(), llvm::RegAllocTypeParser::initialize(), and llvm::RegisterPassParser< RegistryClass >::initialize().
void generic_parser_base::printGenericOptionDiff | ( | const Option & | O, |
const GenericOptionValue & | V, | ||
const GenericOptionValue & | Default, | ||
size_t | GlobalWidth ) const |
Definition at line 2189 of file CommandLine.cpp.
References llvm::Default, getNumOptions(), getOption(), getOptionValue(), llvm::raw_ostream::indent(), MaxOptWidth, llvm::outs(), and llvm::StringRef::size().
Referenced by getOptionValue(), and printOptionDiff().
|
inline |
Definition at line 775 of file CommandLine.h.
References llvm::Default, and printGenericOptionDiff().
Reimplemented in llvm::PassNameParser.
Definition at line 2136 of file CommandLine.cpp.
References argPlusPrefixesSize(), assert(), llvm::StringRef::empty(), EmptyOption, EqValue, getDescription(), getNumOptions(), getOption(), getOptionPrefixesSize(), OptionPrefix, llvm::outs(), llvm::cl::Option::printEnumValHelpStr(), llvm::cl::Option::printHelpStr(), shouldPrintOption(), llvm::StringRef::size(), and llvm::cl::ValueOptional.
Referenced by getOptionValue(), and llvm::PassNameParser::printOptionInfo().
|
protected |
Definition at line 816 of file CommandLine.h.
Referenced by llvm::cl::parser< DataType >::addLiteralOption(), generic_parser_base(), getExtraOptionNames(), getValueExpectedFlagDefault(), and llvm::cl::parser< DataType >::parse().