LLVM
15.0.0git
|
#include "llvm/Support/CommandLine.h"
Static Public Member Functions | |
static void | printHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy) |
static void | printEnumValHelpStr (StringRef HelpStr, size_t Indent, size_t FirstLineIndentedBy) |
Public Attributes | |
StringRef | ArgStr |
StringRef | HelpStr |
StringRef | ValueStr |
SmallVector< OptionCategory *, 1 > | Categories |
SmallPtrSet< SubCommand *, 1 > | Subs |
Protected Member Functions | |
Option (enum NumOccurrencesFlag OccurrencesFlag, enum OptionHidden Hidden) | |
void | setNumAdditionalVals (unsigned n) |
Friends | |
class | alias |
Definition at line 242 of file CommandLine.h.
|
inlineexplicitprotected |
Definition at line 331 of file CommandLine.h.
References Categories, and llvm::cl::getGeneralCategory().
|
virtualdefault |
void Option::addArgument | ( | ) |
Definition at line 446 of file CommandLine.cpp.
References GlobalParser.
void Option::addCategory | ( | OptionCategory & | C | ) |
Definition at line 462 of file CommandLine.cpp.
References assert(), Categories, llvm::cl::getGeneralCategory(), and llvm::is_contained().
|
virtual |
Definition at line 1774 of file CommandLine.cpp.
Referenced by CommaSeparateAndAddOccurrence().
|
inline |
Definition at line 328 of file CommandLine.h.
|
inline |
Definition at line 391 of file CommandLine.h.
References error().
bool Option::error | ( | const Twine & | Message, |
StringRef | ArgName = StringRef() , |
||
raw_ostream & | Errs = llvm::errs() |
||
) |
Definition at line 1762 of file CommandLine.cpp.
References ArgStr, llvm::StringRef::data(), llvm::StringRef::empty(), GlobalParser, and HelpStr.
Referenced by error(), HandlePrefixedOrGroupedOption(), ProvideOption(), and llvm::cl::alias::setAliasFor().
|
inlinevirtual |
Definition at line 382 of file CommandLine.h.
|
inline |
Definition at line 293 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), isPositional(), and ProvideOption().
|
inline |
Definition at line 297 of file CommandLine.h.
Referenced by CommaSeparateAndAddOccurrence(), isDefaultOption(), and isSink().
|
inline |
Definition at line 299 of file CommandLine.h.
Referenced by ProvideOption().
|
inline |
Definition at line 395 of file CommandLine.h.
Referenced by annotateAllFunctions(), applyCommandLineOverridesToOptions(), llvm::ScheduleDAGInstrs::buildSchedGraph(), canProfitablyUnrollMultiExitLoop(), llvm::SampleProfileSummaryBuilder::computeSummaryForProfiles(), llvm::HexagonSubtarget::enableMachineScheduler(), llvm::RISCVSubtarget::enableSubRegLiveness(), llvm::ARMSubtarget::enableSubRegLiveness(), llvm::gatherPeelingPreferences(), llvm::gatherUnrollingPreferences(), llvm::AMDGPU::IsaInfo::getAddressableNumVGPRs(), llvm::AMDGPUPassConfig::isPassEnabled(), llvm::LLVMContextImpl::LLVMContextImpl(), llvm::LibCallSimplifier::optimizeCall(), llvm::LoopVectorizePass::processLoop(), llvm::Legalizer::runOnMachineFunction(), llvm::RAGreedy::runOnMachineFunction(), llvm::IRTranslator::runOnMachineFunction(), llvm::TargetLoweringBase::setJumpIsExpensive(), llvm::TargetPassConfig::TargetPassConfig(), tryToUnrollAndJamLoop(), llvm::UnrollLoop(), useMaskedInterleavedAccesses(), and llvm::NVPTXTargetLowering::usePrecSqrtF32().
|
inline |
Definition at line 281 of file CommandLine.h.
Referenced by isConsumeAfter().
|
inline |
Definition at line 289 of file CommandLine.h.
|
pure virtual |
|
inline |
Definition at line 298 of file CommandLine.h.
Referenced by llvm::HexagonSubtarget::initializeSubtargetDependencies(), and llvm::MachinePipeliner::runOnMachineFunction().
|
inline |
Definition at line 285 of file CommandLine.h.
Referenced by HandlePrefixedOrGroupedOption(), and ProvideOption().
|
inline |
Definition at line 302 of file CommandLine.h.
References ArgStr, and llvm::StringRef::empty().
Referenced by llvm::cl::generic_parser_base::getExtraOptionNames(), llvm::cl::generic_parser_base::getValueExpectedFlagDefault(), and llvm::cl::parser< const PassInfo * >::parse().
|
inline |
Definition at line 307 of file CommandLine.h.
References llvm::cl::ConsumeAfter, and getNumOccurrencesFlag().
|
inline |
Definition at line 305 of file CommandLine.h.
References llvm::cl::DefaultOption, and getMiscFlags().
Referenced by reset().
|
inline |
Definition at line 311 of file CommandLine.h.
References llvm::cl::AllSubCommands, llvm::is_contained(), and Subs.
|
inline |
Definition at line 303 of file CommandLine.h.
References getFormattingFlag(), and llvm::cl::Positional.
|
inline |
Definition at line 304 of file CommandLine.h.
References getMiscFlags(), and llvm::cl::Sink.
|
static |
Definition at line 1812 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), llvm::outs(), llvm::StringRef::size(), and llvm::StringRef::split().
Referenced by llvm::cl::generic_parser_base::printOptionInfo().
|
static |
Definition at line 1800 of file CommandLine.cpp.
References ArgHelpPrefix, assert(), HelpStr, llvm::raw_ostream::indent(), llvm::outs(), and llvm::StringRef::split().
Referenced by llvm::cl::generic_parser_base::printOptionInfo(), and llvm::cl::basic_parser_impl::printOptionInfo().
|
pure virtual |
|
pure virtual |
void Option::removeArgument | ( | ) |
Unregisters this option from the CommandLine system.
This option must have been the last option registered. For testing purposes only.
Definition at line 451 of file CommandLine.cpp.
References GlobalParser.
Referenced by reset().
void Option::reset | ( | ) |
Definition at line 473 of file CommandLine.cpp.
References isDefaultOption(), removeArgument(), and setDefault().
void Option::setArgStr | ( | StringRef | S | ) |
Definition at line 453 of file CommandLine.cpp.
References ArgStr, assert(), GlobalParser, llvm::cl::Grouping, S, setMiscFlag(), and llvm::StringRef::size().
|
pure virtual |
Referenced by reset().
|
inline |
Definition at line 319 of file CommandLine.h.
|
inline |
Definition at line 324 of file CommandLine.h.
|
inline |
Definition at line 323 of file CommandLine.h.
|
inline |
|
inlineprotected |
Definition at line 339 of file CommandLine.h.
References n.
Referenced by llvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
|
inline |
Definition at line 321 of file CommandLine.h.
|
inline |
Definition at line 326 of file CommandLine.h.
|
inline |
Definition at line 322 of file CommandLine.h.
|
inline |
Definition at line 320 of file CommandLine.h.
|
friend |
Definition at line 243 of file CommandLine.h.
StringRef llvm::cl::Option::ArgStr |
Definition at line 274 of file CommandLine.h.
Referenced by error(), hasArgStr(), llvm::cl::ProvidePositionalOption(), and setArgStr().
SmallVector<OptionCategory *, 1> llvm::cl::Option::Categories |
Definition at line 278 of file CommandLine.h.
Referenced by addCategory(), and Option().
StringRef llvm::cl::Option::HelpStr |
Definition at line 275 of file CommandLine.h.
Referenced by error(), printEnumValHelpStr(), printHelpStr(), and setDescription().
SmallPtrSet<SubCommand *, 1> llvm::cl::Option::Subs |
Definition at line 279 of file CommandLine.h.
Referenced by addSubCommand(), and isInAllSubCommands().
StringRef llvm::cl::Option::ValueStr |
Definition at line 276 of file CommandLine.h.
Referenced by setValueStr().