#include "llvm/Support/CommandLine.h"
Static Public Member Functions | |
static void | printHelpStr (StringRefHelpStr, size_t Indent, size_t FirstLineIndentedBy) |
static void | printEnumValHelpStr (StringRefHelpStr, 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 (enumNumOccurrencesFlag OccurrencesFlag, enumOptionHiddenHidden) | |
void | setNumAdditionalVals (unsigned n) |
Friends | |
class | alias |
Definition at line250 of fileCommandLine.h.
| inlineexplicitprotected |
Definition at line335 of fileCommandLine.h.
ReferencesCategories, andllvm::cl::getGeneralCategory().
| virtualdefault |
void Option::addArgument | ( | ) |
Definition at line431 of fileCommandLine.cpp.
ReferencesGlobalParser.
void Option::addCategory | ( | OptionCategory & | C | ) |
Definition at line447 of fileCommandLine.cpp.
Referencesassert(),llvm::CallingConv::C,Categories,llvm::cl::getGeneralCategory(), andllvm::is_contained().
| virtual |
Definition at line1863 of fileCommandLine.cpp.
Referenced byCommaSeparateAndAddOccurrence().
| inline |
Definition at line332 of fileCommandLine.h.
ReferencesSubs.
| inline |
Definition at line395 of fileCommandLine.h.
Referenceserror.
bool Option::error | ( | constTwine & | Message, |
StringRef | ArgName =StringRef() , | ||
raw_ostream & | Errs =llvm::errs() | ||
) |
Definition at line1851 of fileCommandLine.cpp.
ReferencesArgStr,llvm::StringRef::data(),llvm::StringRef::empty(),GlobalParser, andHelpStr.
Referenced byHandlePrefixedOrGroupedOption(), andProvideOption().
| inlinevirtual |
Definition at line386 of fileCommandLine.h.
| inline |
Definition at line301 of fileCommandLine.h.
Referenced byHandlePrefixedOrGroupedOption(),isPositional(), andProvideOption().
| inline |
Definition at line305 of fileCommandLine.h.
Referenced byCommaSeparateAndAddOccurrence(),isDefaultOption(), andisSink().
| inline |
Definition at line307 of fileCommandLine.h.
Referenced byProvideOption().
| inline |
Definition at line399 of fileCommandLine.h.
Referenced byannotateAllFunctions(),applyCommandLineOverridesToOptions(),llvm::ScheduleDAGInstrs::buildSchedGraph(),canProfitablyRuntimeUnrollMultiExitLoop(),llvm::SampleProfileSummaryBuilder::computeSummaryForProfiles(),llvm::createGlobalMergePass(),llvm::HexagonSubtarget::enableMachineScheduler(),llvm::gatherPeelingPreferences(),llvm::gatherUnrollingPreferences(),llvm::Attributor::isClosedWorldModule(),llvm::AMDGPUPassConfig::isPassEnabled(),llvm::LibCallSimplifier::optimizeCall(),llvm::AArch64TTIImpl::preferFixedOverScalableIfEqualCost(),llvm::LoopVectorizePass::processLoop(),llvm::IRTranslator::runOnMachineFunction(),llvm::Legalizer::runOnMachineFunction(),llvm::RAGreedy::runOnMachineFunction(),llvm::TargetLoweringBase::setJumpIsExpensive(),llvm::TargetPassConfig::TargetPassConfig(),tryToUnrollAndJamLoop(),llvm::UnrollLoop(),useMaskedInterleavedAccesses(),llvm::NVPTXTargetLowering::usePrecSqrtF32(), andllvm::AArch64Subtarget::useScalarIncVL().
| inline |
Definition at line289 of fileCommandLine.h.
Referenced byisConsumeAfter().
| inline |
Definition at line297 of fileCommandLine.h.
| pure virtual |
| inline |
Definition at line306 of fileCommandLine.h.
Referenced byenablePostRAScheduler(),llvm::HexagonSubtarget::initializeSubtargetDependencies(), andllvm::MachinePipeliner::runOnMachineFunction().
| inline |
Definition at line293 of fileCommandLine.h.
Referenced byHandlePrefixedOrGroupedOption(), andProvideOption().
| inline |
Definition at line310 of fileCommandLine.h.
ReferencesArgStr, andllvm::StringRef::empty().
Referenced byllvm::cl::generic_parser_base::getExtraOptionNames(),llvm::cl::generic_parser_base::getValueExpectedFlagDefault(), andllvm::cl::parser< DataType >::parse().
| inline |
Definition at line315 of fileCommandLine.h.
Referencesllvm::cl::ConsumeAfter, andgetNumOccurrencesFlag().
| inline |
Definition at line313 of fileCommandLine.h.
Referencesllvm::cl::DefaultOption, andgetMiscFlags().
Referenced byreset().
| inline |
Definition at line311 of fileCommandLine.h.
ReferencesgetFormattingFlag(), andllvm::cl::Positional.
| inline |
Definition at line312 of fileCommandLine.h.
ReferencesgetMiscFlags(), andllvm::cl::Sink.
| static |
Definition at line1901 of fileCommandLine.cpp.
ReferencesArgHelpPrefix,assert(),HelpStr,llvm::raw_ostream::indent(),llvm::outs(),llvm::StringRef::size(), andllvm::StringRef::split().
Referenced byllvm::cl::generic_parser_base::printOptionInfo().
| static |
Definition at line1889 of fileCommandLine.cpp.
ReferencesArgHelpPrefix,assert(),HelpStr,llvm::raw_ostream::indent(),llvm::outs(), andllvm::StringRef::split().
Referenced byllvm::cl::generic_parser_base::printOptionInfo(), andllvm::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 line436 of fileCommandLine.cpp.
ReferencesGlobalParser.
Referenced byreset().
void Option::reset | ( | ) |
Definition at line458 of fileCommandLine.cpp.
ReferencesisDefaultOption(),removeArgument(), andsetDefault().
void Option::setArgStr | ( | StringRef | S | ) |
Definition at line438 of fileCommandLine.cpp.
ReferencesArgStr,assert(),GlobalParser,llvm::cl::Grouping,setMiscFlag(),llvm::StringRef::size(), andllvm::StringRef::starts_with().
| pure virtual |
Referenced byreset().
| inline |
Definition at line323 of fileCommandLine.h.
ReferencesHelpStr.
| inline |
Definition at line328 of fileCommandLine.h.
| inline |
Definition at line327 of fileCommandLine.h.
| inline |
Definition at line329 of fileCommandLine.h.
Referenced bysetArgStr().
| inlineprotected |
Definition at line343 of fileCommandLine.h.
Referenced byllvm::cl::list< DataType, StorageClass, ParserClass >::setNumAdditionalVals().
| inline |
Definition at line325 of fileCommandLine.h.
| inline |
Definition at line330 of fileCommandLine.h.
| inline |
Definition at line326 of fileCommandLine.h.
| inline |
Definition at line324 of fileCommandLine.h.
ReferencesValueStr.
| friend |
Definition at line251 of fileCommandLine.h.
StringRef llvm::cl::Option::ArgStr |
Definition at line282 of fileCommandLine.h.
Referenced byerror(),hasArgStr(),llvm::cl::ProvidePositionalOption(), andsetArgStr().
SmallVector<OptionCategory *, 1> llvm::cl::Option::Categories |
Definition at line286 of fileCommandLine.h.
Referenced byaddCategory(), andOption().
StringRef llvm::cl::Option::HelpStr |
Definition at line283 of fileCommandLine.h.
Referenced byerror(),printEnumValHelpStr(),printHelpStr(), andsetDescription().
SmallPtrSet<SubCommand *, 1> llvm::cl::Option::Subs |
Definition at line287 of fileCommandLine.h.
Referenced byaddSubCommand().
StringRef llvm::cl::Option::ValueStr |
Definition at line284 of fileCommandLine.h.
Referenced bysetValueStr().