10 #ifndef LLVM_OPTION_OPTION_H
11 #define LLVM_OPTION_OPTION_H
76 return Info !=
nullptr;
112 "AliasArgs should be either 0 or non-empty.");
bool matches(OptSpecifier ID) const
matches - Predicate for whether this option is part of the given option (which may be a group)...
StringRef getName() const
Get the name of this option without any prefix.
bool hasFlag(unsigned Val) const
Test if this option has the flag Val.
const OptTable::Info * Info
DriverFlag
Base flags for all options. Custom flags may be added after.
const Option getAlias() const
OptionClass getKind() const
void print(raw_ostream &O) const
RenderStyleKind getRenderStyle() const
const Option getGroup() const
unsigned getNumArgs() const
bool hasNoOptAsInput() const
Option - Abstract representation for a single form of driver argument.
A concrete instance of a particular driver option.
Provide access to the Option info table.
std::string getPrefixedName() const
Get the name of this option with the default prefix.
const char *const * Prefixes
A null terminated array of prefix strings to apply to name while matching.
StringRef getPrefix() const
Get the default prefix for this option.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Option(const OptTable::Info *Info, const OptTable *Owner)
const Option getUnaliasedOption() const
getUnaliasedOption - Return the final option this option aliases (itself, if the option has no alias)...
OptSpecifier - Wrapper class for abstracting references to option IDs.
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
Entry for a single option instance in the option data table.
const char * getAliasArgs() const
Get the alias arguments as a \0 separated list.
StringRef getRenderName() const
getRenderName - Return the name to use when rendering this option.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
Arg * accept(const ArgList &Args, unsigned &Index, unsigned ArgSize) const
accept - Potentially accept the current argument, returning a new Arg instance, or 0 if the option do...
StringRef - Represent a constant reference to a string, i.e.
ArgList - Ordered collection of driver arguments.
SmallVector< const char *, 16 > ArgStringList
ArgStringList - Type used for constructing argv lists for subprocesses.