9#ifndef LLVM_OPTION_OPTION_H
10#define LLVM_OPTION_OPTION_H
87 return Info !=
nullptr;
124 "AliasArgs should be either 0 or non-empty.");
231 bool GroupedShortOption,
unsigned &
Index)
const;
235 unsigned &
Index)
const;
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This file defines the SmallVector class.
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.
StringRef getOptionName(OptSpecifier id) const
Lookup the name of the given option.
const Option getOption(OptSpecifier Opt) const
Get the given Opt's Option instance, lazily creating it if necessary.
StringRef getOptionPrefix(OptSpecifier id) const
Lookup the prefix of the given option.
StringRef getOptionPrefixedName(OptSpecifier id) const
Lookup the prefixed name of the given option.
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
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 getPrefixedName() const
Get the name of this option with the default prefix.
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.