9#ifndef LLVM_OPTION_OPTION_H
10#define LLVM_OPTION_OPTION_H
87 return Info !=
nullptr;
123 "AliasArgs should be either 0 or non-empty.");
229 bool GroupedShortOption,
unsigned &
Index)
const;
233 unsigned &
Index)
const;
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
A wrapper around a string literal that serves as a proxy for constructing global tables of StringRefs...
StringRef - Represent a constant reference to a string, i.e.
ArgList - Ordered collection of driver arguments.
OptSpecifier - Wrapper class for abstracting references to option IDs.
Provide access to the Option info table.
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
Option - Abstract representation for a single form of driver argument.
const Option getAlias() const
unsigned getNumArgs() const
const char * getAliasArgs() const
Get the alias arguments as a \0 separated list.
RenderStyleKind getRenderStyle() const
StringLiteral getPrefixedName() const
Get the name of this option with the default prefix.
const Option getGroup() const
const Option getUnaliasedOption() const
getUnaliasedOption - Return the final option this option aliases (itself, if the option has no alias)...
bool matches(OptSpecifier ID) const
matches - Predicate for whether this option is part of the given option (which may be a group).
StringRef getRenderName() const
getRenderName - Return the name to use when rendering this option.
bool hasFlag(unsigned Val) const
Test if this option has the flag Val.
bool hasNoOptAsInput() const
@ RemainingArgsJoinedClass
StringRef getPrefix() const
Get the default prefix for this option.
bool hasVisibilityFlag(unsigned Val) const
Test if this option has the visibility flag Val.
const OptTable::Info * Info
StringRef getMetaVar() const
Get the meta-variable list for this option.
StringRef getHelpText() const
Get the help text for this option.
StringRef getName() const
Get the name of this option without any prefix.
std::unique_ptr< Arg > accept(const ArgList &Args, StringRef CurArg, bool GroupedShortOption, unsigned &Index) const
Potentially accept the current argument, returning a new Arg instance, or 0 if the option does not ac...
OptionClass getKind() const
void print(raw_ostream &O, bool AddNewLine=true) const
This class implements an extremely fast bulk output stream that can only output to a stream.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
DriverFlag
Base flags for all options. Custom flags may be added after.
This is an optimization pass for GlobalISel generic memory operations.
Entry for a single option instance in the option data table.
StringLiteral PrefixedName
StringRef getName() const
ArrayRef< StringLiteral > Prefixes
A null terminated array of prefix strings to apply to name while matching.